Hi Robert,
Thank you for getting back to me.
I tried to used the fix-windows-build branch with the packages versions you listed (including setuptools 20.7.0), but the build still failed. I got the same traceback when using MinGW, but got a different traceback with the VC++ for Python 2.7 that is at the bottom of the email.
Thanks,
David
\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
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\setuptools\dist.py:294:
UserWarning: The version specified
('2016.1-git-ec8f05440577a054f5d139251f8f9977
03f72b23') is an invalid version, this may not work as expected with newer
versi
ons of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
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
customize MSVCCompiler
customize MSVCCompiler using build_ext
extending extension 'sfepy.discrete.common.extmods._fmfield' defined_macros
with
[('__SDIR__', '\\"sfepy\\\\discrete\\\\common\\\\extmods\\"'),
('SFEPY_PLATFORM
', 1), ('inline', '__inline'), ('DEBUG_FMF', None)]
extending extension 'sfepy.discrete.common.extmods.mappings' defined_macros
with
[('__SDIR__', '\\"sfepy\\\\discrete\\\\common\\\\extmods\\"'),
('SFEPY_PLATFORM
', 1), ('inline', '__inline'), ('DEBUG_FMF', None)]
extending extension 'sfepy.discrete.common.extmods.crefcoors'
defined_macros wit
h [('__SDIR__', '\\"sfepy\\\\discrete\\\\common\\\\extmods\\"'),
('SFEPY_PLATFOR
M', 1), ('inline', '__inline'), ('DEBUG_FMF', None)]
extending extension 'sfepy.discrete.common.extmods._geommech'
defined_macros wit
h [('__SDIR__', '\\"sfepy\\\\discrete\\\\common\\\\extmods\\"'),
('SFEPY_PLATFOR
M', 1), ('inline', '__inline'), ('DEBUG_FMF', None)]
extending extension 'sfepy.discrete.fem.extmods.bases' defined_macros with
[('__
SDIR__', '\\"sfepy\\\\discrete\\\\common\\\\extmods\\"'),
('SFEPY_PLATFORM', 1),
('inline', '__inline'), ('DEBUG_FMF', None)]
extending extension 'sfepy.discrete.fem.extmods.lobatto_bases'
defined_macros wi
th [('__SDIR__', '\\"sfepy\\\\discrete\\\\common\\\\extmods\\"'),
('SFEPY_PLATFO
RM', 1), ('inline', '__inline'), ('DEBUG_FMF', None)]
extending extension 'sfepy.terms.extmods.terms' defined_macros with
[('__SDIR__'
, '\\"sfepy\\\\terms\\\\extmods\\"'), ('SFEPY_PLATFORM', 1), ('inline',
'__inlin
e'), ('DEBUG_FMF', None), ('__SDIR__',
'\\"sfepy\\\\discrete\\\\common\\\\extmod
s\\"')]
building 'sfepy.discrete.common.extmods._fmfield' extension
compiling C sources
C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Microsoft\Visual
C++ f
or Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG
-D__SDIR_
_=\"sfepy\\discrete\\common\\extmods\" -DSFEPY_PLATFORM=1 -Dinline=__inline
-DDE
BUG_FMF -D__SDIR__=\"sfepy\\discrete\\common\\extmods\" -DSFEPY_PLATFORM=1
-Dinl
ine=__inline -DDEBUG_FMF -Isfepy\discrete\common\extmods
-IC:\Users\Default.Defa
ult-PC\Anaconda2\lib\site-packages\numpy\core\include
-IC:\Users\Default.Default
-PC\Anaconda2\include -IC:\Users\Default.Default-PC\Anaconda2\PC
/Tcsfepy\discre
te\common\extmods\_fmfield.c
/Fobuild\temp.win-amd64-2.7\Release\sfepy\discrete
common\extmods\_fmfield.obj
Found executable
C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Micro
soft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe
C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Microsoft\Visual
C++ f
or Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:C:\Use
rs\Default.Default-PC\Anaconda2\libs
/LIBPATH:C:\Users\Default.Default-PC\Anacon
da2\PCbuild\amd64
/LIBPATH:C:\Users\Default.Default-PC\Anaconda2\PC\VS9.0\amd64
/LIBPATH:build\temp.win-amd64-2.7 sfepy_common.lib /EXPORT:init_fmfield
build\te
mp.win-amd64-2.7\Release\sfepy\discrete\common\extmods\_fmfield.obj
/OUT:sfepy\d
iscrete\common\extmods\_fmfield.pyd
/IMPLIB:build\temp.win-amd64-2.7\Release\sfe
py\discrete\common\extmods\_fmfield.lib
/MANIFESTFILE:build\temp.win-amd64-2.7\R
elease\sfepy\discrete\common\extmods\_fmfield.pyd.manifest
Found executable
C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Micro
soft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe
_fmfield.obj : warning LNK4197: export 'init_fmfield' specified multiple
times;
using first specification
Creating library
build\temp.win-amd64-2.7\Release\sfepy\discrete\common\extmo
ds\_fmfield.lib and object
build\temp.win-amd64-2.7\Release\sfepy\discrete\commo
n\extmods\_fmfield.exp
_fmfield.obj : error LNK2019: unresolved external symbol __imp_free
referenced i
n function __pyx_pf_5numpy_7ndarray_2__releasebuffer__
_fmfield.obj : error LNK2019: unresolved external symbol __imp_malloc
referenced
in function __pyx_pf_5numpy_7ndarray___getbuffer__
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
sfepy_common.lib(fmfield.obj) : error LNK2019: unresolved external symbol
memcpy
referenced in function fmf_createAllocInit
sfepy_common.lib(fmfield.obj) : error LNK2001: unresolved external symbol
_fltus
ed
sfepy_common.lib(common_python.obj) : error LNK2001: unresolved external
symbol
_fltused
sfepy_common.lib(fmfield.obj) : error LNK2019: unresolved external symbol
__imp_
fprintf referenced in function fmf_print
sfepy_common.lib(common_python.obj) : error LNK2001: unresolved external
symbol
__imp_fprintf
sfepy_common.lib(fmfield.obj) : error LNK2019: unresolved external symbol
__imp_
fclose referenced in function fmf_save
sfepy_common.lib(fmfield.obj) : error LNK2019: unresolved external symbol
__imp_
fopen referenced in function fmf_save
sfepy_common.lib(common_python.obj) : error LNK2019: unresolved external
symbol
__imp_vprintf referenced in function output
sfepy_common.lib(common_python.obj) : error LNK2019: unresolved external
symbol
__imp__snprintf referenced in function errput
sfepy_common.lib(common_python.obj) : error LNK2019: unresolved external
symbol
memset referenced in function mem_alloc_mem
sfepy\discrete\common\extmods\_fmfield.pyd : fatal error LNK1120: 11
unresolved
externals
error: Command
"C:\Users\Default.Default-PC\AppData\Local\Programs\Common\Micros
oft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo
/INCREMENTAL:NO
/LIBPATH:C:\Users\Default.Default-PC\Anaconda2\libs
/LIBPATH:C:\Users\Default.D
efault-PC\Anaconda2\PCbuild\amd64
/LIBPATH:C:\Users\Default.Default-PC\Anaconda2
\PC\VS9.0\amd64 /LIBPATH:build\temp.win-amd64-2.7 sfepy_common.lib
/EXPORT:init_
fmfield
build\temp.win-amd64-2.7\Release\sfepy\discrete\common\extmods\_fmfield.
obj /OUT:sfepy\discrete\common\extmods\_fmfield.pyd
/IMPLIB:build\temp.win-amd64
-2.7\Release\sfepy\discrete\common\extmods\_fmfield.lib
/MANIFESTFILE:build\temp
.win-amd64-2.7\Release\sfepy\discrete\common\extmods\_fmfield.pyd.manifest"
fail
ed with exit status 1120
On Tuesday, May 10, 2016 at 12:21:42 PM UTC-4, Robert Cimrman wrote:
Hi David,
you need to use the fix-windows-build branch [1] to try the fix - 2016.1 does not work well [2]. The fix was tested to work on Windows 10 with the latest anaconda (do not forget to update numpy and setuptools). It works for me with the following versions of packages:
cython is available in version 0.23.4 numpy is available in version 1.11.0 scipy is available in version 0.17.0 matplotlib is available in version 1.5.1 pyparsing is available in version 2.0.3 tables is available in version 3.2.2 mayavi (optional) is available in version 4.4.0 sympy (optional) is available in version 0.7.6.1 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
r. [1] https://github.com/rc/sfepy/tree/fix-windows-build [2] issues #317, #318
On 05/10/2016 04:26 PM, David Brough wrote:
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
core.py", line 169, in setup return old_setup(**new_attr) File "C:\Users\Default.Default-PC\Anaconda2\lib\distutils\core.py",
151, in setup dist.run_commands() File "C:\Users\Default.Default-PC\Anaconda2\lib\distutils\dist.py",
953, in run_commands self.run_command(cmd) File "C:\Users\Default.Default-PC\Anaconda2\lib\distutils\dist.py",
"C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\numpy\distutils\ line line 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?