Dear Group.
Congratulations for all the openquake engine, I am Gonzalo Fernandez from Bolivia, I am helping in the Topic 6 SARA project GMPE, to fulfill this task I tried to clone the repository gmpe-smtk from github unfortunately I could not do it, I will briefly tell you what I did.
1.- I have already created a virtual environment called "sara" within the SmartGit.
2.- I have installed Anaconda under windows 7- 32bits.
3.- When I type sara within the cmd anaconda it activates without problems
4.- I have installed under the virtual env the following packages :
- Numpy (1.6.1 or later) (installed with oq-hazardlib)
- Scipy (0.11.0 or later) (installed with oq-hazardlib)
- Shapely (installed with oq-hazardlib)
- Matplotlib (1.3.x or later)
- h5py (2.2.0)
All of them without problems,.
5.- I cloned successfully the oq-hazard package with the command
git clone
https://github.com/gem/oq-hazardlib.git6. I have installed successfully the package mingw for anaconda under windows without problems.
7.- While I have tried to compile with :
python setup.py install build --compiler=mingw32
I have the following error:
collect2.exe: ID returned 1 exit status (attached the figure), I also show the log message:
-------------------------------------------------------------------------------------------------------------------------------------
C:\Anaconda\envs\sara\Lib\site-packages\numpy\core\include/numpy/npy_1_7_depreca
ted_api.h:12:9: note: #pragma message: C:\Anaconda\envs\sara\Lib\site-packages\n
umpy\core\include/numpy/npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprec
ated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSIO
N
writing build\temp.win32-2.7\Release\speedups\_geodetic_speedups.def
C:\Anaconda\envs\sara\Scripts\gcc.bat -shared -s build\temp.win32-2.7\Release\sp
eedups\geodeticmodule.o build\temp.win32-2.7\Release\speedups\_geodetic_speedups
.def -LC:\Anaconda\envs\sara\libs -LC:\Anaconda\envs\sara\PCbuild -lpython27 -lm
svcr90 -o build\lib.win32-2.7\openquake\hazardlib\geo\_geodetic_speedups.pyd
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x60b): undefined reference to `__imp__PyCObject_Type'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x615): undefined reference to `__imp__PyExc_RuntimeError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x632): undefined reference to `__imp__PyExc_ImportError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x6db): undefined reference to `__imp__PyExc_RuntimeError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x6ec): undefined reference to `__imp__PyExc_ImportError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x727): undefined reference to `__imp__PyExc_RuntimeError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x738): undefined reference to `__imp__PyExc_ImportError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x749): undefined reference to `__imp__PyExc_ImportError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x784): undefined reference to `__imp__PyExc_AttributeError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x79f): undefined reference to `__imp__PyExc_ImportError'
build\temp.win32-2.7\Release\speedups\geodeticmodule.o:geodeticmodule.c:(.text+0
x7be): undefined reference to `__imp__PyExc_RuntimeError'
collect2.exe: error: ld returned 1 exit status
error: command 'C:\\Anaconda\\envs\\sara\\Scripts\\gcc.bat' failed with exit sta
tus 1
-----------------------------------------------------------------------------------------------------------------------------
I have the following path "C:\\Anaconda\\envs\\sara\\Scripts\\" and the gcc.bat also is present in the specified folder.
I will be so grateful for your commentaries and suggestions.
Thank you for your time spent reading it.
Best Regards.
Gonzalo F
Bolivia