arfc / d3ploy

A collection of Cyclus manager archetypes for demand driven deployment
BSD 3-Clause "New" or "Revised" License
4 stars 11 forks source link

D3ploy Doesn't Work #278

Closed kipk49 closed 5 years ago

kipk49 commented 5 years ago

Cloned d3ploy from Gwen's repository (have tried ARFC's and Roberto's on separate Ubuntu installs) on a fresh Ubuntu installation, used pip3 to install required dependencies as provided in the README documentation.

Attempted to run (GitHub won't post XML, so it's in txt format): d3ploytest.txt

I receive the following error: ERROR(core ):No module found for path libd3ploy.demand_driven_deployment_inst.so

I've tried modifying it in various ways, it seems that mentioning the demand_driven_deployment_inst in the Archetypes section is enough to cause the module error to show up.

On a side note, pytest fails with the following error: largeannoyingerror.txt

All the of the individual failures seem to be caused by the same module path error from above.

Thoughts?

Edit: Added missing info

FlanFlanagan commented 5 years ago

@kipk49 you should not be using Gwen's repo. You should use the ARFC one.

So this error suggests that d3ploy isn't building properly. This makes me think one of the dependencies is not installed correctly.

Which version of numpy are you running?

kipk49 commented 5 years ago

Oops, forgot to mention that: this is my third attempted d3ploy installation. 1st try used ARFC repo, 2nd used Roberto's, 3rd uses Gwen's. They all throw the same error codes, but Sonata got Gwen's version to work on her laptop somehow.

I believe I currently have multiple numpy versions installed; when I used pip3 to install dependencies, one or two of them installed additional numpy versions alongside themselves. numpy.__version__ yields 1.14.3, and I haven't uninstalled other versions yet.

FlanFlanagan commented 5 years ago

Hmm,

and you have arima, statsmodels, and arch?

Are you using any conda environments?

kipk49 commented 5 years ago

I have pmdarima, statsmodels, and arch in whichever versions pip3 defaulted to.

I think I'm using the base environment that Anaconda3 initialized when first installed, see (base) kip@kip-arfc:~$

FlanFlanagan commented 5 years ago

Okay, my last thought is that one of the imports is failing

Can you check all the inputs in the solvers.py, and the inst.py files? I know it's frustrating, sorry

kipk49 commented 5 years ago

OK; per Roberto's suggestion I made a python script that attempts to import everything used by any of the solvers.py or the inst.py, shown in txt format because GitHub is wack: importtests.txt

When I run it I get Traceback (most recent call last): File "importtests.py", line 13, in <module> import d3ploy.NO_solvers as no File "/home/kip/anaconda3/lib/python3.6/site-packages/d3ploy/NO_solvers.py", line 10, in <module> from arch import arch_model ModuleNotFoundError: No module named 'arch'

However, if I do pip3 show arch it says I have 4.8.1 installed

FlanFlanagan commented 5 years ago

Interesting. Pip install should work for arch.

Do you know which python is your default python?

kipk49 commented 5 years ago

Anaconda3's site indicated 3.7, however python says default is 3.6.7 from conda-forge

FlanFlanagan commented 5 years ago

I wonder if python isn't catching the pip install because it's from conda? Did you try

conda install -c bashtage arch

kipk49 commented 5 years ago

Did conda install -c bashtage arch, was told it successfully installed.

Reran setup.py install, still the same module error

katyhuff commented 5 years ago

Update from the call. An inconsistent python environment was (probably) at fault.

Consider:

kipk49 commented 5 years ago

OK, here's what I did:

Now whenever I do cyclus I get:cyclus: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory

Haven't tried anything with PATH, PYTHONPATH, or environments yet, but the which pip and which python commands seem to show locations that are in good order.

Here is the result of history: history.txt

kipk49 commented 5 years ago

Appears to be running now, I did the following after the steps listed above: