Closed sakhan007 closed 9 years ago
Hello @sakhan007, would you please paste here the result of
>>> import Scientific
and, if it fails, conda list
?
Here it is: http://pastebin.com/bqKZcC4G As you can see at the end, scientificpython is already among the conda packages.
Hey Juanlu001, thanks for looking into it. I just have another look at my first post and found this:
File /home/sohail/learning/FEM/FEniCS/lib/python2.7/site-packages/dolfin/__init__.py
and this left me wondering, why this location is being used. I had a clone of fenics in /home/sohail/learning/FEM/
and this is forcing python to go there instead of /anaconda/.
Once the fenics clone is moved out, I can run my programs.
Oh, the problem was fixed then? :grin:
Probably there's something in your PATH
variable (try
$ echo $PATH
to check). Next time you can try using a conda environment, to isolate everything except what you want.
Closing!
Thanks!!!!
Sorry, didn't look at the log until now. You mistyped Scientific
and wrote Scientfic
instead, by the way.
Python starts its search using an environment variable called PYTHONPATH
, and if someone manually prepended a path to that variable it will be used first. You can check in Bash (outside Python) typing:
(fenics27)sohail@sohail-Inspiron-620:~$ echo $PYTHONPATH
You are right, fenics.conf
was being executed from the clone in .bashrc.
Apologies.
You are welcome! I am glad I could help :smile:
Would you please help in getting rid of this error!!