2017-07-06 90 views
0

下面是使用OpenMDAO-0.7.0嘗試安裝WISDEM時收到的日誌。我知道這是一段時間,但任何人都可以確定我的安裝過程中出了什麼問題。我可能錯過了一些重要的東西。使用openmdao-0.7.0安裝WISDEM的問題

我認爲問題在於可能安裝一些庫:

libzmq

或相關的東西,但我不知道。

但看着日誌 - 這是安裝已開始收斂的地方。看一看。

乾杯!

(openmdao-0.7.0) C:\Python27\openmdao-0.7.0\WISDEM>python setup_all.py Searching for pandas 
Best match: pandas 0.14.1 
pandas 0.14.1 is already the active version in easy-install.pth 

Using c:\python27\lib\site-packages 
Processing dependencies for pandas 
Finished processing dependencies for pandas 
Searching for algopy 
Best match: algopy 0.5.5 
Processing algopy-0.5.5-py2.7.egg 
algopy 0.5.5 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\algopy-0.5.5-py2.7.egg 
Processing dependencies for algopy 
Finished processing dependencies for algopy 
Searching for zope.interface 
Best match: zope.interface 3.6.1 
Processing zope.interface-3.6.1-py2.7-win32.egg 
zope.interface 3.6.1 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\zope.interface-3.6.1-py2.7-wi 
n32.egg 
Processing dependencies for zope.interface 
Finished processing dependencies for zope.interface 
Searching for sphinx 
Best match: sphinx 1.6.3 
Processing sphinx-1.6.3-py2.7.egg 
sphinx 1.6.3 is already the active version in easy-install.pth 
Installing sphinx-apidoc-script.py script to C:\Python27\openmdao-0.7.0\Scripts 
Installing sphinx-apidoc.exe script to C:\Python27\openmdao-0.7.0\Scripts 
Installing sphinx-apidoc.exe.manifest script to C:\Python27\openmdao-0.7.0\Scrip 
ts 
Installing sphinx-build-script.py script to C:\Python27\openmdao-0.7.0\Scripts 
Installing sphinx-build.exe script to C:\Python27\openmdao-0.7.0\Scripts 
Installing sphinx-build.exe.manifest script to C:\Python27\openmdao-0.7.0\Script 
s 
Installing sphinx-quickstart-script.py script to C:\Python27\openmdao-0.7.0\Scri 
pts 
Installing sphinx-quickstart.exe script to C:\Python27\openmdao-0.7.0\Scripts 
Installing sphinx-quickstart.exe.manifest script to C:\Python27\openmdao-0.7.0\S 
cripts 
Installing sphinx-autogen-script.py script to C:\Python27\openmdao-0.7.0\Scripts 

Installing sphinx-autogen.exe script to C:\Python27\openmdao-0.7.0\Scripts 
Installing sphinx-autogen.exe.manifest script to C:\Python27\openmdao-0.7.0\Scri 
pts 

Using c:\python27\openmdao-0.7.0\lib\site-packages\sphinx-1.6.3-py2.7.egg 
Processing dependencies for sphinx 
Finished processing dependencies for sphinx 
Searching for xlrd 
Best match: xlrd 1.0.0 
Processing xlrd-1.0.0-py2.7.egg 
xlrd 1.0.0 is already the active version in easy-install.pth 
Installing runxlrd.py script to C:\Python27\openmdao-0.7.0\Scripts 

