What does "unsupported" in package version mean? - python

I'm setting up my requirements.txt, and I see that in my development environment I have "pyodbc==4.0.0-unsupported".
> pip show pyodbc
Name: pyodbc
Version: 4.0.0-unsupported
Summary: DB API Module for ODBC
Home-page: https://github.com/mkleehammer/pyodbc
Author: None
Author-email: None
License: MIT
Location: /local_disk0/.ephemeral_nfs/envs/pythonEnv-02ceb239-f645-45e1-ad42-93017835482c/lib/python3.7/site-packages
Requires:
Required-by:
What does it mean?
I'm using Python 3.7
Isn't it weird that pip installs an old version (2016) of this package?

Related

VSCode can't find py-solc-x

only run : from solcx your textimport compile_standard, install_solc
error: Info: Could not find file with the provided pattern
(solidity_web3_venv) PS N:\ppython\file\venv\solidity_web3_venv\Scripts\demos\web3_py_simple_storage> python tets.py
信息: 用提供的模式无法找到文件。
(solidity_web3_venv) PS N:\ppython\file\venv\solidity_web3_venv\Scripts\demos\web3_py_simple_storage> pip show py-solc-x
Name: py-solc-x
Version: 1.1.1
Summary: Python wrapper and version management tool for the solc Solidity compiler.
Home-page: https://github.com/iamdefinitelyahuman/py-solc-x
Author: Ben Hauser (forked from py-solc by Piper Merriam)
Author-email: ben#hauser.id
License: MIT
Location: n:\ppython\file\venv\solidity_web3_venv\lib\site-packages
Requires: requests, semantic-version
Required-by:
There's no problem with the interpreter.
The virtual environment is created, the interpreter is OK, and the pip download location is OK.

Error version of cffi python package mismatch

I'm trying to install a python software (https://github.com/GuLinux/AstroPhoto-Plus) but in logs, i've got this error during execution just after installation:
Exception: Version mismatch: this is the 'cffi' package version 1.14.6, located in '/tmp/pip-build-env-kuxyuc2x/overlay/lib/python3.8/site-packages/cffi/api.py'.
When we import the top-level '_cffi_backend' extension module, we get version 1.14.0, located in '/usr/lib/python3/dist-packages/_cffi_backend.cpython-38-arm-linux-gnueabihf.so'. The two versions should be equal; check your installation.
As i understand i've got :
hamham#astroloutre:~/www$ pip show cffi
Name: cffi
Version: 1.14.0
Summary: Foreign Function Interface for Python calling C code.
Home-page: http://cffi.readthedocs.org
Author: Armin Rigo, Maciej Fijalkowski
Author-email: python-cffi#googlegroups.com
License: MIT
Location: /home/hamham/.local/lib/python3.8/site-packages
Requires: pycparser
Required-by:
I'm trying install 1.14.6 version
hamham#astroloutre:~/www$ pip install --upgrade cffi==1.14.6
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/hamham/.cache/pip/wheels/21/a9/81/c074a48686fe8c1ffada1f9e5f53b553c0f766503c0b991c23/cffi-1.14.6-cp38-cp38-linux_armv7l.whl
Requirement already satisfied, skipping upgrade: pycparser in /home/hamham/.local/lib/python3.8/site-packages (from cffi==1.14.6) (2.20)
Installing collected packages: cffi
Attempting uninstall: cffi
Found existing installation: cffi 1.14.0
Uninstalling cffi-1.14.0:
Successfully uninstalled cffi-1.14.0
Successfully installed cffi-1.14.6
hamham#astroloutre:~/www$ pip show cffi
Name: cffi
Version: 1.14.6
Summary: Foreign Function Interface for Python calling C code.
Home-page: http://cffi.readthedocs.org
Author: Armin Rigo, Maciej Fijalkowski
Author-email: python-cffi#googlegroups.com
License: MIT
Location: /home/hamham/.local/lib/python3.8/site-packages
Requires: pycparser
Required-by:
Reinstallation and same error :
Exception: Version mismatch: this is the 'cffi' package version 1.14.6, located in '/tmp/pip-build-env-34pknb8l/overlay/lib/python3.8/site-packages/cffi/api.py'. When we import the top-level '_cffi_backend' extension module, we get version 1.14.0, located in '/usr/lib/python3/dist-packages/_cffi_backend.cpython-38-arm-linux-gnueabihf.so'. The two versions should be equal; check your installation.
I'm not python developper and despite an issue i've posted in github, i've no answer (it seems repository is abandoned sinde one year), i don't know what i can do.
Thanks.
Resolved with installing package "python3-cffi"
sudo apt install python3-cffi
and downgrade pip package :
pip install --upgrade cffi==1.14.0

`poetry install` using packages on my system?

