Problem installing sfepy with Ananconda

Hi,
I am having trouble installing sfepy. I am using a Windows 8 machine with
Anaconda installed.
When I try to install I get a series of messages which I have pasted below.
I think the problem is in the part that I have bolded but I am not sure
how to correct that. Any assistance you could provide would be much
appreciated.
Thanks,
Alicia
Missing optional package "mayavi"; you may get run-time errors running build_ext running build_src build_src building library "sfepy_common" sources building library "sfepy_terms" sources building extension "sfepy.discrete.fem.extmods._fmfield" sources building extension "sfepy.discrete.fem.extmods.mappings" sources building extension "sfepy.discrete.fem.extmods.assemble" sources building extension "sfepy.discrete.fem.extmods.bases" sources building extension "sfepy.discrete.fem.extmods.cmesh" sources building extension "sfepy.discrete.fem.extmods.lobatto_bases" sources building extension "sfepy.discrete.fem.extmods._geommech" sources building extension "sfepy.discrete.iga.extmods.igac" sources building extension "sfepy.linalg.extmods.crcm" sources building extension "sfepy.terms.extmods.terms" sources building data_files sources build_src: building npy-pkg config files Looking for python27.dll customize Mingw32CCompiler customize Mingw32CCompiler using build_clib Looking for python27.dll customize Mingw32CCompiler customize Mingw32CCompiler using build_ext extending extension 'sfepy.discrete.fem.extmods._fmfield' defined_macros with [('__SDIR__', '\'"sfepy\\discrete\\fem\\ex tmods"\''), ('SFEPY_PLATFORM', 1)] extending extension 'sfepy.discrete.fem.extmods.mappings' defined_macros with [('__SDIR__', '\'"sfepy\\discrete\\fem\\ex tmods"\''), ('SFEPY_PLATFORM', 1)] extending extension 'sfepy.discrete.fem.extmods.bases' defined_macros with [('__SDIR__', '\'"sfepy\\discrete\\fem\\extmo ds"\''), ('SFEPY_PLATFORM', 1)] extending extension 'sfepy.discrete.fem.extmods.lobatto_bases' defined_macros with [('__SDIR__', '\'"sfepy\\discrete\\fe m\\extmods"\''), ('SFEPY_PLATFORM', 1)] extending extension 'sfepy.discrete.fem.extmods._geommech' defined_macros with [('__SDIR__', '\'"sfepy\\discrete\\fem\\e xtmods"\''), ('SFEPY_PLATFORM', 1)] extending extension 'sfepy.terms.extmods.terms' defined_macros with [('__SDIR__', '\'"sfepy\\terms\\extmods"\''), ('SFEP Y_PLATFORM', 1), ('__SDIR__', '\'"sfepy\\discrete\\fem\\extmods"\'')] building 'sfepy.discrete.fem.extmods._fmfield' extension compiling C sources C compiler: gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes
compile options: '-D__SDIR__='"sfepy\discrete\fem\extmods"'
-DSFEPY_PLATFORM=1 -D__SDIR__='"sfepy\discrete\fem\extmods"'
-DSFEPY_PLATFORM=1 -D__MSVCRT_VERSION__=0x0900
-Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum
\Anaconda\lib\site-packages\numpy\core\include
-IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\a
white40\AppData\Local\Continuum\Anaconda\PC -c'
extra options: '-g -O2'
gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes
-D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM
=1 -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM=1
-D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods
-IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include
-IC:\Users\awhite40\AppData\L
ocal\Continuum\Anaconda\include
-IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\PC -c
sfepy\discrete\fem\extmods\_f
mfield.c -o
build\temp.win-amd64-2.7\Release\sfepy\discrete\fem\extmods\_fmfield.o -g
-O2
Found executable
C:\Users\awhite40\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat
gcc -m64 -g -shared
build\temp.win-amd64-2.7\Release\sfepy\discrete\fem\extmods\_fmfield.o
-LC:\Users\awhite40\AppData\L
ocal\Continuum\Anaconda\libs -*LC:\Users\awhite40\AppData\Local\Continuum\Anaconda\PCbuild\amd64
-Lbuild\temp.win-amd64-2*
*.7 -lsfepy_common -lpython27 -lmsvcr90 -o
sfepy\discrete\fem\extmods\_fmfield.pyd*
*build\temp.win-amd64-2.7/libsfepy_common.a: could not read symbols:
Archive has no index; run ranlib to add one*
collect2.exe: error: ld returned 1 exit status
error: Command "gcc -m64 -g -shared
build\temp.win-amd64-2.7\Release\sfepy\discrete\fem\extmods\_fmfield.o
-LC:\Users\aw
hite40\AppData\Local\Continuum\Anaconda\libs
-LC:\Users\awhite40\AppData\Local\Continuum\Anaconda\PCbuild\amd64 -Lbuild
temp.win-amd64-2.7 -lsfepy_common -lpython27 -lmsvcr90 -o
sfepy\discrete\fem\extmods\_fmfield.pyd" failed with exit stat
us 1