Using c:\python27\openmdao-0.7.0\lib\site-packages\xlrd-1.0.0-py2.7.egg 
Processing dependencies for xlrd 
Finished processing dependencies for xlrd 
Searching for pyopt 
Best match: pyopt 0.84 
Processing pyopt-0.84-py2.7.egg 
pyopt 0.84 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\pyopt-0.84-py2.7.egg 
Processing dependencies for pyopt 
Finished processing dependencies for pyopt 
Searching for py2exe 
Best match: py2exe 0.9.2.2 
Processing py2exe-0.9.2.2-py2.7-win32.egg 
py2exe 0.9.2.2 is already the active version in easy-install.pth 
Installing build_exe-script.py script to C:\Python27\openmdao-0.7.0\Scripts 
Installing build_exe-script.pyc script to C:\Python27\openmdao-0.7.0\Scripts 
Installing build_exe.exe script to C:\Python27\openmdao-0.7.0\Scripts 
Installing build_exe.exe.manifest script to C:\Python27\openmdao-0.7.0\Scripts 
Installing build_exe-script.py script to C:\Python27\openmdao-0.7.0\Scripts 
Installing build_exe.exe script to C:\Python27\openmdao-0.7.0\Scripts 
Installing build_exe.exe.manifest script to C:\Python27\openmdao-0.7.0\Scripts 

Using c:\python27\openmdao-0.7.0\lib\site-packages\py2exe-0.9.2.2-py2.7-win32.eg 
g 
Processing dependencies for py2exe 
Finished processing dependencies for py2exe 
Searching for pyzmq 
Reading https://pypi.python.org/simple/pyzmq/ 
Downloading https://pypi.python.org/packages/af/37/8e0bf3800823bc247c36715a52e92 
4e8f8fd5d1432f04b44b8cd7a5d7e55/pyzmq-16.0.2.tar.gz#md5=9a8768b00a566a400d70318f 
8c359cfe 
Best match: pyzmq 16.0.2 
Processing pyzmq-16.0.2.tar.gz 
Writing c:\users\anur\appdata\local\temp\easy_install-6x9i5o\pyzmq-16.0.2\setup. 
cfg 
Running pyzmq-16.0.2\setup.py -q bdist_egg --dist-dir c:\users\anur\appdata\loca 
l\temp\easy_install-6x9i5o\pyzmq-16.0.2\egg-dist-tmp-fszbbf 
warning: no files found matching 'tox.ini' 
no previously-included directories found matching 'docs\build' 
no previously-included directories found matching 'docs\gh-pages' 
warning: no previously-included files found matching 'bundled\zeromq\src\Makefil 
e*' 
warning: no previously-included files found matching 'bundled\zeromq\src\platfor 
m.hpp' 
warning: no previously-included files found matching 'zmq\libzmq*' 
warning: no previously-included files matching '__pycache__\*' found anywhere in 
distribution 
warning: no previously-included files matching '.deps\*' found anywhere in distr 
ibution 
warning: no previously-included files matching '*.so' found anywhere in distribu 
tion 
warning: no previously-included files matching '*.pyd' found anywhere in distrib 
ution 
warning: no previously-included files matching '.git*' found anywhere in distrib 
ution 
warning: no previously-included files matching '.DS_Store' found anywhere in dis 
tribution 
warning: no previously-included files matching '.mailmap' found anywhere in dist 
ribution 
warning: no previously-included files matching 'Makefile.am' found anywhere in d 
istribution 
warning: no previously-included files matching 'Makefile.in' found anywhere in d 
istribution 
************************************************ 
Warning: Couldn't find an acceptable libzmq on the system. 

If you expected pyzmq to link against an installed libzmq, please check to make 
sure: 

    * You have a C compiler installed 
    * A development version of Python is installed (including headers) 
    * A development version of ZMQ >= 3.2 is installed (including headers) 
    * If ZMQ is not in a default location, supply the argument --zmq=<path> 
    * If you did recently install ZMQ to a default location, 
     try rebuilding the ld cache with `sudo ldconfig` 
     or specify zmq's location with `--zmq=/usr/local` 

You can skip all this detection/waiting nonsense if you know 
you want pyzmq to bundle libzmq as an extension by passing: 

    `--zmq=bundled` 

I will now try to build libzmq as a Python extension 
unless you interrupt me (^C) in the next 10 seconds... 

1... 
************************************************ 
Using bundled libzmq 
already have bundled\zeromq 
staging platform.hpp from: bundled\zeromq\builds\msvc 
************************************************ 
In file included from zmq\utils/zmq_compat.h:16:0, 
       from zmq\devices\monitoredqueue.c:403: 
bundled\zeromq\include/zmq.h:439:52: error: unknown type name 'uint8_t' 
ZMQ_EXPORT char *zmq_z85_encode (char *dest, const uint8_t *data, size_t size); 

                ^
bundled\zeromq\include/zmq.h:442:12: error: unknown type name 'uint8_t' 
ZMQ_EXPORT uint8_t *zmq_z85_decode (uint8_t *dest, const char *string); 
      ^
bundled\zeromq\include/zmq.h:442:37: error: unknown type name 'uint8_t' 
ZMQ_EXPORT uint8_t *zmq_z85_decode (uint8_t *dest, const char *string); 
            ^
In file included from zmq\devices\monitoredqueue.c:403:0: 
zmq\devices\monitoredqueue.c: In function '__pyx_f_3zmq_7devices_14monitoredqueu 
e__relay': 
zmq\utils/zmq_compat.h:12:23: error: unknown type name 'int64_t' 
#define pyzmq_int64_t int64_t 
        ^
zmq\devices\monitoredqueue.c:1761:3: note: in expansion of macro 'pyzmq_int64_t' 

    pyzmq_int64_t __pyx_v_flag_2; 
^
zmq\utils/zmq_compat.h:12:23: error: 'int64_t' undeclared (first use in this fun 
ction) 
#define pyzmq_int64_t int64_t 
        ^
zmq\devices\monitoredqueue.c:1786:30: note: in expansion of macro 'pyzmq_int64_t 
' 
    __pyx_v_flagsz = (sizeof(pyzmq_int64_t)); 
          ^
zmq\utils/zmq_compat.h:12:23: note: each undeclared identifier is reported only 
once for each function it appears in 
#define pyzmq_int64_t int64_t 
        ^
zmq\devices\monitoredqueue.c:1786:30: note: in expansion of macro 'pyzmq_int64_t 
' 
    __pyx_v_flagsz = (sizeof(pyzmq_int64_t)); 
          ^
zmq\devices\monitoredqueue.c: In function '__Pyx_RaiseArgtupleInvalid': 
zmq\devices\monitoredqueue.c:5271:18: warning: unknown conversion type character 
'z' in format [-Wformat=] 
        (num_expected == 1) ? "" : "s", num_found); 
       ^
zmq\devices\monitoredqueue.c:5271:18: warning: format '%s' expects argument of t 
ype 'char *', but argument 5 has type 'Py_ssize_t' [-Wformat=] 
zmq\devices\monitoredqueue.c:5271:18: warning: unknown conversion type character 
'z' in format [-Wformat=] 
zmq\devices\monitoredqueue.c:5271:18: warning: too many arguments for format [-W 
format-extra-args] 
zmq\devices\monitoredqueue.c: In function '__Pyx_CyFunction_CallMethod': 
zmq\devices\monitoredqueue.c:6537:17: warning: unknown conversion type character 
'z' in format [-Wformat=] 
       f->m_ml->ml_name, size); 
       ^
zmq\devices\monitoredqueue.c:6537:17: warning: too many arguments for format [-W 
format-extra-args] 
zmq\devices\monitoredqueue.c:6553:17: warning: unknown conversion type character 
'z' in format [-Wformat=] 
       f->m_ml->ml_name, size); 
       ^
zmq\devices\monitoredqueue.c:6553:17: warning: too many arguments for format [-W 
format-extra-args] 
zmq\devices\monitoredqueue.c: In function '__Pyx_ImportType': 
zmq\devices\monitoredqueue.c:7390:13: warning: unknown conversion type character 
'z' in format [-Wformat=] 
      module_name, class_name, basicsize, size); 
      ^
