Japronto Installation failed in linux - python-3.5

I am seeing this error while running python3.5 -m pip install japronto
Downloading/unpacking japronto
Could not find any downloads that satisfy the requirement japronto
Cleaning up...
No distributions at all found for japronto

Related

I'm encountering an error while installing turicreate module on wsl, is there any requirements I'm missing?

whenever I try to install turicreate module on wsl it's showing an error like this
`Collecting turicreate
Using cached turicreate-6.4.tar.gz (1.9 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for turicreate, since package 'wheel' is not installed.
Installing collected packages: turicreate
Running setup.py install for turicreate ... error
error: subprocess-exited-with-error
× Running setup.py install for turicreate did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running install
/root/turitest/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
==================================================================================
TURICREATE ERROR
If you see this message, pip install did not find an available binary package
for your system.
Supported Platforms:
* macOS 10.12+ x86_64.
* Linux x86_64 (including WSL on Windows 10).
Support Python Versions:
* 2.7
* 3.5
* 3.6
* 3.7
* 3.8
Another possible cause of this error is an outdated pip version. Try:
`pip install -U pip`
==================================================================================
[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.
╰─> turicreate
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
`
pip version - 22.0.2
python3.10 (I guess this maybe the problem, but I'm not sure)
windows10 OS
can someone help me to install turicreate...
I tried updating and upgrading pip versions, tried in python 2.7 and python3.10 but still got the same error.
I also tried this command,
python3 -m pip3 install -U pip
this returned
No module named pip3

Mypy not finding stubs already installed

I'm running Mypy inside a gitlab CI/CD, and mypy can't find installed stubs, even though I've tried to use the --install-types option.
I've also tried creating a virtual env and install all packages, setting up the MYPYPATH and/or PYTHONPATH with the directory where the packages are installed, but I ended up with the same errors.
Here is the output of the CI worker:
mypy --install-types --non-interactive backoffice coupons
Requirement already satisfied: types-pytz in ./dev_packages (2022.2.1.0)
Requirement already satisfied: types-requests in ./dev_packages (2.28.11)
Requirement already satisfied: types-urllib3<1.27 in ./dev_packages (from types-requests) (1.26.25)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip available: 22.2 -> 22.3
[notice] To update, run: python -m pip install --upgrade pip
coupons/models.py:4: error: Library stubs not installed for "pytz" (or incompatible with Python 3.10)
Installing missing stub packages:
/usr/local/bin/python -m pip install types-pytz types-requests
Found 3 errors in 3 files (checked 66 source files)
coupons/models.py:4: note: Hint: "python3 -m pip install types-pytz"
coupons/utils.py:6: error: Library stubs not installed for "requests" (or incompatible with Python 3.10)
backoffice/accounts.py:8: error: Library stubs not installed for "requests" (or incompatible with Python 3.10)
backoffice/accounts.py:8: note: Hint: "python3 -m pip install types-requests"
backoffice/accounts.py:8: note: (or run "mypy --install-types" to install all missing stub packages)
backoffice/accounts.py:8: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
make: *** [.make/lint.mk:57: mypy] Error 1
Does anyone faced this issue before and how did you fixed it?
Thanks

EC2 pycurl installed but not found

When I install pycurl
>$ /opt/python/run/venv/bin/pip install pycurl --global-option="--with-openssl" --upgrade
/opt/python/run/venv/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py:230: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
cmdoptions.check_install_build_global(options)
Collecting pycurl
Using cached pycurl-7.43.0.6.tar.gz (222 kB)
Skipping wheel build for pycurl, due to binaries being disabled for it.
Installing collected packages: pycurl
Running setup.py install for pycurl ... done
Successfully installed pycurl-7.43.0.6
Then checks installation, it does not appear
>$ /opt/python/run/venv/bin/pip show pycurl
WARNING: Package(s) not found: pycurl
And of course any code wanting to use the lib does not find it (celery, for instance)
What I am doing wrong?
I found the answer to another question (sorry, I can't find the link).
This worked for me:
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
pip install pycurl==7.43.0.5 --global-option="--with-openssl" --upgrade

Libev related error when installing gevent

I am trying to install the Python package gevent with pip3 install gevent; the OS is Amazon Linux 2. The installation starts, but then at some point it stops with this error:
subprocess.CalledProcessError: Command '(cd "/tmp/pip-build-mqpe4eb2/gevent/deps/libev" && sh ./configure -C > configure-output.txt )' returned non-zero exit status 1
Some months ago it used to work, which is why my first thought was the error might be related to a recent version release. However, installing an older version with pip3 install gevent==20.04.0 resulted in the same error.
I have same problem , just upgrade the pip using following command has resolved
pip3 install --upgrade pip
pip3 install --upgrade setuptools

Can't install pyOpenSSL for Python 3

I am running a Pyhon3 script that depends on OpenSSL and it depends on OpenSSL. However, I am having problems installing it.
# pip3 install pyOpenSSL
Downloading/unpacking pyOpenSSL
Downloading pyOpenSSL-17.4.0-py2.py3-none-any.whl (52kB): 52kB downloaded
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python3/dist-packages (from pyOpenSSL)
Downloading/unpacking cryptography>=1.9 (from pyOpenSSL)
Downloading cryptography-2.1.3.tar.gz (441kB): 441kB downloaded
Running setup.py (path:/tmp/pip-build-ljoosnix/cryptography/setup.py) egg_info for package cryptography
error in cryptography setup command: Invalid environment marker: python_version < '3'
Complete output from command python setup.py egg_info:
error in cryptography setup command: Invalid environment marker: python_version < '3'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-ljoosnix/cryptography
Storing debug log for failure in /root/.pip/pip.log
I'm not sure what that "Invalid environment marker" means. Does it mean I can't install this for Python 3?
This is for a Debian 8 VM.
Try to run sudo apt-get install libssl-dev
Upd:
Try to run sudo pip3 install --upgrade pip

Resources