Hi Alicia,
there is probably something wrong with 'sfepy_common.a' library (as you pointed out).
Unfortunately, I'm unable to reproduce your problem, so please could you check you have:
- latest version of SfePy sources
- latest Anaconda
- conda update conda
- conda update anaconda
- Then make clean build
- python setup.py clean
- python setup.py build_ext --inplace
Look for similar lines in your log messages and paste corresponding part here.
Looking for python27.dll customize Mingw32CCompiler customize Mingw32CCompiler using build_clib *building 'sfepy_common' library* compiling C sources C compiler: gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes [...] gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM=1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\kejzlar\Anaconda\include -IC:\Users\kejzlar\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods\common_python.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\common_python.o -g -O2 *ar: adding 4 object files to build\temp.win-amd64-2.7\libsfepy_common.a* Found executable C:\Users\kejzlar\Anaconda\Scripts\ar.bat <<<
Hopefully we'll be able to figure out whats wrong...
Regards, Lubos

Hi Lubos, Thanks for your help. I updated to the latest version of sfepy and anaconda. It is no longer giving me an error and the end of the message but when I try to use it with another code I am still getting a message that it can't find sfepy. Any suggestions? here are a couple of excerpts that are similar to what you posted
building data_files sources build_src: building npy-pkg config files Looking for python27.dll customize Mingw32CCompiler customize Mingw32CCompiler using build_clib building 'sfepy_common' library compiling C sources C compiler: gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes [...]
gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \geommech.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\geommech.o -g -O2 Found executable C:\Users\awhite40\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \refmaps.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\refmaps.o -g -O2 gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \fmfield.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\fmfield.o -g -O2 gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \common_python.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\common_python.o -g -O2 ar: adding 4 object files to build\temp.win-amd64-2.7\libsfepy_common.a Found executable C:\Users\awhite40\AppData\Local\Continuum\Anaconda\Scripts\ar.bat building 'sfepy_terms' library
Thanks, Alicia

Hi Alicia,
On 01/23/2015 08:36 PM, Alicia White wrote:
Hi Lubos, Thanks for your help. I updated to the latest version of sfepy and anaconda. It is no longer giving me an error and the end of the message but when I try to use it with another code I am still getting a message that it can't find sfepy. Any suggestions?
What do you mean by 'use it with another code' - is it importing sfepy modules? Do you build sfepy in-place, or for a system-wide install? (Do not hesitate to post the whole build output including the build command you used.)
r.
here are a couple of excerpts that are similar to what you posted
building data_files sources build_src: building npy-pkg config files Looking for python27.dll customize Mingw32CCompiler customize Mingw32CCompiler using build_clib building 'sfepy_common' library compiling C sources C compiler: gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes [...]
gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \geommech.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\geommech.o -g -O2 Found executable C:\Users\awhite40\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \refmaps.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\refmaps.o -g -O2 gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \fmfield.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\fmfield.o -g -O2 gcc -m64 -g -DNDEBUG -DMS_WIN64 -O2 -Wall -Wstrict-prototypes -D__SDIR__='"sfepy\discrete\fem\extmods"' -DSFEPY_PLATFORM =1 -D__MSVCRT_VERSION__=0x0900 -Isfepy\discrete\fem\extmods -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\include -IC:\Users\awhite40\AppData\Local\Continuum\Anaconda\lib\site-packages\numpy\core\include -c sfepy\discrete\fem\extmods \common_python.c -o build\temp.win-amd64-2.7\sfepy\discrete\fem\extmods\common_python.o -g -O2 ar: adding 4 object files to build\temp.win-amd64-2.7\libsfepy_common.a Found executable C:\Users\awhite40\AppData\Local\Continuum\Anaconda\Scripts\ar.bat building 'sfepy_terms' library
Thanks, Alicia

It is working now. I think the anaconda update fixed the problem thanks!
participants (3)
-
Alicia White
-
Luboš Kejzlar
-
Robert Cimrman