This repository was archived by the owner on Apr 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Cannot install OpenMDAO 0.10.3.2 #83
Copy link
Copy link
Open
Description
I would like to have a go using FUSED-Wind but am finding it impossible to install OpenMDAO 0.10.3.2 (which seems to now be a rather ancient version). On Ubuntu 18.04 if I follow the instructions, i.e.:
cd git
git clone https://github.com/OpenMDAO/OpenMDAO-Framework.git
git checkout 0.10.3.2
Then run
python go-openmdao-dev.py
I first got an error like this:
$ python ~/src/OpenMDAO-Framework-git/go-openmdao-dev.py
New python executable in /home/rcrozier/src/OpenMDAO-Framework-git/devenv/bin/python
Installing setuptools............done.
Installing pip.............done.
Patching site.py...
found ' paths.append(lib64_path)\n'
new ' paths.insert(0, lib64_path)\n'
Traceback (most recent call last):
File "/home/rcrozier/src/OpenMDAO-Framework-git/go-openmdao-dev.py", line 3074, in <module>
main()
File "/home/rcrozier/src/OpenMDAO-Framework-git/go-openmdao-dev.py", line 983, in main
after_install(options, home_dir)
File "/home/rcrozier/src/OpenMDAO-Framework-git/go-openmdao-dev.py", line 2246, in after_install
__import__(pkg)
File "/home/rcrozier/.local/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/home/rcrozier/.local/lib/python2.7/site-packages/numpy/core/__init__.py", line 59, in <module>
from . import numeric
File "/home/rcrozier/.local/lib/python2.7/site-packages/numpy/core/numeric.py", line 3093, in <module>
from . import fromnumeric
File "/home/rcrozier/.local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 17, in <module>
from . import _methods
File "/home/rcrozier/.local/lib/python2.7/site-packages/numpy/core/_methods.py", line 158, in <module>
_NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'
I realised this was because the specified version of numpy is too new, so I tried modifying go-openmdao-dev.py so that it specified numpy==1.15.4, but I then get an error like:
$ python go-openmdao-dev.py
New python executable in devenv/bin/python
Installing setuptools............done.
Installing pip.............done.
Patching site.py...
found ' paths.append(lib64_path)\n'
new ' paths.insert(0, lib64_path)\n'
ERROR: the following prerequisites could not be imported: ['numpy==1.15.4', 'scipy>=0.11.0', 'scipy>=0.11.0'].
These must be installed in the system level python before installing OpenMDAO.
To run a limited version of OpenMDAO without the prerequisites, try 'python go-openmdao-dev.py --noprereqs'
Can you advise on how to work around this so I can install FUSED-Wind?
Metadata
Metadata
Assignees
Labels
No labels