windows build problem fix (missing vcvarsall.bat etc.)
Any windows users around who could try [1] and report back results?
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?
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?
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?
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 "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 foundAny 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?
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?
Hi David,
On 05/12/2016 03:58 PM, David Brough wrote:
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.
Could you try removing the build/ directory completely, running 'python setup.py clean', and then retry with VC++? There might be some mingw-related object files around, or vice-versa.
I am attaching a successful build log (w10, anaconda, VC++ for Python 2.7) for comparison - ignore the cython warnings, the actual compilation starts at line 586.
r.
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 1120On 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 line972, 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?
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
David
On Thursday, May 12, 2016 at 3:38:36 PM UTC-4, Robert Cimrman wrote:
Hi David,
On 05/12/2016 03:58 PM, David Brough wrote:
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.
Could you try removing the build/ directory completely, running 'python setup.py clean', and then retry with VC++? There might be some mingw-related object files around, or vice-versa.
I am attaching a successful build log (w10, anaconda, VC++ for Python 2.7) for comparison - ignore the cython warnings, the actual compilation starts at line 586.
r.
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
"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? > > r. > [1] https://github.com/sfepy/sfepy/pull/325 > >
Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
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
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that possibly numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566
Hi Robert,
I upgraded to Windows10 and was able to build SfePy in place using Visual C++ 2008 64-bit Command Prompt. Thanks for your help.
I have one more issue. I would like to install SfePy and not just use it in place. While in the SfePy root directory after running
python setup.py build_ext --inplace
I don't get any errors, but outside of the SfePy root directory after running
python setup.py build
I get an error with the trace back listed below. Any thoughts on how to fix this?
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ValueError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
__init__.pxd in init sfepy.linalg.extmods.crcm (build\src.win-amd64-2.7\sfepy\linalg\extmods\crcm.c:4828)()
ValueError: numpy.dtype has the wrong size, try recompiling
On Friday, May 13, 2016 at 3:49:12 AM UTC-4, Robert Cimrman wrote:
Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
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
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that possibly numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566
On 05/17/2016 11:14 PM, David Brough wrote:
Hi Robert,
I upgraded to Windows10 and was able to build SfePy in place using Visual C++ 2008 64-bit Command Prompt. Thanks for your help.
I have one more issue. I would like to install SfePy and not just use it in place. While in the SfePy root directory after running
python setup.py build_ext --inplace
OK.
I don't get any errors, but outside of the SfePy root directory after running
python setup.py build
Did you do python setup.py install
as well? Looking at the trace, there is an
installed sfepy, but it could be that it is there from a previous installation,
that had been compiled with another numpy version.
r.
I get an error with the trace back listed below. Any thoughts on how to fix this?
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ValueError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
__init__.pxd in init sfepy.linalg.extmods.crcm (build\src.win-amd64-2.7\sfepy\linalg\extmods\crcm.c:4828)()
ValueError: numpy.dtype has the wrong size, try recompiling
On Friday, May 13, 2016 at 3:49:12 AM UTC-4, Robert Cimrman wrote:
Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
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
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that possibly numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566
Hi Robert,
I first ran
python setup.py clean
followed by
python setup.py build
got a new Traceback.
Thanks,
David
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ImportError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
ImportError: cannot import name rcm
On Wednesday, May 18, 2016 at 11:49:13 AM UTC-4, Robert Cimrman wrote:
On 05/17/2016 11:14 PM, David Brough wrote:
Hi Robert,
I upgraded to Windows10 and was able to build SfePy in place using Visual C++ 2008 64-bit Command Prompt. Thanks for your help.
I have one more issue. I would like to install SfePy and not just use it in place. While in the SfePy root directory after running
python setup.py build_ext --inplace
OK.
I don't get any errors, but outside of the SfePy root directory after running
python setup.py build
Did you do
python setup.py install
as well? Looking at the trace, there is an installed sfepy, but it could be that it is there from a previous installation, that had been compiled with another numpy version.r.
I get an error with the trace back listed below. Any thoughts on how to fix this?
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ValueError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py
in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py
in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py
in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
__init__.pxd in init sfepy.linalg.extmods.crcm (build\src.win-amd64-2.7\sfepy\linalg\extmods\crcm.c:4828)()
ValueError: numpy.dtype has the wrong size, try recompiling
On Friday, May 13, 2016 at 3:49:12 AM UTC-4, Robert Cimrman wrote:
Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
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
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that possibly numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566
Hi David,
python setup.py build
just builds the extension modules and copies stuff into build/ directory. You need to run
python setup.py install
to actually move the files into C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\
Does that help?
r.
On 05/18/2016 10:26 PM, David Brough wrote:
Hi Robert,
I first ran
python setup.py clean
followed by
python setup.py build
got a new Traceback.
Thanks,
David
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ImportError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
ImportError: cannot import name rcm
On Wednesday, May 18, 2016 at 11:49:13 AM UTC-4, Robert Cimrman wrote:
On 05/17/2016 11:14 PM, David Brough wrote:
Hi Robert,
I upgraded to Windows10 and was able to build SfePy in place using Visual C++ 2008 64-bit Command Prompt. Thanks for your help.
I have one more issue. I would like to install SfePy and not just use it in place. While in the SfePy root directory after running
python setup.py build_ext --inplace
OK.
I don't get any errors, but outside of the SfePy root directory after running
python setup.py build
Did you do
python setup.py install
as well? Looking at the trace, there is an installed sfepy, but it could be that it is there from a previous installation, that had been compiled with another numpy version.r.
I get an error with the trace back listed below. Any thoughts on how to fix this?
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ValueError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py
in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py
in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py
in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
__init__.pxd in init sfepy.linalg.extmods.crcm (build\src.win-amd64-2.7\sfepy\linalg\extmods\crcm.c:4828)()
ValueError: numpy.dtype has the wrong size, try recompiling
On Friday, May 13, 2016 at 3:49:12 AM UTC-4, Robert Cimrman wrote:
Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still didn't compile.
Thanks,
> 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
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that possibly numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566
Hi Robert,
I ran
python setup.py clean
removed all of the sfepy installations in C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\ , upgraded numpy to 0.10.4 ran the following
python setup.py install
I no longer get an error, but I get a warning.
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sfepy
In [2]: from sfepy import discrete sfepy: WARNING: module C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\terms\terms_acoustic.py cannot be imported! sfepy: reason: 'module' object has no attribute 'd_diffusion_sa'
On Wednesday, May 18, 2016 at 5:13:44 PM UTC-4, Robert Cimrman wrote:
Hi David,
python setup.py build
just builds the extension modules and copies stuff into build/ directory. You need to run
python setup.py install
to actually move the files into C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\
Does that help?
r.
On 05/18/2016 10:26 PM, David Brough wrote:
Hi Robert,
I first ran
python setup.py clean
followed by
python setup.py build
got a new Traceback.
Thanks,
David
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ImportError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py
in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py
in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py
in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
ImportError: cannot import name rcm
On Wednesday, May 18, 2016 at 11:49:13 AM UTC-4, Robert Cimrman wrote:
On 05/17/2016 11:14 PM, David Brough wrote:
Hi Robert,
I upgraded to Windows10 and was able to build SfePy in place using Visual C++ 2008 64-bit Command Prompt. Thanks for your help.
I have one more issue. I would like to install SfePy and not just use
in
place. While in the SfePy root directory after running
python setup.py build_ext --inplace
OK.
I don't get any errors, but outside of the SfePy root directory after running
python setup.py build
Did you do
python setup.py install
as well? Looking at the trace,it there
is an installed sfepy, but it could be that it is there from a previous installation, that had been compiled with another numpy version.
r.
I get an error with the trace back listed below. Any thoughts on how to fix this?
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sfepy.discrete.fem import Field
ValueError Traceback (most recent call last) <ipython-input-1-afdfc336b24f> in <module>() ----> 1 from sfepy.discrete.fem import Field
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\__init__.py
in <module>() 6 from functions import Functions, Function 7 from conditions import Conditions ----> 8 from variables import Variables, Variable, FieldVariable, create_adof_conns 9 from materials import Materials, Material 10 from equations import Equations, Equation
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\discrete\variables.py
in <module>() 10 output, OneTypeList, Container, Struct, basestr, 11 iter_dict_of_lists) ---> 12 import sfepy.linalg as la 13 from sfepy.discrete.functions import Function 14 from sfepy.discrete.conditions import get_condition_value
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\linalg\__init__.py
in <module>() ----> 1 from extmods.crcm import rcm, permute_in_place 2 from sparse import * 3 from utils import * 4 from geometry import * 5 from eigen import *
__init__.pxd in init sfepy.linalg.extmods.crcm (build\src.win-amd64-2.7\sfepy\linalg\extmods\crcm.c:4828)()
ValueError: numpy.dtype has the wrong size, try recompiling
On Friday, May 13, 2016 at 3:49:12 AM UTC-4, Robert Cimrman wrote:
Hi David,
On 05/13/2016 03:32 AM, David Brough wrote:
Hi Robert,
I tried completely removing the build/ directory, but it still
compile.
Thanks,
>> 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
this is weird. The compilation succeeds but linking fails, and those symbols are from numpy. Googling the error seems to suggest [1], that
didn't possibly
numpy was compiled with another compiler than that used for sfepy extension modules, but I do not know how to help with the debugging.
BTW. what command line shell do you use for the build. The anaconda prompt, git bash prompt, or? Maybe there are some problems with paths.
r.
PS: a colleague of mine had also a similar problem on W10, so I came another day to his computer, tried the command myself and it worked. There are mysteries in MS world :)
[1] https://github.com/scikit-learn/scikit-learn/issues/3566
OK - there could be a problem with the d_diffusion_sa term (it has been changed recently). Do the interactive examples work (like the one in the tutorial)? Do you get the same error when building in place?
Could you run python setup.py clean
, then python setup.py install > build-log.txt 2>&1
and then send me the build-log.txt?
Thanks for debugging! r.
On 05/19/2016 06:11 PM, David Brough wrote:
Hi Robert,
I ran
python setup.py clean
removed all of the sfepy installations in C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\ , upgraded numpy to 0.10.4 ran the following
python setup.py install
I no longer get an error, but I get a warning.
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sfepy
In [2]: from sfepy import discrete sfepy: WARNING: module C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\terms\terms_acoustic.py cannot be imported! sfepy: reason: 'module' object has no attribute 'd_diffusion_sa'
Hi Robert,
Here is the log.
Thanks,
David
On Thursday, May 19, 2016 at 2:02:55 PM UTC-4, Robert Cimrman wrote:
OK - there could be a problem with the d_diffusion_sa term (it has been changed recently). Do the interactive examples work (like the one in the tutorial)? Do you get the same error when building in place?
Could you run
python setup.py clean
, thenpython setup.py install > build-log.txt 2>&1
and then send me the build-log.txt?Thanks for debugging! r.
On 05/19/2016 06:11 PM, David Brough wrote:
Hi Robert,
I ran
python setup.py clean
removed all of the sfepy installations in C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\ , upgraded numpy to 0.10.4 ran the following
python setup.py install
I no longer get an error, but I get a warning.
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sfepy
In [2]: from sfepy import discrete sfepy: WARNING: module
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\terms\terms_acoustic.py
cannot be imported! sfepy: reason: 'module' object has no attribute 'd_diffusion_sa'
HI Robert,
I don't get the warning after building in place, only after install. I haven't tried the tutorials, but I do get the warning after running this <https://github.com/materialsinnovation/pymks/blob/master/pymks/datasets/elastic_FE_simulation.py> simulation.
Thanks,
David
On Thursday, May 19, 2016 at 2:16:29 PM UTC-4, David Brough wrote:
Hi Robert,
Here is the log.
Thanks,
David
On Thursday, May 19, 2016 at 2:02:55 PM UTC-4, Robert Cimrman wrote:
OK - there could be a problem with the d_diffusion_sa term (it has been changed recently). Do the interactive examples work (like the one in the tutorial)? Do you get the same error when building in place?
Could you run
python setup.py clean
, thenpython setup.py install > build-log.txt 2>&1
and then send me the build-log.txt?Thanks for debugging! r.
On 05/19/2016 06:11 PM, David Brough wrote:
Hi Robert,
I ran
python setup.py clean
removed all of the sfepy installations in C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\ , upgraded numpy to 0.10.4 ran the following
python setup.py install
I no longer get an error, but I get a warning.
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sfepy
In [2]: from sfepy import discrete sfepy: WARNING: module
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\terms\terms_acoustic.py
cannot be imported! sfepy: reason: 'module' object has no attribute 'd_diffusion_sa'
Hi David,
the warning comes from the fact that d_diffusion_sa term was renamed to d_sd_diffusion during a term clean-up recently, and a file called terms_acoustic.py was completely removed.
Your build log seems perfectly ok. The fact that you do not see the warning when working in-place suggests, that you have the old terms_acoustic.py somewhere in the system-wide site-packages (c:\users\default.default-pc\anaconda2\lib\site-packages\sfepy....) - try searching for that file and remove it.
r.
On 05/20/2016 06:31 PM, David Brough wrote:
HI Robert,
I don't get the warning after building in place, only after install. I haven't tried the tutorials, but I do get the warning after running this <https://github.com/materialsinnovation/pymks/blob/master/pymks/datasets/elastic_FE_simulation.py> simulation.
Thanks,
David
On Thursday, May 19, 2016 at 2:16:29 PM UTC-4, David Brough wrote:
Hi Robert,
Here is the log.
Thanks,
David
On Thursday, May 19, 2016 at 2:02:55 PM UTC-4, Robert Cimrman wrote:
OK - there could be a problem with the d_diffusion_sa term (it has been changed recently). Do the interactive examples work (like the one in the tutorial)? Do you get the same error when building in place?
Could you run
python setup.py clean
, thenpython setup.py install > build-log.txt 2>&1
and then send me the build-log.txt?Thanks for debugging! r.
On 05/19/2016 06:11 PM, David Brough wrote:
Hi Robert,
I ran
python setup.py clean
removed all of the sfepy installations in C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\ , upgraded numpy to 0.10.4 ran the following
python setup.py install
I no longer get an error, but I get a warning.
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sfepy
In [2]: from sfepy import discrete sfepy: WARNING: module
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\terms\terms_acoustic.py
cannot be imported! sfepy: reason: 'module' object has no attribute 'd_diffusion_sa'
participants (3)
-
David Brough
-
Luca Camosi
-
Robert Cimrman