C:\Users\akhilesh.s>pip install sawtooth-sdk
Collecting sawtooth-sdk
Using cached sawtooth_sdk-1.2.5-py3-none-any.whl (97 kB)
Requirement already satisfied: colorlog in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (6.7.0)
Requirement already satisfied: protobuf in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (4.21.12)
Requirement already satisfied: pyzmq in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (25.0.0)
Collecting secp256k1
Using cached secp256k1-0.14.0.tar.gz (2.4 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: toml in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (0.10.2)
Requirement already satisfied: PyYAML in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (6.0)
Requirement already satisfied: colorama in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from colorlog->sawtooth-sdk) (0.4.6)
Requirement already satisfied: cffi>=1.3.0 in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from secp256k1->sawtooth-sdk) (1.15.1)
Requirement already satisfied: pycparser in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from cffi>=1.3.0->secp256k1->sawtooth-sdk) (2.21)
Building wheels for collected packages: secp256k1
Building wheel for secp256k1 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
0.26
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Using bundled libsecp256k1
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-cpython-311\secp256k1
running build_clib
Building experimental
error: [WinError 193] %1 is not a valid Win32 application
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for secp256k1
Running setup.py clean for secp256k1
Failed to build secp256k1
Installing collected packages: secp256k1, sawtooth-sdk
Running setup.py install for secp256k1 ... error
error: subprocess-exited-with-error
× Running setup.py install for secp256k1 did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
0.26
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Using bundled libsecp256k1
running install
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-cpython-311\secp256k1
running build_clib
Building experimental
error: [WinError 193] %1 is not a valid Win32 application
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> secp256k1
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
output-image-1
output-image-2
While installing sawtooth-sdk from "pip install sawtooth-sdk", encountered "pkg-config" error.
Pycharm error 'pkg-config' is required to install this package on Windows
Its resolved.
Later encountered secp256k1 error. Even installed Microsoft C++ build tools, still found this "secp256k1" error. Also tried with python 3.9 version getting same error . Can anyone share the fix?
I realize there are a lot of variations of these error questions out there, from my search nothing seemed to help.
I have recently pip installed some packages using my cmd prompt on windows. For instance pip installed Flask and had no issues. However I recently tried to pip install cs50 and Flask-SQLAlchemy and have gotten the same error with regards to greenlet.
My question is two fold. What does greenlet have to do with installing these packages. And secondly how can I fix this error so that I can pip install these packages?
Collecting Flask-SQLAlchemy
Using cached Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB)
Collecting SQLAlchemy>=0.8.0
Using cached SQLAlchemy-1.4.29.tar.gz (8.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Flask>=0.10 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask-SQLAlchemy) (2.0.2)
Requirement already satisfied: itsdangerous>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Requirement already satisfied: Jinja2>=3.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (3.0.3)
Requirement already satisfied: click>=7.1.2 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (8.0.3)
Requirement already satisfied: Werkzeug>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.2)
Collecting greenlet!=0.4.17
Using cached greenlet-1.1.2.tar.gz (91 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: colorama in c:\msys64\mingw64\lib\python3.9\site-packages (from click>=7.1.2->Flask>=0.10->Flask-SQLAlchemy) (0.4.4)
Requirement already satisfied: MarkupSafe>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Jinja2>=3.0->Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Building wheels for collected packages: SQLAlchemy, greenlet
Building wheel for SQLAlchemy (setup.py) ... done
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.29-cp39-cp39-win_amd64.whl size=1512539 sha256=25d3a12bbff4ff0c365154c700de44d089427650aea9b98e228c6077852eab61
Stored in directory: c:\users\t\appdata\local\pip\cache\wheels\6d\94\a6\8bdac6f92ce851f71a9fa62934a06cf2b654700b5f258242c7
Building wheel for greenlet (setup.py) ... error
ERROR: Command errored out with exit status 1:
After this error I get a bunch more lines but some that stand out are
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Successfully built SQLAlchemy
Failed to build greenlet
Installing collected packages: greenlet, SQLAlchemy, Flask-SQLAlchemy
Running setup.py install for greenlet ... error
ERROR: Command errored out with exit status 1:
And
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1:
I´ve been using Pyhton 3.9.4 on mobaxterm. I am trying to install pyinstaller to create a portable exe but start the installtion keeps getting me the same Error message:
Collecting pyinstaller
Using cached pyinstaller-4.4.tar.gz (3.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in /usr/lib/python3.6/site-packages (from pyinstaller) (2021.2)
Requirement already satisfied: altgraph in /usr/lib/python3.6/site-packages (from pyinstaller) (0.17)
Requirement already satisfied: importlib-metadata in /usr/lib/python3.6/site-packages (from pyinstaller) (4.6.1)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from pyinstaller) (57.1.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/lib/python3.6/site-packages (from importlib-metadata->pyinstaller) (3.10.0.0)
Requirement already satisfied: zipp>=0.5 in /usr/lib/python3.6/site-packages (from importlib-metadata->pyinstaller) (3.5.0)
Building wheels for collected packages: pyinstaller
Building wheel for pyinstaller (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.6 /usr/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpljj4vhly
cwd: /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786
Complete output (19 lines):
running bdist_wheel
running build
running build_bootloader
Setting top to : /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786/bootloader
Setting out to : /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786/bootloader/build
Python Version : 3.6.8 (default, Feb 15 2019, 01:54:23) [GCC 7.4.0]
Checking for 'gcc' (C compiler) : /bin/gcc
Checking size of pointer : 4
Platform : Cygwin-32bit detected based on compiler
Checking for compiler flags -m32 : yes
Checking for linker flags -m32 : yes
Checking for library dl : yes
Checking for library pthread : yes
Checking for library m : yes
Checking for library z : not found
The configuration failed
(complete log in /tmp/pip-install-ce8ocj14/pyinstaller_331447efec0e44d99e5342731458d786/bootloader/build/config.log)
No precompiled bootloader found. Trying to compile it for you ...
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
----------------------------------------
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly
I am using:
Python 3.9.4
pip 21.1.3
gcc 7.4.0
Thank you for your time.
I want to install zipline in my Mac OS X Mojave (0.14.2 (18C54)) using Python 3.5.4, but the installation fails every time the compiler tries to install bcolz through pip install.
I've already tried to re-install Xcode to the latest version (10.1) and also download the latest Command Line Tools from the official Apple Developer website since the command xcode-select -all is no longer supported. As far as I know the header files in Xcode.app/Contents/Developer/Files are intact so there's no need to import them from a previous version which I don't have or search them elsewhere over the Internet.
Here is the code from my virtual environment. Typically I would get an error that it cannot locate header files that's why I run it with specifying CFLAGS
(zipline) ~ $CXXFLAGS="-std=libc++" CFLAGS="-std=libc++" pip install zipline
Collecting zipline
Requirement already satisfied: bottleneck>=1.0.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.0.0)
Requirement already satisfied: Mako>=1.0.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.0.7)
Requirement already satisfied: sortedcontainers>=1.4.4 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.1.0)
Requirement already satisfied: pip>=7.1.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (18.1)
Requirement already satisfied: requests-file>=1.4.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.4.1)
Requirement already satisfied: pandas<=0.22,>=0.18.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.18.1)
Requirement already satisfied: sqlalchemy>=1.0.8 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.2.15)
Requirement already satisfied: Logbook>=0.12.5 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.12.5)
Requirement already satisfied: patsy>=0.4.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.4.0)
Requirement already satisfied: statsmodels>=0.6.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.6.1)
Requirement already satisfied: six>=1.10.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.10.0)
Requirement already satisfied: empyrical>=0.5.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.5.0)
Requirement already satisfied: requests>=2.9.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.20.1)
Requirement already satisfied: numexpr>=2.6.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.6.1)
Requirement already satisfied: python-dateutil>=2.4.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2.4.2)
Requirement already satisfied: alembic>=0.7.7 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.0.5)
Requirement already satisfied: pandas-datareader>=0.2.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.2.1)
Collecting bcolz<1,>=0.12.1 (from zipline)
Using cached https://files.pythonhosted.org/packages/6c/8b/1ffa01f872cac36173c5eb95b58c01040d8d25f1b242c48577f4104cd3ab/bcolz-0.12.1.tar.gz
Requirement already satisfied: click>=4.0.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (7.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.1.0)
Requirement already satisfied: cyordereddict>=0.2.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.2.2)
Requirement already satisfied: setuptools>18.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (40.6.3)
Requirement already satisfied: intervaltree>=2.1.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (3.0.2)
Requirement already satisfied: lru-dict>=1.1.4 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.1.6)
Requirement already satisfied: numpy>=1.11.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.15.4)
Requirement already satisfied: networkx<2.0,>=1.9.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.9.1)
Requirement already satisfied: toolz>=0.8.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.9.0)
Requirement already satisfied: trading-calendars>=1.0.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (1.6.1)
Requirement already satisfied: pytz>=2016.4 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (2018.5)
Requirement already satisfied: contextlib2>=0.4.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.4.0)
Requirement already satisfied: Cython>=0.25.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.25.2)
Requirement already satisfied: tables>=3.3.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (3.4.4)
Requirement already satisfied: decorator>=4.0.0 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (4.0.0)
Requirement already satisfied: scipy>=0.17.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.17.1)
Requirement already satisfied: multipledispatch>=0.4.8 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from zipline) (0.6.0)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (1.23)
Requirement already satisfied: certifi>=2017.4.17 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (2018.8.24)
Requirement already satisfied: idna<2.8,>=2.5 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (2.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from requests>=2.9.1->zipline) (3.0.4)
Requirement already satisfied: python-editor>=0.3 in ./.virtualenvs/zipline/lib/python3.5/site-packages (from alembic>=0.7.7->zipline) (1.0.3)
Building wheels for collected packages: bcolz
Running setup.py bdist_wheel for bcolz ... error
Complete output from command /Users/USERNAME/.virtualenvs/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/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 /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-wheel-1f24zwoi --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help_tests.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/version.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/toplevel.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/utils.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/chunked_eval.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/defaults.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/arrayprint.py -> build/lib.macosx-10.6-intel-3.5/bcolz
creating build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ndcarray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray_objects.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/all.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/common.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_queries.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/carray_ext.pxd -> build/lib.macosx-10.6-intel-3.5/bcolz
running build_ext
skipping 'bcolz/carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
creating build/temp.macosx-10.6-intel-3.5
creating build/temp.macosx-10.6-intel-3.5/bcolz
creating build/temp.macosx-10.6-intel-3.5/c-blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/lz4-r119
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/snappy-1.1.1
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/zlib-1.2.8
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=libc++ -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/USERNAME/.virtualenvs/zipline/lib/python3.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c bcolz/carray_ext.c -o build/temp.macosx-10.6-intel-3.5/bcolz/carray_ext.o -std=libc++
error: invalid value 'libc++' in '-std=libc++'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17' or 'iso9899:2017' for 'ISO C 2017' standard
note: use 'gnu17' for 'ISO C 2017 with GNU extensions' standard
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Failed building wheel for bcolz
Running setup.py clean for bcolz
Failed to build bcolz
Installing collected packages: bcolz, zipline
Running setup.py install for bcolz ... error
Complete output from command /Users/USERNAME/.virtualenvs/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-record-a3h6zh7b/install-record.txt --single-version-externally-managed --compile --install-headers /Users/USERNAME/.virtualenvs/zipline/bin/../include/site/python3.5/bcolz:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help_tests.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/version.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/toplevel.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/utils.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/chunked_eval.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/defaults.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/py2help.py -> build/lib.macosx-10.6-intel-3.5/bcolz
copying bcolz/arrayprint.py -> build/lib.macosx-10.6-intel-3.5/bcolz
creating build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ndcarray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray_objects.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_attrs.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/__init__.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/all.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/common.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_queries.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_ctable.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/tests/test_carray.py -> build/lib.macosx-10.6-intel-3.5/bcolz/tests
copying bcolz/carray_ext.pxd -> build/lib.macosx-10.6-intel-3.5/bcolz
running build_ext
skipping 'bcolz/carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
creating build/temp.macosx-10.6-intel-3.5
creating build/temp.macosx-10.6-intel-3.5/bcolz
creating build/temp.macosx-10.6-intel-3.5/c-blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/blosc
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/lz4-r119
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/snappy-1.1.1
creating build/temp.macosx-10.6-intel-3.5/c-blosc/internal-complibs/zlib-1.2.8
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=libc++ -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/Users/USERNAME/.virtualenvs/zipline/lib/python3.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c bcolz/carray_ext.c -o build/temp.macosx-10.6-intel-3.5/bcolz/carray_ext.o -std=libc++
error: invalid value 'libc++' in '-std=libc++'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17' or 'iso9899:2017' for 'ISO C 2017' standard
note: use 'gnu17' for 'ISO C 2017 with GNU extensions' standard
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "/Users/USERNAME/.virtualenvs/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-record-a3h6zh7b/install-record.txt --single-version-externally-managed --compile --install-headers /Users/USERNAME/.virtualenvs/zipline/bin/../include/site/python3.5/bcolz" failed with error code 1 in /private/var/folders/5k/2m1pt8j91nbfjjjcjvrlxjpc0000gn/T/pip-install-itawco06/bcolz/
and the list of packages installed
(zipline) ~ $pip list
Package Version
----------------- ---------
alembic 1.0.5
Bottleneck 1.0.0
ccxt 1.18.110
certifi 2018.8.24
chardet 3.0.4
Click 7.0
contextlib2 0.4.0
cyordereddict 0.2.2
Cython 0.25.2
decorator 4.0.0
empyrical 0.5.0
idna 2.7
intervaltree 3.0.2
Logbook 0.12.5
lru-dict 1.1.6
Mako 1.0.7
MarkupSafe 1.1.0
multipledispatch 0.6.0
networkx 1.9.1
numexpr 2.6.1
numpy 1.15.4
pandas 0.18.1
pandas-datareader 0.2.1
patsy 0.4.0
pip 18.1
python-dateutil 2.4.2
python-editor 1.0.3
pytz 2018.5
requests 2.20.1
requests-file 1.4.1
scipy 0.17.1
setuptools 40.6.3
setuptools-scm 3.1.0
six 1.10.0
sortedcontainers 2.1.0
SQLAlchemy 1.2.15
statsmodels 0.6.1
tables 3.4.4
toolz 0.9.0
trading-calendars 1.6.1
urllib3 1.23
wheel 0.32.3
The optimal outcome would be to get the entire package running since I've been searching the web for over a week and tried every kind of solution on different python versions.
Any help would be greatly appreciated.
In installing ImageAnalytics in orange3 software i am getting these error,
Collecting Orange3-ImageAnalytics
Downloading Orange3-ImageAnalytics-0.1.13.tar.gz (2.3MB)
Requirement already satisfied: Orange3>=3.3.5 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3-ImageAnalytics)
Collecting Pillow>=4.2.1 (from Orange3-ImageAnalytics)
Downloading Pillow-5.0.0-cp36-cp36m-win_amd64.whl (1.6MB)
Collecting cachecontrol (from Orange3-ImageAnalytics)
Downloading CacheControl-0.12.3.tar.gz
Collecting hyper>=0.7.0 (from Orange3-ImageAnalytics)
Downloading hyper-0.7.0-py2.py3-none-any.whl (269kB)
Collecting lap==0.3.0 (from Orange3-ImageAnalytics)
Downloading lap-0.3.0.tar.gz (1.5MB)
Collecting lockfile (from Orange3-ImageAnalytics)
Downloading lockfile-0.12.2-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.10.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3-ImageAnalytics)
Requirement already satisfied: requests in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3-ImageAnalytics)
Requirement already satisfied: keyrings.alt in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: dill in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: joblib>=0.9.4 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: setuptools>=36.3 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pip>=9.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: CommonMark>=0.5.5 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: bottleneck>=1.0.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: scipy>=0.16.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: serverfiles in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pyqtgraph>=0.10.0 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: scikit-learn>=0.18.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: AnyQt>=0.0.8 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: xlrd>=0.9.2 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: keyring in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: docutils in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: chardet>=3.0.2 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from Orange3>=3.3.5->Orange3-ImageAnalytics)
Collecting msgpack-python (from cachecontrol->Orange3-ImageAnalytics)
Downloading msgpack-python-0.4.8.tar.gz (113kB)
Collecting h2<3.0,>=2.4 (from hyper>=0.7.0->Orange3-ImageAnalytics)
Downloading h2-2.6.2-py2.py3-none-any.whl (71kB)
Collecting hyperframe<4.0,>=3.2 (from hyper>=0.7.0->Orange3-ImageAnalytics)
Downloading hyperframe-3.2.0-py2.py3-none-any.whl
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from requests->Orange3-ImageAnalytics)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from requests->Orange3-ImageAnalytics)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from requests->Orange3-ImageAnalytics)
Requirement already satisfied: six in c:\users\certainty2\appdata\local\orange\lib\site-packages (from keyrings.alt->Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pyreadline>=1.7.1 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from dill->Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: future in c:\users\certainty2\appdata\local\orange\lib\site-packages (from CommonMark>=0.5.5->Orange3>=3.3.5->Orange3-ImageAnalytics)
Requirement already satisfied: pywin32 in c:\users\certainty2\appdata\local\orange\lib\site-packages (from keyring->Orange3>=3.3.5->Orange3-ImageAnalytics)
Collecting hpack<4,>=2.2 (from h2<3.0,>=2.4->hyper>=0.7.0->Orange3-ImageAnalytics)
Downloading hpack-3.0.0-py2.py3-none-any.whl
Building wheels for collected packages: Orange3-ImageAnalytics, cachecontrol, lap, msgpack-python
Running setup.py bdist_wheel for Orange3-ImageAnalytics: started
Running setup.py bdist_wheel for Orange3-ImageAnalytics: finished with status 'done'
Running setup.py clean for Orange3-ImageAnalytics
Running setup.py bdist_wheel for cachecontrol: started
Running setup.py bdist_wheel for cachecontrol: finished with status 'done'
Stored in directory: C:\Users\Certainty2\AppData\Local\pip\Cache\wheels\2b\fd\77\677be47e3d4f83d2e8d07299f61697aa508e6f8b5d08d94050
Running setup.py bdist_wheel for lap: started
Running setup.py bdist_wheel for lap: finished with status 'error'
Complete output from command C:\Users\Certainty2\AppData\Local\Orange\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CERTAI~1\\AppData\\Local\\Temp\\pip-build-n42rgcz0\\lap\\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\CERTAI~1\AppData\Local\Temp\tmpr3xg7jbjpip-wheel- --python-tag cp36:
Partial import of lap during the build process.
Generating cython files
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "lap._lapjv" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\lap
copying lap\lapmod.py -> build\lib.win-amd64-3.6\lap
copying lap\__init__.py -> build\lib.win-amd64-3.6\lap
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_ext
building 'lap._lapjv' extension
compiling C sources
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Failed building wheel for lap
Running setup.py clean for lap
Running setup.py bdist_wheel for msgpack-python: started
Running setup.py bdist_wheel for msgpack-python: finished with status 'done'
Stored in directory: C:\Users\Certainty2\AppData\Local\pip\Cache\wheels\2c\e7\e7\9031652a69d594665c5ca25e41d0fb3faa024e730b590e4402
Successfully built cachecontrol msgpack-python
Failed to build Orange3-ImageAnalytics lap
Installing collected packages: Pillow, msgpack-python, cachecontrol, hyperframe, hpack, h2, hyper, lap, lockfile, Orange3-ImageAnalytics
Running setup.py install for lap: started
Running setup.py install for lap: finished with status 'error'
Complete output from command C:\Users\Certainty2\AppData\Local\Orange\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CERTAI~1\\AppData\\Local\\Temp\\pip-build-n42rgcz0\\lap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\CERTAI~1\AppData\Local\Temp\pip-bn2gvmhk-record\install-record.txt --single-version-externally-managed --compile:
Partial import of lap during the build process.
Generating cython files
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "lap._lapjv" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\lap
copying lap\lapmod.py -> build\lib.win-amd64-3.6\lap
copying lap\__init__.py -> build\lib.win-amd64-3.6\lap
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_ext
building 'lap._lapjv' extension
compiling C sources
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "C:\Users\Certainty2\AppData\Local\Orange\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CERTAI~1\\AppData\\Local\\Temp\\pip-build-n42rgcz0\\lap\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\CERTAI~1\AppData\Local\Temp\pip-bn2gvmhk-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\CERTAI~1\AppData\Local\Temp\pip-build-n42rgcz0\lap\
I already have Microsoft Visual C++ Build Tools . but same error happens . and i had already tried previous these solutions but nothing worked ,
https://github.com/biolab/orange3-imageanalytics/pull/82
https://github.com/biolab/orange3-imageanalytics/issues/80
you just need to install microsoft build tools with latest versions say 2015 and 2017 . Then if problem remains same then you can go towards fix i had given here FixOrangeImageAnalysis .
and you must download zip file i had shared there . and put all into your Orange/Lib/site-packages folder .
All files whose names startes with any of following must be replaced
h
cache
lap
lock
msg
pill
orange
pillow
image
imageanalytics.pth
I guess FixOrangeImageAnalysis should solve your issue