Hi Robert,
I am also having issue with a windows build. I trying to build sfepy 2016.1 with Anaconda 4.0.0 on Windows 7 and I have tried using Microsoft's Visual C++ Compiler for Python and MinGW without sucess. Below is the trace-back for the Microsoft compiler.
\sfepy>python setup.py build_ext --inplace igakit (optional) is missing; you may get run-time errors petsc4py (optional) is missing; you may get run-time errors mpi4py (optional) is missing; you may get run-time errors pymetis (optional) is missing; you may get run-time errors scikits.umfpack (optional) is missing; you may get run-time errors pysparse (optional) is missing; 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.common.extmods._fmfield" sources building extension "sfepy.discrete.common.extmods.mappings" sources building extension "sfepy.discrete.common.extmods.assemble" sources building extension "sfepy.discrete.common.extmods.cmesh" sources building extension "sfepy.discrete.common.extmods.crefcoors" sources building extension "sfepy.discrete.common.extmods._geommech" sources building extension "sfepy.discrete.fem.extmods.bases" sources building extension "sfepy.discrete.fem.extmods.lobatto_bases" 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 customize MSVCCompiler customize MSVCCompiler using build_clib building 'sfepy_common' library compiling C sources C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Microsoft\Visual C++ f or Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__SDIR__='"sf epy\discrete\common\extmods"' -DSFEPY_PLATFORM=1 -DDEBUG_FMF -Isfepy\discrete\co mmon\extmods -IC:\Users\Default.Default-PC\Anaconda2\include -IC:\Users\Default. Default-PC\Anaconda2\lib\site-packages\numpy\core\include -IC:\Users\Default.Def ault-PC\Anaconda2\include -IC:\Users\Default.Default-PC\Anaconda2\PC /Tcsfepy\di screte\common\extmods\fmfield.c /Fobuild\temp.win-amd64-2.7\sfepy\discrete\commo n\extmods\fmfield.obj -g -O2 Found executable C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Micro soft\Visual C++ for Python\9.0\VC\Bin\cl.exe cl : Command line warning D9002 : ignoring unknown option '-g' fmfield.c sfepy\discrete\common\extmods\fmfield.c(21) : warning C4129: 'd' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(21) : warning C4129: 'c' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(21) : warning C4129: 'e' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(21) : error C2015: too many characters i n constant sfepy\discrete\common\extmods\fmfield.c(39) : warning C4129: 'd' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(39) : warning C4129: 'c' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(39) : warning C4129: 'e' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(39) : error C2015: too many characters i n constant sfepy\discrete\common\extmods\fmfield.c(82) : warning C4129: 'd' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(82) : warning C4129: 'c' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(82) : warning C4129: 'e' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(82) : error C2015: too many characters i n constant sfepy\discrete\common\extmods\fmfield.c(101) : warning C4129: 'd' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(101) : warning C4129: 'c' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(101) : warning C4129: 'e' : unrecognized character escape sequence sfepy\discrete\common\extmods\fmfield.c(101) : error C2015: too many characters in constant error: Command "C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Micros oft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__SDIR__='"sfepy\discrete\common\extmods"' -DSFEPY_PLATFORM=1 -DDEBUG_FMF -Is fepy\discrete\common\extmods -IC:\Users\Default.Default-PC\Anaconda2\include -IC :\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\core\include -IC:\U sers\Default.Default-PC\Anaconda2\include -IC:\Users\Default.Default-PC\Anaconda 2\PC /Tcsfepy\discrete\common\extmods\fmfield.c /Fobuild\temp.win-amd64-2.7\sfep y\discrete\common\extmods\fmfield.obj -g -O2" failed with exit status 2
Is there something that I need to change in site_cfg.py?
Also, below is the traceback for mingw32
\sfepy>python setup.py build_ext --inplace --compiler=mingw32
igakit (optional) is missing; you may get run-time errors
petsc4py (optional) is missing; you may get run-time errors
mpi4py (optional) is missing; you may get run-time errors
pymetis (optional) is missing; you may get run-time errors
scikits.umfpack (optional) is missing; you may get run-time errors
pysparse (optional) is missing; 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.common.extmods._fmfield" sources
building extension "sfepy.discrete.common.extmods.mappings" sources
building extension "sfepy.discrete.common.extmods.assemble" sources
building extension "sfepy.discrete.common.extmods.cmesh" sources
building extension "sfepy.discrete.common.extmods.crefcoors" sources
building extension "sfepy.discrete.common.extmods._geommech" sources
building extension "sfepy.discrete.fem.extmods.bases" sources
building extension "sfepy.discrete.fem.extmods.lobatto_bases" 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
Building import library (arch=AMD64):
"C:\Users\Default.Default-PC\Anaconda2\lib
s\libpython27.a" (from C:\Users\Default.Default-PC\Anaconda2\python27.dll)
objdump.exe: C:\Users\Default.Default-PC\Anaconda2\python27.dll: File
format not
recognized
Traceback (most recent call last):
File "setup.py", line 240, in <module>
setup_package()
File "setup.py", line 230, in setup_package
configuration=configuration)
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
core.py", line 169, in setup
return old_setup(**new_attr)
File "C:\Users\Default.Default-PC\Anaconda2\lib\distutils\core.py", line
151,
in setup
dist.run_commands()
File "C:\Users\Default.Default-PC\Anaconda2\lib\distutils\dist.py", line
953,
in run_commands
self.run_command(cmd)
File "C:\Users\Default.Default-PC\Anaconda2\lib\distutils\dist.py", line
972,
in run_command
cmd_obj.run()
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
command\build_ext.py", line 94, in run
build_clib.run()
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
command\build_clib.py", line 83, in run
force=self.force)
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
ccompiler.py", line 596, in new_compiler
compiler = klass(None, dry_run, force)
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
mingw32ccompiler.py", line 93, in __init__
build_import_library()
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
mingw32ccompiler.py", line 377, in build_import_library
return _build_import_library_amd64()
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
mingw32ccompiler.py", line 399, in _build_import_library_amd64
generate_def(dll_file, def_file)
File
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils
mingw32ccompiler.py", line 274, in generate_def
raise ValueError("Symbol table not found")
ValueError: Symbol table not found
Any suggestions on how to get a windows build?
Thanks,
David
On Sunday, May 8, 2016 at 4:00:06 PM UTC-4, Robert Cimrman wrote:
Thanks for trying!
It seems that you have some very old files from previous versions (terms_wrap.c) in sfepy/terms/extmods - those should not be there. Could you try a fresh clone to another directory?
r.
On 05/07/2016 07:22 PM, Luca Camosi wrote:
Thanks for that.
Unfortunately it still doesn't work for me.
Maybe it is unrelated.
Il giorno venerdì 6 maggio 2016 14:18:35 UTC+2, Robert Cimrman ha
scritto:
Any windows users around who could try [1] and report back results?