-
Notifications
You must be signed in to change notification settings - Fork 6
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
pyrevolve installation issue: fatal error: 'iostream' file not found [when creating anaconda environment] #28
Comments
Please post the output of |
|
In case it can be helpful:
|
I think the problem is because you're using clang, not gcc. Can you install gcc with |
We installed gcc with conda as you suggested. Next, we reinstalled devito from the repository. But, unfortunately, we get exactly the same error! I was guessing, since the error message says "iostream" file not found, but the iostream must be somewhere. Maybe are we missing some folders in the bash path? Furthermore the warning message says: |
Can you post the results of |
Please find the result below, it looks like bash is using the correct compiler gcc --version:
g++ --version:
|
Have you had any progress with this @angelsaj ? |
Nope... do you have suggestions? |
Can you please try the following: |
That is the error message. Pip cannot find the header file "limits.h", how is it possible? do we need to add the path somewhere or can it be that the file is missing??
please find attached the complete outcome here: |
Can you try: |
|
Have you tried the other solutions on the page I linked above? Especially |
we are going to try also this:
we will let you know the outcome |
yeah I was reading the same, unfortunately we cannot test it right now, we will let you know as soon as we will have again access to the machine |
We have news. We typed
and next we followed the guided procedure. This installed pyrevolve
Next, we tried again:
but unfortunately we obtained the same error message. So the problem is still unsolved.
|
If you do |
We tried the following:
It run with no error messages. So, next, we tried to see if devito is working correctly using a python editor (spyder). We imported a devito function in a script:
When we run it, we got the following error:
Here the complete error message So something is still not working. Are we following the correct procedure? Does it mean that devito is not installed correctly? We googled the error, here they suggest to try |
Did you try |
Your suggestion was right, installing cpuinfo with pip when importing the devito modules in spyder, we get a new error:
To solve this, we tried
from shell, in devito folder, having the environment pyrevolve_test active. But, unfortunately this does not solve the issue. Suggestions? Sorry for the large number of problems! |
Could you please confirm that the following commands succeeded with no errors? If Assuming |
We confirm that
succeded with no error. As you suggested, we run Here below the complete output:
|
If you just want the quickest way to run devito, may I suggest the docker installation method at: https://github.com/opesci/devito/blob/master/README.md#quickstart This method should bypass the problems that are leading to the errors you see. I recommend this as the quickest way to get started with Devito. If you do want to explore the error above, here is some information I could gather: Firstly: the real error above is actually TLDR: This is happening because the environment has changed between the time you installed pyrevolve and the time that you ran it. So the shared libaries being loaded are different from the ones pyrevolve was linked against. It's not strictly necessary but if you want, we can work together to find the source of this problem if you don't like the docker method for some reason. |
Thank you for your response. You are right the effective error is We installed docker. We followed the installation procedure of devito with docker. We prompted:
Unfortunately this does not solve our problems. That is, we still got errors when we try to import devito functions. For instance, when we run
from a python script (named prova2.py) using spyder, we got the error:
we tried also to run the code from shell. When we write:
(which imports plot_velocity) we got the error:
We are sorry for the large number of errors, but, at this point, we have absolutely no clue on how to successfully install devito in our framework. |
The output from
Any code you run in this shell will see devito, conversely, a regular shell terminal won't see devito. With the above, you should be able to run code that references devito in the shell you started. Spyder isn't officially supported by devito so I doubt I or the rest of the devito team can help you with that. Now that you have devito running in a shell, maybe you can read the Spyder documentation to get it to play nicely with docker. Most people getting started with Devito find it easy to start with jupyter notebook before moving on to executing scripts directly in the terminal. You can start a jupyter notebook server by doing the following (from the same instructions):
In any case, I don't think this is a pyrevolve installation issue any more. I believe you might find it beneficial to join Devito's Slack Channel and engage with the team (and other users) there. |
When I install mmcv in Mac OS, your suggestion is helpful, thanks. |
Closing as resolved |
We have a problem with pyrevolve when trying to install devito on a MacBook Pro (os: MacOS Mojave 10.14.3). The error first appears when we create the environment with anaconda. The error message is:
Please find attached a file with the complete output of :
conda env create -f environment.yml
We have installed the last version of anaconda3, Xcode, and we took the most recent files of devito from the git repository
devito_pyrevolve_error.pdf
The text was updated successfully, but these errors were encountered: