brightway-lca / brightway2-speedups

BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

not installable with python 3.7 #1

Closed aleksandra-kim closed 2 months ago

aleksandra-kim commented 5 years ago

Original report by Pascal Lesage (Bitbucket: MPa, ).


Seems to be a c2039 error:

pip install bw2speedups results in this traceback:

Building wheels for collected packages: bw2speedups Building wheel for bw2speedups (setup.py) ... error Complete output from command C:\mypy\anaconda\envs\bw_py37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\PASCAL~1\AppData\Local\Temp\pip-install-0f2tbkep\bw2speedups\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\PASCAL~1\AppData\Local\Temp\pip-wheel-6a2lzrmc --python-tag cp37: running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\bw2speedups copying bw2speedups__init__.py -> build\lib.win-amd64-3.7\bw2speedups running build_ext building 'bw2speedups._indexer' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\bw2speedups C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\mypy\anaconda\envs\bw_py37\lib\site-packages\numpy\core\include -IC:\mypy\anaconda\envs\bw_py37\include -IC:\mypy\anaconda\envs\bw_py37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.13.26128\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" /Tcbw2speedups/_indexer.c /Fobuild\temp.win-amd64-3.7\Release\bw2speedups/_indexer.obj _indexer.c c:\mypy\anaconda\envs\bw_py37\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION bw2speedups/_indexer.c(1361): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data bw2speedups/_indexer.c(5251): error C2039: 'exc_type': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5252): error C2039: 'exc_value': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5253): error C2039: 'exc_traceback': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5265): error C2039: 'exc_type': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5266): error C2039: 'exc_value': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5267): error C2039: 'exc_traceback': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5268): error C2039: 'exc_type': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5269): error C2039: 'exc_value': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5270): error C2039: 'exc_traceback': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5313): error C2039: 'exc_type': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5314): error C2039: 'exc_value': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5315): error C2039: 'exc_traceback': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5316): error C2039: 'exc_type': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5317): error C2039: 'exc_value': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5318): error C2039: 'exc_traceback': is not a member of '_ts' c:\mypy\anaconda\envs\bw_py37\include\pystate.h(212): note: see declaration of '_ts' bw2speedups/_indexer.c(5915): warning C4146: unary minus operator applied to unsigned type, result still unsigned bw2speedups/_indexer.c(5933): warning C4146: unary minus operator applied to unsigned type, result still unsigned bw2speedups/_indexer.c(5951): warning C4146: unary minus operator applied to unsigned type, result still unsigned bw2speedups/_indexer.c(6151): warning C4146: unary minus operator applied to unsigned type, result still unsigned bw2speedups/_indexer.c(6169): warning C4146: unary minus operator applied to unsigned type, result still unsigned bw2speedups/_indexer.c(6187): warning C4146: unary minus operator applied to unsigned type, result still unsigned error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\cl.exe' failed with exit status 2

aleksandra-kim commented 5 years ago

Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


Binaries are now available for 3.7 via conda; however, I need something like https://github.com/joerick/cibuildwheel to make building wheels for upload to PyPI sane.

aleksandra-kim commented 5 years ago

Original comment by Chris Mutel (Bitbucket: cmutel, GitHub: cmutel).


I am giving up on this for now - we have binary versions available on conda, that is enough in most cases.

Some resources: