Python - BPIPE API python SDK installation error - python

I'm getting this error message when trying to install BPIPE API python SDK
command
pip3 install --index-url=https://bcms.bloomberg.com/pip/simple blpapi
error message
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Looking in indexes: https://bcms.bloomberg.com/pip/simple
Collecting blpapi
Using cached https://bcms.bloomberg.com/pip/simple/blpapi/blpapi-3.18.3.tar.gz (304 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
Looking in indexes: https://bcms.bloomberg.com/pip/simple
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Related

orjson installation error during installation of cloned torch lighetning on ppc system (IBM)

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.

Error during installtion of bluepy using pip 22.2

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

How can I solve problems installing packages in python (Failed building wheels)?

I'm trying to install several packages in Google Colab (python 3.7) and I find some errors.
The packages I'm installing are:
pillow==4.2.1
numpy==1.16.1
pandas==0.20.3
scipy==0.19.1
scikit-image==0.13.0
scikit-learn==0.19.1
matplotlib==2.2.2
tensorflow==1.2.1
concurrent-iterator==0.2.6
At first, I do:
!pip install --upgrade pip setuptools wheel
Then, I do the next (it is an example of one package):
!pip install pillow==4.2.1
But whit packages 4, 5 and 6 I found the next error:
WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.7/dist-packages)
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting scipy==0.19.1
Using cached scipy-0.19.1.tar.gz (14.1 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: scipy
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for scipy (setup.py) ... error
ERROR: Failed building wheel for scipy
Running setup.py clean for scipy
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for scipy
Failed to build scipy
WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.7/dist-packages)
Installing collected packages: scipy
Attempting uninstall: scipy
WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.7/dist-packages)
Found existing installation: scipy 1.4.1
Uninstalling scipy-1.4.1:
Successfully uninstalled scipy-1.4.1
error: subprocess-exited-with-error
× Running setup.py install for scipy did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Running setup.py install for scipy ... error
WARNING: No metadata found in /usr/local/lib/python3.7/dist-packages
Rolling back uninstall of scipy
Moving to /usr/local/lib/python3.7/dist-packages/scipy-1.4.1.dist-info/
from /usr/local/lib/python3.7/dist-packages/~cipy-1.4.1.dist-info
Moving to /usr/local/lib/python3.7/dist-packages/scipy/
from /usr/local/lib/python3.7/dist-packages/~cipy
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> scipy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
After that, the version installed is the default in Google Colab, not the one I want.
I found this error only with packages 4, 5 and 6 and, after looking for information on internet, i didn't find a solution. I can't install modern versions because I need those in particular.

Issue with pip install in virtual environment - Cargo, the Rust package manager, is not installed or is not on PATH

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.

Cannot install pyansys using pip install

I am on Pycharm and wish to install the pyansys package, but I keep getting this error:
Collecting pyansys
Using cached pyansys-0.61.3.tar.gz (11 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
*** PyAnsys has moved (and expanded!) ***
To use PyAnsys you need to install the applicable packages for your
product:
MAPDL:
- ``pip install ansys-mapdl-core``
MAPDL Post-Processing:
- ``pip install ansys-mapdl-reader``
- ``pip install ansys-dpf-core``
- ``pip install ansys-dpf-reader``
PyAEDT
- ``pip install pyaedt``
[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.
So I went ahead and installed all but one of those packages. I also installed cython. The only package that cannot be installed is ansys-dpf-reader and here is its error message
ERROR: Could not find a version that satisfies the requirement ansys-pdf-reader (from versions: none)
ERROR: No matching distribution found for ansys-pdf-reader
What is going on?
So it seems like 'ansys-dpf-reader' was changed to 'ansys-dpf-post' and the 'pyansys' is not a pacakge anymore, but has now expanded into these 5 packages. Installing all of them will allow the normal use of the old pyansys.
https://docs.pyansys.com/

Categories

Resources