zmq\devices\monitoredqueue.c:7390:13: warning: unknown conversion type character 
'z' in format [-Wformat=] 
zmq\devices\monitoredqueue.c:7390:13: warning: too many arguments for format [-W 
format-extra-args] 
zmq\devices\monitoredqueue.c:7396:13: warning: unknown conversion type character 
'z' in format [-Wformat=] 
      module_name, class_name, basicsize, size); 
      ^
zmq\devices\monitoredqueue.c:7396:13: warning: unknown conversion type character 
'z' in format [-Wformat=] 
zmq\devices\monitoredqueue.c:7396:13: warning: too many arguments for format [-W 
format-extra-args] 
error: Setup script exited with error: command 'c:\\Rtools\\mingw_32\\bin\\gcc.e 
xe' failed with exit status 1 
Searching for sphinxcontrib-bibtex 
Best match: sphinxcontrib-bibtex 0.3.5 
Processing sphinxcontrib_bibtex-0.3.5-py2.7.egg 
sphinxcontrib-bibtex 0.3.5 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\sphinxcontrib_bibtex-0.3.5-py 
2.7.egg 
Processing dependencies for sphinxcontrib-bibtex 
Finished processing dependencies for sphinxcontrib-bibtex 
Searching for sphinxcontrib-napoleon 
Best match: sphinxcontrib-napoleon 0.6.1 
Processing sphinxcontrib_napoleon-0.6.1-py2.7.egg 
sphinxcontrib-napoleon 0.6.1 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\sphinxcontrib_napoleon-0.6.1- 
py2.7.egg 
Processing dependencies for sphinxcontrib-napoleon 
Finished processing dependencies for sphinxcontrib-napoleon 
Searching for numpydoc 
Best match: numpydoc 0.7.0 
Processing numpydoc-0.7.0-py2.7.egg 
numpydoc 0.7.0 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\numpydoc-0.7.0-py2.7.egg 
Processing dependencies for numpydoc 
Finished processing dependencies for numpydoc 
Searching for ipython 
Reading https://pypi.python.org/simple/ipython/ 
Downloading https://pypi.python.org/packages/79/63/b671fc2bf0051739e87a7478a207b 
beb45cfae3c328d38ccdd063d9e0074/ipython-6.1.0.tar.gz#md5=1e15e1ce3f3f722da6935d7 
ac0e51346 
Best match: ipython 6.1.0 
Processing ipython-6.1.0.tar.gz 
Writing c:\users\anur\appdata\local\temp\easy_install-k7ruj5\ipython-6.1.0\setup 
.cfg 
Running ipython-6.1.0\setup.py -q bdist_egg --dist-dir c:\users\anur\appdata\loc 
al\temp\easy_install-k7ruj5\ipython-6.1.0\egg-dist-tmp-tkov77 

IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2. 
When using Python 2.7, please install IPython 5.x LTS Long Term Support version. 

Beginning with IPython 6.0, Python 3.3 and above is required. 

See IPython `README.rst` file for more information: 

    https://github.com/ipython/ipython/blob/master/README.rst 

Python sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial 
=0) detected. 


error: Setup script exited with 1 
Searching for python-dateutil 
Best match: python-dateutil 2.6.0 
Processing python_dateutil-2.6.0-py2.7.egg 
python-dateutil 2.6.0 is already the active version in easy-install.pth 