I'm still getting used to poetry so I'm hoping that I'm doing something wrong. For some reason, after running poetry install, it looks like not all the packages that I depend on end up in the virtual environment. See the below output:
$ poetry run pip show boto3
Name: boto3
Version: 1.18.29
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
Author-email: None
License: Apache License 2.0
Location: /home/stian/.cache/pypoetry/virtualenvs/some_virtualenv-py3.8/lib/python3.8/site-packages
Requires: s3transfer, jmespath, botocore
Required-by: moto
$ poetry run pip show pluggy
Name: pluggy
Version: 0.13.1
Summary: plugin and hook calling mechanisms for python
Home-page: https://github.com/pytest-dev/pluggy
Author: Holger Krekel
Author-email: holger#merlinux.eu
License: MIT license
Location: /nix/store/l2i2x3g16g6dbwsw4iii614dh3xqgg9m-python3.8-pluggy-0.13.1/lib/python3.8/site-packages
Requires:
Required-by: tox, pytest
Why does this happen? I'm using NixOS, but I'm hoping that's not the cause. To be clear: What I wish is for the "Location" for the pluggy package to also be within the "/home/stian/.cache/pypoetry/virtualenvs/some_virtualenv-py3.8/lib/python3.8/site-packages", as it is for the boto3 package.

Colab running Pennylane with DeviceError

I tried to run Pennylane on Colab, so I install it first. But the "Installed devices" are null, what's going on? I have restart and rebuilt for several times. Here is my code.
!pip install pennylane pennylane-qiskit
import pennylane as qml
qml.about()
Here is the result (with nothing in "Installed devices"):
Successfully built qiskit python-constraint contextvars yfinance docplex dlx
Installing collected packages: semantic-version, appdirs, pennylane, sympy, fastjsonschema, retworkx, python-constraint, ply, immutables, contextvars, qiskit-terra, pybind11, qiskit-aer, websockets, cryptography, ntlm-auth, requests-ntlm, qiskit-ibmq-provider, qiskit-ignis, inflection, quandl, lxml, yfinance, docplex, dlx, qiskit-aqua, qiskit, pennylane-qiskit
Found existing installation: sympy 1.1.1
Uninstalling sympy-1.1.1:
Successfully uninstalled sympy-1.1.1
Found existing installation: lxml 4.2.6
Uninstalling lxml-4.2.6:
Successfully uninstalled lxml-4.2.6
Successfully installed appdirs-1.4.4 contextvars-2.4 cryptography-3.2.1 dlx-1.0.4 docplex-2.15.194 fastjsonschema-2.14.5 immutables-0.14 inflection-0.5.1 lxml-4.6.1 ntlm-auth-1.5.0 pennylane-0.12.0 pennylane-qiskit-0.12.0 ply-3.11 pybind11-2.6.0 python-constraint-1.4.0 qiskit-0.23.0 qiskit-aer-0.7.0 qiskit-aqua-0.8.0 qiskit-ibmq-provider-0.11.0 qiskit-ignis-0.5.0 qiskit-terra-0.16.0 quandl-3.5.3 requests-ntlm-1.1.0 retworkx-0.5.0 semantic-version-2.6.0 sympy-1.6.2 websockets-8.1 yfinance-0.1.55
Name: PennyLane
Version: 0.12.0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author: None
Author-email: None
License: Apache License 2.0
Location: /usr/local/lib/python3.6/dist-packages
Requires: semantic-version, scipy, autograd, networkx, numpy, appdirs, toml
Required-by: PennyLane-qiskit
Platform info: Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic
Python version: 3.6.9
Numpy version: 1.18.5
Scipy version: 1.4.1
Installed devices:
When I tried to use device, I got
raise DeviceError("Device does not exist. Make sure the required plugin is installed.")
Try upgrading the pennylane-sf library as mentioned here:
!pip install pennylane-sf --upgrade
Restart the runtime and that's it!
https://discuss.pennylane.ai/t/tutorial-for-gaussian-boson-sampling-sample-code/728
Had been answered here:
https://discuss.pennylane.ai/t/error-when-calling-device/259/35
See the url for detail.

OR Tools compiled against version 3.5.1 of the Protocol Buffer, not compatible with installed version

I installed OR Tools on my mac with pip install ortools. Now I try to run the example code given by Google on https://developers.google.com/optimization/routing/vrp#solution.
At the import from ortools.constraint_solver import pywrapcp the program crashes with the following message:
[libprotobuf FATAL google/protobuf/stubs/common.cc:86] This program was compiled against version 3.5.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.7.1). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "ortools/gen/ortools/data/rcpsp.pb.cc".)
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: This program was compiled against version 3.5.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.7.1). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "ortools/gen/ortools/data/rcpsp.pb.cc".)
I deleted version 3.7.1 of protobuf and installed 3.5.1 with the help of pip:
Name: protobuf
Version: 3.5.1
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: protobuf#googlegroups.com
Author-email: protobuf#googlegroups.com
License: 3-Clause BSD License
Location: /Users/Martijn/anaconda/lib/python3.5/site-packages
Requires: setuptools, six
But I still get the same error message.. Anyone experience with this problem?
OR Tools:
Name: ortools
Version: 6.7.4973
Summary: Google OR-Tools python libraries and modules
Home-page: https://developers.google.com/optimization/
Author: Google Inc
Author-email: lperron#google.com
License: Apache 2.0
Location: /Users/Martijn/anaconda/lib/python3.5/site-packages
Requires: six, protobuf
For some reason I cannot upgrade to a newer version of OR Tools with pip.
Can you upgrade to python 3.6 ?
Latest version (7.0) supports 2.7, 3.7, and 3.7 on mac.
Please note that they were build with 3.6.1.
Next version will include 3.7.1.

Categories

Resources