Comments (13)
@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?
from d3ploy.
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.
from d3ploy.
Hmm,
and you have arima, statsmodels, and arch?
Are you using any conda environments?
from d3ploy.
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:~$
from d3ploy.
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
from d3ploy.
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
from d3ploy.
Interesting. Pip install should work for arch.
Do you know which python is your default python?
from d3ploy.
Anaconda3's site indicated 3.7, however python
says default is 3.6.7 from conda-forge
from d3ploy.
I wonder if python isn't catching the pip install because it's from conda? Did you try
conda install -c bashtage arch
from d3ploy.
Did conda install -c bashtage arch
, was told it successfully installed.
Reran setup.py install
, still the same module error
from d3ploy.
Update from the call. An inconsistent python environment was (probably) at fault.
Consider:
- updating from ubuntu 16.04 to 18.04
- installing anaconda on a fresh ubuntu
- setting PATH and PYTHONPATH carefully in your environment
- using only conda or pip for your python related stuff (never apt-get)
- using conda environments to keep your life cleaner. https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
- using "echo" "which" "env" and " --version" to double check that you're using the executibles you intend to use.
from d3ploy.
OK, here's what I did:
- fresh install of Ubuntu, immediately auto-upgraded to 18.04.02 LTS.
- attempted to run Greg's script for Git, Jupyter Notebook, and Sublime, but it broke and did nothing
- manually installed and set up Git
- downloaded and bashed latest .sh script from Anaconda3
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
source .bashrc
conda config --add channels conda-forge
conda install -y openssh gxx_linux-64 gcc_linux-64 cmake make docker-pycreds git xo python-json-logger python=3.6 glibmm glib=2.56 libxml2 libxmlpp libblas libcblas liblapack pkg-config coincbc=2.9 boost-cpp hdf5 sqlite pcre gettext bzip2 xz setuptools nose pytables pandas jinja2 cython==0.26 websockets pprintpp
- cloned and installed Cyclus without issue
- cloned and installed Cycamore without issue
- cloned my tests repo to test Cyclus functionality, runs fine
- used Conda to install pip, then used pip to install the 3 d3ploy dependencies
- cloned d3ploy and ran
setup.py install
- ran
pytest
for d3ploy, same 22 failures as earlier - used Conda to install numpy 1.16.4
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
from d3ploy.
Appears to be running now, I did the following after the steps listed above:
- installed
libopenblas
using Conda - ran
install.py --clean-build
for both Cyclus and Cycamore
from d3ploy.
Related Issues (20)
- combine demand driven inst and supply driven inst HOT 3
- D3ploy can't divide the production of power into different types of reactors. HOT 3
- D3ploy doesn't record the capacity of the mixer when it has multiple inputs for a commodity HOT 10
- pytest - ImportError: cannot import name 'main' HOT 21
- Buffer Type change HOT 1
- D3ploy is not running FFT properly on numpy 1.16.4 HOT 10
- Add function in tester.py to obtain cumulative difference between demand and supply HOT 1
- Mixer doesn't record the demand of all the input commodities. HOT 1
- constraint commodity capability bug HOT 1
- d3ploy fails to record the capacity of mixers deployed with multiple inputs HOT 2
- D3ploy fails to record the capacity of mixers when they are deployed using the same commodity. HOT 1
- Buffer malfunctioning HOT 6
- update config.yml file to include all the new tests HOT 3
- calc_demand takes the values of the demand_eq HOT 2
- Some of the methods don't actually use the back_steps HOT 1
- Some of the prediction methods don't have the capability to look forward. HOT 3
- Installed cap should't be used with the back end HOT 3
- Installation Issue HOT 16
- Update Documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3ploy.