Using c:\python27\openmdao-0.7.0\lib\site-packages\python_dateutil-2.6.0-py2.7.e 
gg 
Processing dependencies for python-dateutil 
Finished processing dependencies for python-dateutil 
install url: package= fusedwind url= http://github.com/FUSED-Wind/fusedwind/tar 
ball/develop 
installing distribution from current directory as a 'develop' egg 
running develop 
running egg_info 
creating src\fusedwind.egg-info 
writing requirements to src\fusedwind.egg-info\requires.txt 
writing src\fusedwind.egg-info\PKG-INFO 
writing top-level names to src\fusedwind.egg-info\top_level.txt 
writing dependency_links to src\fusedwind.egg-info\dependency_links.txt 
writing manifest file 'src\fusedwind.egg-info\SOURCES.txt' 
reading manifest file 'src\fusedwind.egg-info\SOURCES.txt' 
reading manifest template 'MANIFEST.in' 
warning: no directories found matching 'src\fusedwind\sphinx_build\html' 
writing manifest file 'src\fusedwind.egg-info\SOURCES.txt' 
running build_ext 
Creating c:\python27\openmdao-0.7.0\lib\site-packages\fusedwind.egg-link (link t 
o src) 
Adding fusedwind 0.1.0 to easy-install.pth file 

Installed c:\python27\openmdao-0.7.0\wisdem\plugins\fusedwind\src 
subprocess returned 0 
install url: package= Turbine_CostsSE url= http://github.com/WISDEM/Turbine_Cos 
tsSE/tarball/0.1 
installing distribution from current directory as a 'develop' egg 
running develop 
running egg_info 
creating src\Turbine_CostsSE.egg-info 
writing requirements to src\Turbine_CostsSE.egg-info\requires.txt 
writing src\Turbine_CostsSE.egg-info\PKG-INFO 
writing top-level names to src\Turbine_CostsSE.egg-info\top_level.txt 
writing dependency_links to src\Turbine_CostsSE.egg-info\dependency_links.txt 
writing manifest file 'src\Turbine_CostsSE.egg-info\SOURCES.txt' 
reading manifest file 'src\Turbine_CostsSE.egg-info\SOURCES.txt' 
reading manifest template 'MANIFEST.in' 
warning: no previously-included files matching 'openmdao_log.txt' found anywhere 
in distribution 
writing manifest file 'src\Turbine_CostsSE.egg-info\SOURCES.txt' 
running build_ext 
Creating c:\python27\openmdao-0.7.0\lib\site-packages\Turbine-CostsSE.egg-link (
link to src) 
Adding Turbine-CostsSE 0.1.0 to easy-install.pth file 

Installed c:\python27\openmdao-0.7.0\wisdem\plugins\turbine_costsse\src 
subprocess returned 0 
install url: package= CommonSE url= http://github.com/WISDEM/CommonSE/tarball/0 
.1 
Traceback (most recent call last): 
    File "setup_all.py", line 105, in <module> 
    install_url(f, url,force=options.force) 
    File "setup_all.py", line 28, in install_url 
    thetarfile = tarfile.open(fileobj=response, mode="r|gz") 
    File "C:\Python27\Lib\tarfile.py", line 1703, in open 
    stream = _Stream(name, filemode, comptype, fileobj, bufsize) 
    File "C:\Python27\Lib\tarfile.py", line 430, in __init__ 
    self._init_read_gz() 
    File "C:\Python27\Lib\tarfile.py", line 524, in _init_read_gz 
    raise ReadError("not a gzip file") 
tarfile.ReadError: not a gzip file 

(openmdao-0.7.0) C:\Python27\openmdao-0.7.0\WISDEM>' 

回答

0

openmdao 0.7.0是非常嚴重過時的。你應該至少使用0.13.0,或者更好的是使用1.7.X

+0

但是WISDEM不支持它們。我至多可以使用0.10.x.除非這個信息是錯誤的。 – SamAct

+0

看來你對當前版本的wisdem不支持OpenMDAO 1.x是正確的。但至少你應該運行0.10.0。 我相信有一個新版本的WISDEM即將在今年夏天晚些時候支持1.7.x。 –

+0

好吧,我會用10.3.2來嘗試這個,因爲很少有其他的依賴關係需要它,也因爲我看到'plugin install'命令有好幾次了。但是我知道你已經在這方面做了工作,你能告訴我你用於刀片模擬的版本嗎? – SamAct