AdvancedPhotonSource / xdesign

Tools for designing x-ray phantoms and experiments.
https://xdesign.readthedocs.io
Other
24 stars 16 forks source link

module installation issue #35

Closed decarlof closed 7 years ago

decarlof commented 7 years ago

it seems python setup.py install is not working.

There are some classes that don't make it in the installation directory. For example Soil is installed correctly but DogaCircles is not (only works when I call it from the local built directory).

bash$ git clone https://github.com/decarlof/xdesign.git
bash$ cd xdesign
bash$ python setup.py install
bash$ ipython 
In [1]: from xdesign.material import Soil
In [2]: from xdesign.material import DogaCircles
quit
bash$ cd ..
bash$ ipython 
In [1]: from xdesign.material import Soil
In [2]: from xdesign.material import DogaCircles
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-8e1ceb6dfe32> in <module>()
----> 1 from xdesign.material import DogaCircles
ImportError: cannot import name DogaCircles

what is going on?

carterbox commented 7 years ago

Maybe the python path of ipython isn't the same as the install directory of setup.py?

carterbox commented 7 years ago

@decarlof, can you confirm that this is still an issue in v0.2.3? I haven't been able to recreate this bug.