Quickfix for Python Library installation fails in MacOS - python

I am trying to install quickfix 1.15.1 (the current latest version available) in MacOS.
OS version is Ventura 15.1. Chip is Apple M2.
Python version is 3.9.6. Clang version is 14.0.0.
But the installation gets failed.
The steps I followed is as follows.
Tried to install using pip3 install quickfix. It was not successful.
Downloaded the source package from pypi and tried to install the package using pip3 install . and pip3 install . --no-binary=:all --user --no-cache-dir. It was not successful.
Cloned the C++ quickfix source code from github and tried to install the library using the commands ./boostrap, ./configure --with-python3 and sudo make install. It was not successful too.
The error I get when trying to install the library in all the above three steps is as follows.
Processing /Users/user/Dependencies/quickfix-1.15.1
Preparing metadata (setup.py) ... done
Building wheels for collected packages: quickfix
Building wheel for quickfix (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─\> \[248 lines of output\]
Testing for std::tr1::shared_ptr...
test_std_tr1_shared_ptr.cpp:1:10: fatal error: 'tr1/memory' file not found
\#include \<tr1/memory\>
^\~\~\~\~\~\~\~\~\~\~\~
1 error generated.
...not found
Testing for std::shared_ptr...
...found
Testing for std::unique_ptr...
...found
C++/AtomicCount.h:163:11: error: unrecognized instruction mnemonic
"lock\n\t"
^
<inline asm>:1:2: note: instantiated into assembly here
lock
^
In file included from C++/DataDictionary.cpp:26:
In file included from C++/DataDictionary.h:30:
In file included from C++/FieldMap.h:30:
In file included from C++/MessageSorters.h:30:
In file included from C++/SharedArray.h:26:
C++/AtomicCount.h:163:18: error: unrecognized instruction mnemonic, did you mean: add, addp, adds, addv, fadd, madd?
"lock\n\t"
^
<inline asm>:2:2: note: instantiated into assembly here
xadd x9, [x8]
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for quickfix
Running setup.py clean for quickfix
Failed to build quickfix
Installing collected packages: quickfix
Running setup.py install for quickfix ... error
error: subprocess-exited-with-error
× Running setup.py install for quickfix did not run successfully.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[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.
╰─> quickfix
note: This is an issue with the package mentioned above, not pip.
Went through different issue threads and docs, but could not find a solution yet. Found this similar stack overflow post as well. But a solution could not be found there too.

Related

Python - BPIPE API python SDK installation error

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.

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

python-pushover error on Vercel deployment

I'm trying to deploy a Flask app to Vercel and get this error, which I believe is because of the python-pushover package.
Here is the error log which gets generated after I run vercel --prod on the terminal.
[01:19:33.416] Downloading 523 deployment files...
[01:19:42.856] Looking up build cache...
[01:19:43.125] Build Cache not found
[01:19:43.439] Running "vercel build"
[01:19:44.052] Vercel CLI 25.1.1-canary.7 build (beta) — https://vercel.com/feedback
[01:19:44.211] WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
[01:19:44.350] Installing required dependencies...
[01:19:48.362] Failed to run "pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path1/requirements.txt"
[01:19:48.424] Error! Command failed: pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path1/requirements.txt
[01:19:48.424] error: subprocess-exited-with-error
[01:19:48.424]
[01:19:48.424] × python setup.py egg_info did not run successfully.
[01:19:48.425] │ exit code: 1
[01:19:48.425] ╰─> [1 lines of output]
[01:19:48.425] error in python-pushover setup command: use_2to3 is invalid.
[01:19:48.425] [end of output]
[01:19:48.425]
[01:19:48.425] note: This error originates from a subprocess, and is likely not a problem with pip.
[01:19:48.425] error: metadata-generation-failed
[01:19:48.425]
[01:19:48.425] × Encountered error while generating package metadata.
[01:19:48.426] ╰─> See above for output.
[01:19:48.426]
[01:19:48.426] note: This is an issue with the package mentioned above, not pip.
[01:19:48.426] hint: See above for details.
[01:19:48.426]
[01:19:48.428] Collecting python-pushover==0.4
[01:19:48.428] Downloading python-pushover-0.4.tar.gz (19 kB)
[01:19:48.428] Preparing metadata (setup.py): started
[01:19:48.428] Preparing metadata (setup.py): finished with status 'error'
[01:19:48.428]
[01:19:48.535] Error: Command "vercel build" exited with 1
I have python3.9 installed in the Pipenv environment.
Has anyone encountered this error before and can provide a solution?
Thanks!
Maybe, You have to check version is support by vercel. I had a similar error, I can solve it fist by checking if I using the venv in python then check if it update.
On Windows the recommended command is:
python -m pip install --upgrade pip

Cannot install flask_mysqldb package on cpanel shared hosting server

I am trying to install flask_mysqldb on cpanel shared hosting server, but I keep getting the error:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mysqlclient
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient, flask-mysqldb
Running setup.py install for mysqlclient ... error
error: subprocess-exited-with-error
× Running setup.py install for mysqlclient did not run successfully.
│ exit code: 1
╰─> [312 lines of output]
mysql_config --version
MySQLdb/_mysql.c:46:20: error: Python.h: No such file or directory
MySQLdb/_mysql.c:52:25: error: bytesobject.h: No such file or directory
MySQLdb/_mysql.c:53:26: error: structmember.h: No such file or directory
cc1: warning: unrecognized command line option "-Wno-unused-result"
error: command '/usr/bin/gcc' failed with exit status 1
[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.
╰─> mysqlclient
Infact, the error almost exactly same as in the question:
https://serverfault.com/questions/1095132/pip-install-mysqlclient-on-cloudlinux
From What I understand mysqlclient is not building on the server. Any way to solve this issue?

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.

Categories

Resources