mit-crpg / opendeplete

A depletion framework for OpenMC
MIT License
15 stars 5 forks source link

Installation fails with OpenMC on PYTHONPATH #20

Closed wbinventor closed 7 years ago

wbinventor commented 7 years ago

I just synchronized my installation of OpenDeplete per PRs #15 and #16 and tried to install, but setup.py failed when looking for the openmc dependency:

...
Installed /home/wbinventor/miniconda3/lib/python3.5/site-packages/opendeplete-0.1-py3.5.egg
Processing dependencies for opendeplete==0.1
Searching for openmc
Reading https://pypi.python.org/simple/openmc/
Couldn't find index page for 'openmc' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for openmc
error: Could not find suitable distribution for Requirement.parse('openmc')

I believe this is because openmc is on my PYTHONPATH environment variable, rather than installed to the "/home/wbinventor/miniconda3/lib/python3.5/site-packages" directory. It is weird that I this error was only recently thrown, since I successfully installed OpenDeplete only a few days ago, and it appears that OpenDeplete's setup.py file has not been changed in the last three months, nor have I modified my installation of OpenMC recently.

paulromano commented 7 years ago

I'm only able to reproduce this if I take OpenMC off of my PYTHONPATH. If you go into a python prompt and run import openmc, does it work?

wbinventor commented 7 years ago

Oops, my apologies for opening this - you are correct @paulromano, I had mangled my PYTHONPATH in the bash session before trying to reinstall OpenDeplete.