Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full ROSCO installation - --compile-rosco BUG #166

Closed
pablozl92 opened this issue Sep 12, 2022 · 3 comments
Closed

Full ROSCO installation - --compile-rosco BUG #166

pablozl92 opened this issue Sep 12, 2022 · 3 comments

Comments

@pablozl92
Copy link

Hi all,

I have been using ROSCO v2.4.1 for a while, and tried to install the latest version. Following the docs, I have done two little workarounds that may be useful (or require minor code fixing).

The first one has been mentioned in some conversations (#121).
conda install -y wisdem seems to install an older version of wisdem, and conda install wisdem=3.5.0 seems to fix this.

The second, as far as I know, is not known.
python setup.py install --compile-rosco raises an error, being the most relevant information:

File "setup.py", line 92, in build_extension if "gfortran" in os.environ["FC"].lower(): File "C:\Users\Pablo\miniconda3\envs\env_rosco\lib\os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'FC'

For me, declaring the env variable inside the conda env to "gfortran" solved the issue

To set environment variables, run conda env config vars set my_var=value

I hope this is useful!

@dzalkind
Copy link
Collaborator

Thanks! I'll keep this open until we incorporate these nice tips into our docs.

Dan

@dzalkind
Copy link
Collaborator

Addressed in #167

@claudius111
Copy link

Hi all,

I have been using ROSCO v2.4.1 for a while, and tried to install the latest version. Following the docs, I have done two little workarounds that may be useful (or require minor code fixing).

The first one has been mentioned in some conversations (#121). conda install -y wisdem seems to install an older version of wisdem, and conda install wisdem=3.5.0 seems to fix this.

The second, as far as I know, is not known. python setup.py install --compile-rosco raises an error, being the most relevant information:

File "setup.py", line 92, in build_extension if "gfortran" in os.environ["FC"].lower(): File "C:\Users\Pablo\miniconda3\envs\env_rosco\lib\os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'FC'

For me, declaring the env variable inside the conda env to "gfortran" solved the issue

To set environment variables, run conda env config vars set my_var=value

I hope this is useful!

conda env config vars set FC=gfortran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants