I'm trying to run this repository with TX2 but I stuck in some errors. The requirement of this repository is flahsing JetPack 4.2 but I couldn't flash it because there's no JetPack 4.2. Then, I've installed JetPack 4.5 on this webpage, not JetPack 4.2.
After that, I tried to install wheel file but there are some errors with below codes.
sudo apt update
sudo apt upgrade
sudo apt-get install python-setuptools
sudo apt-get install python-pip
cd ~/Downloads
sudo pip install tensorflow-1.12.1-cp27-cp27mu-linux_aarch64.whl
The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./tensorflow-1.12.1-cp27-cp27mu-linux_aarch64.whl
Requirement already satisfied: astor>=0.6.0 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: termcolor>=1.1.0 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: numpy>=1.13.3 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: tensorboard<1.13.0,>=1.12.0 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: six>=1.10.0 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: backports.weakref>=1.0rc1 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: absl-py>=0.1.6 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: wheel in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: gast>=0.2.0 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: protobuf>=3.6.1 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: enum34>=1.1.6 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Collecting keras-applications>=1.0.6 (from tensorflow==1.12.1)
Collecting mock>=2.0.0 (from tensorflow==1.12.1)
Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Requirement already satisfied: grpcio>=1.8.6 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorflow==1.12.1)
Requirement already satisfied: markdown>=2.6.8 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow==1.12.1)
Requirement already satisfied: werkzeug>=0.11.10 in /home/nvidia/.local/lib/python2.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow==1.12.1)
Requirement already satisfied: futures>=3.1.1; python_version < "3" in /home/nvidia/.local/lib/python2.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow==1.12.1)
Collecting h5py (from keras-applications>=1.0.6->tensorflow==1.12.1)
Downloading https://files.pythonhosted.org/packages/5f/97/a58afbcf40e8abecededd9512978b4e4915374e5b80049af082f49cebe9a/h5py-2.10.0.tar.gz (301kB)
100% |████████████████████████████████| 307kB 1.9MB/s
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /usr/lib/python2.7/dist-packages (from mock>=2.0.0->tensorflow==1.12.1)
Requirement already satisfied: setuptools>=36 in /home/nvidia/.local/lib/python2.7/site-packages (from markdown>=2.6.8->tensorboard<1.13.0,>=1.12.0->tensorflow==1.12.1)
Installing collected packages: h5py, keras-applications, mock, tensorflow
Running setup.py install for h5py ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6EHebF/h5py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4T2QcD-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-2.7
creating build/lib.linux-aarch64-2.7/h5py
copying h5py/ipy_completer.py -> build/lib.linux-aarch64-2.7/h5py
copying h5py/version.py -> build/lib.linux-aarch64-2.7/h5py
copying h5py/__init__.py -> build/lib.linux-aarch64-2.7/h5py
copying h5py/h5py_warnings.py -> build/lib.linux-aarch64-2.7/h5py
copying h5py/highlevel.py -> build/lib.linux-aarch64-2.7/h5py
creating build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/vds.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/group.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/selections.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/dataset.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/filters.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/selections2.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/__init__.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/dims.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/files.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/attrs.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/compat.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/datatype.py -> build/lib.linux-aarch64-2.7/h5py/_hl
copying h5py/_hl/base.py -> build/lib.linux-aarch64-2.7/h5py/_hl
creating build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_filters.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_file2.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_attrs.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_h5t.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/common.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_slicing.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_h5pl.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/__init__.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_attrs_data.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_attribute_create.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_dataset_getitem.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_h5f.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_group.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_h5p.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_selections.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_datatype.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_dimension_scales.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_file.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_dataset.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_base.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_deprecation.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_file_image.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_h5.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_objects.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_threads.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_completions.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_dtype.py -> build/lib.linux-aarch64-2.7/h5py/tests
copying h5py/tests/test_dataset_swmr.py -> build/lib.linux-aarch64-2.7/h5py/tests
creating build/lib.linux-aarch64-2.7/h5py/tests/test_vds
copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.linux-aarch64-2.7/h5py/tests/test_vds
copying h5py/tests/test_vds/__init__.py -> build/lib.linux-aarch64-2.7/h5py/tests/test_vds
copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.linux-aarch64-2.7/h5py/tests/test_vds
copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.linux-aarch64-2.7/h5py/tests/test_vds
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-6EHebF/h5py/setup.py", line 159, in <module>
cmdclass = CMDCLASS,
File "/home/nvidia/.local/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/nvidia/.local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup_build.py", line 166, in run
config.run()
File "setup_configure.py", line 160, in run
self.hdf5_version = autodetect_version(self.hdf5)
File "setup_configure.py", line 196, in autodetect_version
import pkgconfig
File "/tmp/pip-build-6EHebF/h5py/.eggs/pkgconfig-1.5.3-py2.7.egg/pkgconfig/__init__.py", line 1, in <module>
from .pkgconfig import *
File "/tmp/pip-build-6EHebF/h5py/.eggs/pkgconfig-1.5.3-py2.7.egg/pkgconfig/pkgconfig.py", line 281
flags = _query(packages, *os_opts, *_build_options(option, static=static))
^
SyntaxError: invalid syntax
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6EHebF/h5py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4T2QcD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6EHebF/h5py/
Please help me and feel free to ask anything about it. Thank you for reading it.
Related
I use python 3.10 without conda and try to install fbprophet in order to do time series analysis. Nevertheless, i get this error.
Is anyone has an idea to avoid this problem ? I tried to install bdist_wheel or pystan beside. I tried to install conda. However, nothing change.
Thanks to the person who will answer me :)
Bruce
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\33646\AppData\Local\Temp\pip-install-ayf6nuuh\fbprophet_7b8991beef76435da2b024d4df8dce33\setup.py", line 122, in <module>
setup(
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\core.py", line 177, in setup
return run_commands(dist)
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\core.py", line 193, in run_commands
dist.run_commands()
File "c:\Users\33646\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
...
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_prec_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_prec_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_normal_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
Output exceeds the size limit. Open the full output data in a text editor
Collecting fbprophet
Using cached fbprophet-0.7.1.tar.gz (64 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: Cython>=0.22 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (0.29.32)
Collecting cmdstanpy==0.9.5
Using cached cmdstanpy-0.9.5-py3-none-any.whl (37 kB)
Collecting pystan>=2.14
Using cached pystan-3.5.0-py3-none-any.whl (13 kB)
Requirement already satisfied: numpy>=1.15.4 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (1.23.0)
Requirement already satisfied: pandas>=1.0.4 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (1.4.3)
Requirement already satisfied: matplotlib>=2.0.0 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (3.5.2)
Collecting LunarCalendar>=0.0.9
Using cached LunarCalendar-0.0.9-py2.py3-none-any.whl (18 kB)
Collecting convertdate>=2.1.2
Using cached convertdate-2.4.0-py3-none-any.whl (47 kB)
Collecting holidays>=0.10.2
Downloading holidays-0.15-py3-none-any.whl (181 kB)
------------------------------------ 181.3/181.3 kB 684.2 kB/s eta 0:00:00
Requirement already satisfied: setuptools-git>=1.2 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (1.2)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (2.8.2)
Requirement already satisfied: tqdm>=4.36.1 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from fbprophet) (4.64.0)
Requirement already satisfied: pymeeus<=1,>=0.3.13 in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from convertdate>=2.1.2->fbprophet) (0.5.11)
Requirement already satisfied: korean-lunar-calendar in c:\users\33646\appdata\local\programs\python\python310\lib\site-packages (from holidays>=0.10.2->fbprophet) (0.2.1)
Collecting hijri-converter
...
Failed to build fbprophet pystan
Installing collected packages: pystan, hijri-converter, convertdate, LunarCalendar, holidays, cmdstanpy, fbprophet
Running setup.py install for pystan: started
Running setup.py install for pystan: finished with status 'error'
Output exceeds the size limit. Open the full output data in a text editor
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_student_t_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_student_t_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multi_student_t_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multinomial_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multinomial_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\multinomial_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\neg_binomial_2_log_glm_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\neg_binomial_2_log_glm_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\normal_id_glm_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\normal_id_glm_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_logistic_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_logistic_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_logistic_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_probit_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_probit_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\ordered_probit_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\poisson_log_glm_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\poisson_log_glm_lpmf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\wishart_log.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\wishart_lpdf.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
copying pystan\stan\lib\stan_math\stan\math\prim\mat\prob\wishart_rng.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\prob
creating build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\vectorize
copying pystan\stan\lib\stan_math\stan\math\prim\mat\vectorize\apply_scalar_unary.hpp -> build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\mat\vectorize
creating build\lib.win-amd64-cpython-310\pystan\stan\lib\stan_math\stan\math\prim\scal
...
╰─> pystan
note: This is an issue with the package mentioned above, not pip.```
I'm trying to run Python Faust from Docker.
Based on this documentation: https://faust.readthedocs.io/en/latest/userguide/installation.html
I created a simple Docker file:
FROM python:3
ADD ./app/app.py /
RUN pip3 install --upgrade pip
RUN pip install -U faust
RUN pip install "faust[rocksdb]"
RUN pip install "faust[rocksdb,uvloop,fast,redis]"
CMD ["python", "./app.py"]
When I create a docker file I receive an error at the 5th stage (Step 5/7 : RUN pip install "faust[rocksdb]")
---> Running in 1e42a5e50cbe Requirement already satisfied:
faust[rocksdb] in /usr/local/lib/python3.10/site-packages (1.10.4)
Requirement already satisfied: terminaltables<4.0,>=3.1 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (3.1.10)
Requirement already satisfied: click<8.0,>=6.7 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (7.1.2)
Requirement already satisfied: yarl<2.0,>=1.0 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.7.2)
Requirement already satisfied: aiohttp-cors<2.0,>=0.7 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (0.7.0)
Requirement already satisfied: mypy-extensions in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (0.4.3)
Requirement already satisfied: colorclass<3.0,>=2.2 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (2.2.2)
Requirement already satisfied: opentracing<2.0.0,>=1.3.0 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.3.0)
Requirement already satisfied: mode<4.4,>=4.3.2 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (4.3.2)
Requirement already satisfied: venusian<2.0,>=1.1 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.2.0)
Requirement already satisfied: aiohttp<4.0,>=3.5.2 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (3.8.1)
Requirement already satisfied: robinhood-aiokafka<1.2,>=1.1.6 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.1.6)
Requirement already satisfied: croniter>=0.3.16 in
/usr/local/lib/python3.10/site-packages (from faust[rocksdb]) (1.1.0)
Collecting python-rocksdb>=0.6.7 Downloading
python-rocksdb-0.7.0.tar.gz (219 kB) Preparing metadata (setup.py):
started Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: aiosignal>=1.1.2 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (1.2.0) Requirement already
satisfied: attrs>=17.3.0 in /usr/local/lib/python3.10/site-packages
(from aiohttp<4.0,>=3.5.2->faust[rocksdb]) (21.2.0) Requirement
already satisfied: frozenlist>=1.1.1 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (1.2.0) Requirement already
satisfied: charset-normalizer<3.0,>=2.0 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (2.0.9) Requirement already
satisfied: multidict<7.0,>=4.5 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (5.2.0) Requirement already
satisfied: async-timeout<5.0,>=4.0.0a3 in
/usr/local/lib/python3.10/site-packages (from
aiohttp<4.0,>=3.5.2->faust[rocksdb]) (4.0.2) Requirement already
satisfied: python-dateutil in /usr/local/lib/python3.10/site-packages
(from croniter>=0.3.16->faust[rocksdb]) (2.8.2) Requirement already
satisfied: colorlog>=2.9.0 in /usr/local/lib/python3.10/site-packages
(from mode<4.4,>=4.3.2->faust[rocksdb]) (6.6.0) Requirement already
satisfied: setuptools>=25 in /usr/local/lib/python3.10/site-packages
(from python-rocksdb>=0.6.7->faust[rocksdb]) (57.5.0) Requirement
already satisfied: kafka-python<1.5,>=1.4.6 in
/usr/local/lib/python3.10/site-packages (from
robinhood-aiokafka<1.2,>=1.1.6->faust[rocksdb]) (1.4.7) Requirement
already satisfied: idna>=2.0 in
/usr/local/lib/python3.10/site-packages (from
yarl<2.0,>=1.0->faust[rocksdb]) (3.3) Requirement already satisfied:
six>=1.5 in /usr/local/lib/python3.10/site-packages (from
python-dateutil->croniter>=0.3.16->faust[rocksdb]) (1.16.0)
And an ERROR PART:
Building
wheels for collected packages: python-rocksdb Building wheel for
python-rocksdb (setup.py): started ERROR: Command errored out with
exit status 1: command: /usr/local/bin/python -u -c 'import io, os,
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/setup.py'"'"';
file='"'"'/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-9_o4ek6z
cwd: /tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/
Complete output (64 lines): running bdist_wheel running build
running build_py creating build creating
build/lib.linux-x86_64-3.10 creating
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/interfaces.py ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/errors.py ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/merge_operators.py -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/init.py -> build/lib.linux-x86_64-3.10/rocksdb
creating build/lib.linux-x86_64-3.10/rocksdb/tests copying
rocksdb/tests/test_memtable.py ->
build/lib.linux-x86_64-3.10/rocksdb/tests copying
rocksdb/tests/test_db.py -> build/lib.linux-x86_64-3.10/rocksdb/tests
copying rocksdb/tests/init.py ->
build/lib.linux-x86_64-3.10/rocksdb/tests copying
rocksdb/tests/test_options.py ->
build/lib.linux-x86_64-3.10/rocksdb/tests running egg_info writing
python_rocksdb.egg-info/PKG-INFO writing dependency_links to
python_rocksdb.egg-info/dependency_links.txt writing requirements to
python_rocksdb.egg-info/requires.txt writing top-level names to
python_rocksdb.egg-info/top_level.txt reading manifest file
'python_rocksdb.egg-info/SOURCES.txt' reading manifest template
'MANIFEST.in' writing manifest file
'python_rocksdb.egg-info/SOURCES.txt' copying rocksdb/_rocksdb.cpp
-> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/rocksdb.pyx -> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/backup.pxd -> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/cache.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/comparator.pxd
-> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/db.pxd -> build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/env.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/filter_policy.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/iterator.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/logger.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/memtablerep.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/merge_operator.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/options.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying rocksdb/slice.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/slice_transform.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/snapshot.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/status.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/std_memory.pxd -> build/lib.linux-x86_64-3.10/rocksdb
copying rocksdb/table_factory.pxd ->
build/lib.linux-x86_64-3.10/rocksdb copying
rocksdb/universal_compaction.pxd ->
build/lib.linux-x86_64-3.10/rocksdb creating
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/comparator_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/filter_policy_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/memtable_factories.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/merge_operator_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/slice_transform_wrapper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp copying
rocksdb/cpp/utils.hpp -> build/lib.linux-x86_64-3.10/rocksdb/cpp
copying rocksdb/cpp/write_batch_iter_helper.hpp ->
build/lib.linux-x86_64-3.10/rocksdb/cpp running build_ext
cythoning rocksdb/_rocksdb.pyx to rocksdb/_rocksdb.cpp
/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/.eggs/Cython-0.29.26-py3.10-linux-x86_64.egg/Cython/Compiler/Main.py:369:
FutureWarning: Cython directive 'language_level' not set, using 2 for
now (Py2). This will change in a later release! File:
/tmp/pip-install-b8y7g4hs/python-rocksdb_b1c08993fd134ac4bc59e6f5d18bcd91/rocksdb/_rocksdb.pyx
tree = Parsing.p_module(s, pxd, full_module_name) building 'rocksdb._rocksdb' extension creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/rocksdb gcc -pthread
-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.10 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-3.10/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall
-Wextra -Wconversion -fno-strict-aliasing -fno-rtti rocksdb/_rocksdb.cpp:705:10: fatal error: rocksdb/slice.h: No such
file or directory
705 | #include "rocksdb/slice.h"
| ^~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1
---------------------------------------- Building wheel for python-rocksdb (setup.py): finished with status 'error' ERROR:
Failed building wheel for python-rocksdb
Can anyone help me to move on with this? I'd like to use Faust from Docker on Kubernetes.
Read the error message, where it is clearly stated you are missing a header file:
fatal error: rocksdb/slice.h: No such file or directory 705 | #include "rocksdb/slice.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1
Accordingly, you'll need to build and install RocksDB. This is separate from the installation of faust[rocksdb] with pip. That simply installs python-rocksdb, the Python interface to the underlying libraries.
There is even a (third-party) RocksDB docker image based on Python 3.7 Slim.
You could use that directly or take some tricks from the Dockerfile for that image.
I am trying to use pip install but I am stuck on this error message I don't understand. I am running Visual Studio Code on Windows 10, with Python 3.7.7. I am rather new to Python and Visual Studio Code and every google search I try in order to find out what it is asking for only turns up results that are at least 2 years old. Can someone help me understand this CL/cl.h file its asking for and how to handle this error?
PS C:\Users\akree> pip install bfast
Collecting bfast
Using cached bfast-0.3.3-py3-none-any.whl (622 kB)
Requirement already satisfied: scipy==1.2.1 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from bfast) (1.2.1)
Collecting pyopencl==2018.2.5
Using cached pyopencl-2018.2.5.tar.gz (340 kB)
Requirement already satisfied: wget==3.2 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from bfast) (3.2)
Requirement already satisfied: pandas==0.24.2 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from bfast) (0.24.2)
Requirement already satisfied: numpy>=1.11.0 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from bfast) (1.18.2)
Requirement already satisfied: matplotlib==2.2.2 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from bfast) (2.2.2)
Requirement already satisfied: scikit-learn==0.20.3 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from bfast) (0.20.3)
Requirement already satisfied: pytools>=2017.6 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from pyopencl==2018.2.5->bfast) (2020.1)
Requirement already satisfied: decorator>=3.2.0 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from pyopencl==2018.2.5->bfast) (4.4.2)
Requirement already satisfied: appdirs>=1.4.0 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from pyopencl==2018.2.5->bfast) (1.4.3)
Requirement already satisfied: six>=1.9.0 in c:\users\akree\appdata\roaming\python\python37\site-packages (from pyopencl==2018.2.5->bfast) (1.14.0)
Requirement already satisfied: pytz>=2011k in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from pandas==0.24.2->bfast) (2019.3)
Requirement already satisfied: python-dateutil>=2.5.0 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from pandas==0.24.2->bfast) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2->bfast) (2.4.6)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2->bfast) (1.1.0)
Requirement already satisfied: cycler>=0.10 in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from matplotlib==2.2.2->bfast) (0.10.0)
Requirement already satisfied: setuptools in c:\users\akree\appdata\local\programs\python\python37\lib\site-packages (from kiwisolver>=1.0.1->matplotlib==2.2.2->bfast) (41.2.0)
Installing collected packages: pyopencl, bfast
Running setup.py install for pyopencl ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\akree\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\akree\\AppData\\Local\\Temp\\pip-install-_ynmp7xp\\pyopencl\\setup.py'"'"'; __file__='"'"'C:\\Users\\akree\\AppData\\Local\\Temp\\pip-install-_ynmp7xp\\pyopencl\\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\akree\AppData\Local\Temp\pip-record-momlw083\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\akree\appdata\local\programs\python\python37\Include\pyopencl'
cwd: C:\Users\akree\AppData\Local\Temp\pip-install-_ynmp7xp\pyopencl\
Complete output (76 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\pyopencl
copying pyopencl\algorithm.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\array.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\bitonic_sort.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\bitonic_sort_templates.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\cache.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\capture_call.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\clmath.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\clrandom.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\cltypes.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\elementwise.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\invoker.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\ipython_ext.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\reduction.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\scan.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\tools.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\version.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\_buffers.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\_cluda.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\_mymako.py -> build\lib.win-amd64-3.7\pyopencl
copying pyopencl\__init__.py -> build\lib.win-amd64-3.7\pyopencl
creating build\lib.win-amd64-3.7\pyopencl\characterize
copying pyopencl\characterize\performance.py -> build\lib.win-amd64-3.7\pyopencl\characterize
copying pyopencl\characterize\__init__.py -> build\lib.win-amd64-3.7\pyopencl\characterize
creating build\lib.win-amd64-3.7\pyopencl\compyte
copying pyopencl\compyte\array.py -> build\lib.win-amd64-3.7\pyopencl\compyte
copying pyopencl\compyte\dtypes.py -> build\lib.win-amd64-3.7\pyopencl\compyte
copying pyopencl\compyte\__init__.py -> build\lib.win-amd64-3.7\pyopencl\compyte
creating build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\gen_elemwise.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\gen_reduction.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\setup_opencl.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\test_gpu_elemwise.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\test_gpu_ndarray.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
copying pyopencl\compyte\ndarray\__init__.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
running egg_info
writing pyopencl.egg-info\PKG-INFO
writing dependency_links to pyopencl.egg-info\dependency_links.txt
writing top-level names to pyopencl.egg-info\top_level.txt
reading manifest file 'pyopencl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h'
warning: no files found matching 'doc\_static\*.css'
warning: no files found matching 'doc\_templates\*.html'
warning: no files found matching '*.py.in'
writing manifest file 'pyopencl.egg-info\SOURCES.txt'
copying pyopencl\cl\pyopencl-airy.cl -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-bessel-j-complex.cl -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-bessel-j.cl -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-bessel-y.cl -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-complex.h -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-eval-tbl.cl -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-hankel-complex.cl -> build\lib.win-amd64-3.7\pyopencl\cl
copying pyopencl\cl\pyopencl-ranluxcl.cl -> build\lib.win-amd64-3.7\pyopencl\cl
creating build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\array.h -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\openclfeatures.h -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\philox.cl -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
copying pyopencl\cl\pyopencl-random123\threefry.cl -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
running build_ext
building 'pyopencl._cl' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -Ipybind11/include -Ic:\users\akree\appdata\local\programs\python\python37\Include -IC:\Users\akree\AppData\Roaming\Python\Python37\Include -Ic:\users\akree\appdata\local\programs\python\python37\lib\site-packages\numpy\core\include -Ic:\users\akree\appdata\local\programs\python\python37\include -Ic:\users\akree\appdata\local\programs\python\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpsrc/wrap_constants.cpp /Fobuild\temp.win-amd64-3.7\Release\src/wrap_constants.obj -fvisibility=hidden /EHsc /DVERSION_INFO=\"2018.2.5\"
cl : Command line warning D9002 : ignoring unknown option '-fvisibility=hidden'
wrap_constants.cpp
C:\Users\akree\AppData\Local\Temp\pip-install-_ynmp7xp\pyopencl\src\wrap_cl.hpp(57): fatal error C1083: Cannot open include file: 'CL/cl.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\akree\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\akree\\AppData\\Local\\Temp\\pip-install-_ynmp7xp\\pyopencl\\setup.py'"'"'; __file__='"'"'C:\\Users\\akree\\AppData\\Local\\Temp\\pip-install-_ynmp7xp\\pyopencl\\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\akree\AppData\Local\Temp\pip-record-momlw083\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\akree\appdata\local\programs\python\python37\Include\pyopencl' Check the logs for full command output.
It probably means the source distribution file is missing CL/cl.h. You can either reach out to the project or try to install using conda as there appears to be conda packages for Windows according to the documentation.
This is what i got when i ran the command py -m pip install google-assistant-sdk[samples] in cmd with administrator rights.
C:\WINDOWS\system32>py -m pip install google-assistant-sdk[samples]
Collecting google-assistant-sdk[samples]
Using cached
https://files.pythonhosted.org/packages/47/26/b405a0236ea5dd128f4b9c00806f4c457904309e1a6c60ec590e46cc19c4/google_assistant_sdk-0.5.1-py2.py3-none-any.whl
Requirement already satisfied: google-auth-oauthlib[tool]>=0.1.0 in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (0.4.1)
Requirement already satisfied: sounddevice<0.4,>=0.3.7; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (0.3.14)
Requirement already satisfied: futures<4,>=3.1.1; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (3.1.1)
Collecting google-assistant-grpc==0.2.1; extra == "samples"
Using cached https://files.pythonhosted.org/packages/4b/5d/50dbb8197961acf8a4339e8950e0110159456c4ef48234751d1b5f2e919b/google_assistant_grpc-0.2.1-py2.py3-none-any.whl
Requirement already satisfied: pathlib2<3,>=2.3.0; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (2.3.5)
Requirement already satisfied: urllib3[secure]<2,>=1.21; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (1.25.6)
Requirement already satisfied: tenacity<5,>=4.1.0; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (4.12.0)
Requirement already satisfied: click<7,>=6.7; extra == "samples" in c:\program files (x86)\python38-32\lib\site-packages (from google-assistant-sdk[samples]) (6.7)
Requirement already satisfied: google-auth in c:\program files (x86)\python38-32\lib\site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (1.6.3)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (1.2.0)
Requirement already satisfied: CFFI>=1.0 in c:\program files (x86)\python38-32\lib\site-packages (from sounddevice<0.4,>=0.3.7; extra == "samples"->google-assistant-sdk[samples]) (1.13.1)
Collecting googleapis-common-protos>=1.5.2
Using cached https://files.pythonhosted.org/packages/eb/ee/e59e74ecac678a14d6abefb9054f0bbcb318a6452a30df3776f133886d7d/googleapis-common-protos-1.6.0.tar.gz
Collecting grpcio>=1.3.5
Using cached https://files.pythonhosted.org/packages/e4/60/40c4d2b61d9e4349bc89445deb8d04cc000b10a63446c42d311e0d21d127/grpcio-1.25.0.tar.gz
Requirement already satisfied: six in c:\program files (x86)\python38-32\lib\site-packages (from pathlib2<3,>=2.3.0; extra == "samples"->google-assistant-sdk[samples]) (1.12.0)
Requirement already satisfied: idna>=2.0.0; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (2.8)
Requirement already satisfied: pyOpenSSL>=0.14; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (19.0.0)
Requirement already satisfied: cryptography>=1.3.4; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (2.8)
Requirement already satisfied: certifi; extra == "secure" in c:\program files (x86)\python38-32\lib\site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]) (2019.9.11)
Requirement already satisfied: cachetools>=2.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (3.1.1)
Requirement already satisfied: rsa>=3.1.4 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (4.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\program files (x86)\python38-32\lib\site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (0.2.7)
Requirement already satisfied: requests>=2.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (2.22.0)
Requirement already satisfied: oauthlib>=3.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (3.1.0)
Requirement already satisfied: pycparser in c:\program files (x86)\python38-32\lib\site-packages (from CFFI>=1.0->sounddevice<0.4,>=0.3.7; extra == "samples"->google-assistant-sdk[samples]) (2.19)
Collecting protobuf>=3.6.0
Using cached https://files.pythonhosted.org/packages/70/81/6d2dfdc9e8a377e151b1a481293dda7149c44c77428029645c978df22bc0/protobuf-3.11.0-py2.py3-none-any.whl
Requirement already satisfied: pyasn1>=0.1.3 in c:\program files (x86)\python38-32\lib\site-packages (from rsa>=3.1.4->google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (0.4.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\program files (x86)\python38-32\lib\site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]) (3.0.4)
Requirement already satisfied: setuptools in c:\program files (x86)\python38-32\lib\site-packages (from protobuf>=3.6.0->googleapis-common-protos>=1.5.2->google-assistant-grpc==0.2.1; extra == "samples"->google-assistant-sdk[samples]) (41.2.0)
Installing collected packages: protobuf, googleapis-common-protos, grpcio, google-assistant-grpc, google-assistant-sdk
Running setup.py install for googleapis-common-protos ... done
Running setup.py install for grpcio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\grpcio\\setup.py'"'"'; __file__='"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\grpcio\\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\91999\AppData\Local\Temp\pip-record-q8x2ji7q\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\91999\AppData\Local\Temp\pip-install-vnrp98y6\grpcio\
Complete output (66 lines):
Found cython-generated files...
running install
running build
running build_py
running build_project_metadata
creating python_build
creating python_build\lib.win32-3.8
creating python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_auth.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_channel.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_common.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_compression.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_grpcio_metadata.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_interceptor.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_plugin_wrapping.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_server.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\_utilities.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc\__init__.py -> python_build\lib.win32-3.8\grpc
creating python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\_client_adaptations.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\_metadata.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\_server_adaptations.py -> python_build\lib.win32-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\__init__.py -> python_build\lib.win32-3.8\grpc\beta
creating python_build\lib.win32-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win32-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win32-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\__init__.py -> python_build\lib.win32-3.8\grpc\experimental
creating python_build\lib.win32-3.8\grpc\framework
copying src\python\grpcio\grpc\framework\__init__.py -> python_build\lib.win32-3.8\grpc\framework
creating python_build\lib.win32-3.8\grpc\_cython
copying src\python\grpcio\grpc\_cython\__init__.py -> python_build\lib.win32-3.8\grpc\_cython
creating python_build\lib.win32-3.8\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio\_channel.py -> python_build\lib.win32-3.8\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio\_server.py -> python_build\lib.win32-3.8\grpc\experimental\aio
copying src\python\grpcio\grpc\experimental\aio\__init__.py -> python_build\lib.win32-3.8\grpc\experimental\aio
creating python_build\lib.win32-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win32-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win32-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\__init__.py -> python_build\lib.win32-3.8\grpc\framework\common
creating python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win32-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\__init__.py -> python_build\lib.win32-3.8\grpc\framework\foundation
creating python_build\lib.win32-3.8\grpc\framework\interfaces
copying src\python\grpcio\grpc\framework\interfaces\__init__.py -> python_build\lib.win32-3.8\grpc\framework\interfaces
creating python_build\lib.win32-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\__init__.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\base
creating python_build\lib.win32-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\__init__.py -> python_build\lib.win32-3.8\grpc\framework\interfaces\face
creating python_build\lib.win32-3.8\grpc\_cython\_cygrpc
copying src\python\grpcio\grpc\_cython\_cygrpc\__init__.py -> python_build\lib.win32-3.8\grpc\_cython\_cygrpc
creating python_build\lib.win32-3.8\grpc\_cython\_credentials
copying src\python\grpcio\grpc\_cython\_credentials\roots.pem -> python_build\lib.win32-3.8\grpc\_cython\_credentials
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\grpcio\\setup.py'"'"'; __file__='"'"'C:\\Users\\91999\\AppData\\Local\\Temp\\pip-install-vnrp98y6\\grpcio\\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\91999\AppData\Local\Temp\pip-record-q8x2ji7q\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
pls help
This problem should be fixed now. Try installing grpcio 1.26.0rc1.
I'm trying to install the flask-mysql module and am running into an error. It looks like a problem with vcvarsall.bat, but I'm not really sure what that hints at.
Any ideas from someone more experienced than myself?
C:\eb-virt\bucketlist>pip install flask-mysql
Collecting flask-mysql
Using cached Flask_MySQL-1.3-py2.py3-none-any.whl
Collecting MySQL-python (from flask-mysql)
Using cached MySQL-python-1.2.5.zip
Requirement already satisfied (use --upgrade to upgrade): Flask in c:\python27\lib\site-packages (from flask-mysql)
Requirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in c:\python27\lib\site-packages (from Flask->flask-mysql)
Requirement already satisfied (use --upgrade to upgrade): click>=2.0 in c:\python27\lib\site-packages (from Flask->flask-mysql)
Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in c:\python27\lib\site-packages (from Flask->flask-mysql)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in c:\python27\lib\site-packages (from Flask->flask-mysql)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in c:\python27\lib\site-packages (from Jinja2>=2.4->Flask->flask-mysql)
Installing collected packages: MySQL-python, flask-mysql
Running setup.py install for MySQL-python ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\tonype~1\\appdata\\local\\temp\\pip-build-3xn7it\\MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\tonype~1\appdata\local\temp\pip-vtdlrx-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying _mysql_exceptions.py -> build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-2.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-2.7\MySQLdb
creating build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-2.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-2.7\MySQLdb\constants
running build_ext
building '_mysql' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\tonype~1\\appdata\\local\\temp\\pip-build-3xn7it\\MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\tonype~1\appdata\local\temp\pip-vtdlrx-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\tonype~1\appdata\local\temp\pip-build-3xn7it\MySQL-python\
You could try using these binaries for windows distributions. Flask-mysql uses mysql-python which has issues when trying to install on windows. See this.
Often this type of error occurred when you have installed python 32bit and mysql 64bit or vice versa. Try out same installations. I have experienced this error with postgresSql and python on this command pip install psycopg2
May be this will solve you issue.