→ pip3 install pybluez2
Collecting pybluez2
Using cached pybluez2-0.46.tar.gz (50 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running egg_info
creating /private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info
writing /private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info/dependency_links.txt
writing eager_resources to /private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info/eager_resources.txt
writing requirements to /private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info/requires.txt
writing top-level names to /private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info/top_level.txt
writing manifest file '/private/var/folders/th/d3gfh4w9027cz6nnj4118g4w0000gn/T/pip-pip-egg-info-sj101jx/pybluez2.egg-info/SOURCES.txt'
error: package directory 'bluetooth/macos' does not exist
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Using Mac OSX 13.0
2021 Macbook Pro M1 Chip
Python and pip versions:
→ pip3 -V
pip 22.3 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip (python 3.11)
→ python3 -V
Python 3.11.0
From https://pypi.org/project/pybluez2/0.46/#files:
Built Distributions: For macOS and Windows, the author only included macosx_10_15_x86_64 and win_amd64 for Built Distributions.
Source Distribution: The author didn't package bluetooth/macos/ and bluetooth/windows/ in the Source Distribution.
You can install from the Git source:
pip install git+https://github.com/airgproducts/pybluez2.git#0.46
Related
I am trying to install lightening from setu.py but it fails while installing osjson-3.8.0. So, I tried to manually install it using pip install --upgrade orjson but it given error in pyproject.toml file.
Collecting orjson
Using cached orjson-3.8.1.tar.gz (860 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
This question already has answers here:
pg_config executable not found
(54 answers)
Closed 5 months ago.
seeing this on Ubuntu 22.04 which has python 3.10
pip3 install psycopg2-binary==2.8.5
Defaulting to user installation because normal site-packages is not writeable
Collecting psycopg2-binary==2.8.5
Using cached psycopg2-binary-2.8.5.tar.gz (381 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-qc0tg_5p/psycopg2_binary.egg-info
writing /tmp/pip-pip-egg-info-qc0tg_5p/psycopg2_binary.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-qc0tg_5p/psycopg2_binary.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-qc0tg_5p/psycopg2_binary.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-qc0tg_5p/psycopg2_binary.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
This is a known issue. Use the binary version instead:
pip install psycopg2-binary
EDIT:
You dont have 'pg_config' which is part of libpq-dev on Ubuntu. Install it with sudo apt-get install libpq-dev and try abgain.
Before starting the binary installation, export PATH like below:
export PATH=$PATH:/usr/pgsql-12/bin/
Note: Change 12 to your current PostgreSQL version.
I`m trying to install bluepy with Python3.9.10 and pip 22.2 installed.
While doing that I keep getting the following output:
C:\Users\User>pip3 install bluepy
Collecting bluepy
Using cached bluepy-1.3.0.tar.gz (217 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for bluepy, since package 'wheel' is not installed.
Installing collected packages: bluepy
Running setup.py install for bluepy ... error
error: subprocess-exited-with-error
× Running setup.py install for bluepy did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
H:\Python39\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
running build
running build_py
error: [WinError 2] The system cannot find the file specified
Working dir is C:\Users\User\AppData\Local\Temp\pip-install-zj6bo4s8\bluepy_8c28c6c23a27424498856c30a119129d
execute make -C ./bluepy clean
[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.
╰─> bluepy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
C:\Users\User>
I also tried the "solution" discussed in this comment of a similar question, but this did not work for me. I´ve also tried reinstalling python, alongside pip, even if the output from above says that it is not a problem with pip.
These are the packages I installed with the Visual Studio Installer:
Now I don`t know what else I should try.
Thanks
See this github issue:
bluepy only runs on linux
And also The README on github:
Python interface to Bluetooth LE on Linux
This is why you are unable to install it on windows
os: centos7.6
python 3.8
occur error:
Collecting airflow
Using cached airflow-0.6.tar.gz (1.2 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
maybe this help
python -m pip uninstall setuptools
pip install setuptools
pip install airflow
This is simply saying the build tool setup.py fails to build from source.
I am not so technical in the aspect of building from source, so I can't tell you exactly what to do with your .tar.gz file to make it all right.
If you have pip installed on the machine (which I assume you do), then simply type:
pip install apache-airflow
The long version:
python3 -m pip install apache-airflow
If you intend to use celery together with Apache Airflow, I suggest:
python3 -m pip install apache-airflow[celery] for full installation.
Refer to the documentation of Apache Airflow for more info.
I am using a python virtual environment to work on a project. After setting up my venv and pulling from git I tried to pip install -r requirements.txt but am getting an error below.
Collecting orjson==3.5.2
Using cached orjson-3.5.2.tar.gz (740 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I am using Python version 3.10.2, pip version 22.0.4.
Any idea how to fix this? I installed rust but no fix.
I am not getting the errors below after moving my virtual enviroment to local.
Collecting orjson==3.5.2
Using cached orjson-3.5.2.tar.gz (740 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
Caused by: `cargo metadata` exited with an error: error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -Z mutable-noalias=yes --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit code: 1)
--- stderr
error: the option `Z` is only accepted on the nightly compiler
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', 'C:\\Users\\jawan\\AppData\\Local\\Temp\\pip-modern-metadata-hjcwzhua', '--interpreter', 'C:\\Users\\jawan\\Desktop\\Programming\\imotor\\Scripts\\python.exe', '--manylinux=off', '--strip=on']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory C:\Users\jawan\AppData\Local\Temp\pip-modern-metadata-hjcwzhua --interpreter C:\Users\jawan\Desktop\Programming\imotor\Scripts\python.exe --manylinux=off --strip=on`
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
faced the similar problem. after installing 64bit version of python everything is working fine.
The above error is caused by a rust package
pywinpty
all you need do is to remove it from requirements.txt file
and redeploy your app.
Simply install the dependency:
curl https://sh.rustup.rs -sSf | sh
Source: https://doc.rust-lang.org/cargo/getting-started/installation.html
Try installing the rust programming language. It seems like you have a dependency that uses rust. I recommend using brew on OSX.
brew install rust
Otherwise use the rust install page. You can check that rust is installed properly with:
rustc --version
Once you are finished try again to pip install your requirements file.