Search Criteria
Package Details: python-qiskit-ibmq-provider 0.20.2-2
Package Actions
- View PKGBUILD / View Changes
- Download snapshot
- Search wiki
- Flag package out-of-date
- 1 pending request
- Submit Request
Git Clone URL: | https://aur.archlinux.org/python-qiskit-ibmq-provider.git (read-only, click to copy) |
---|---|
Package Base: | python-qiskit-ibmq-provider |
Description: | (DEPRECATED) Module for accessing the quantum devices and simulators at IBMQ |
Upstream URL: | https://github.com/Qiskit/qiskit-ibmq-provider |
Licenses: | Apache |
Submitter: | iyanmv |
Maintainer: | None |
Last Packager: | iyanmv |
Votes: | 1 |
Popularity: | 0.000000 |
First Submitted: | 2019-11-28 16:38 (UTC) |
Last Updated: | 2023-08-09 09:42 (UTC) |
Dependencies (12)
- python-dateutil
- python-numpy (python-numpy1.22AUR, python-numpy-flameAUR, python-numpy-mkl-binAUR, python-numpy-openblasAUR, python-numpy-mklAUR, python-numpy-gitAUR)
- python-qiskit-terra (python-qiskitAUR)
- python-requests
- python-requests-ntlm
- python-urllib3
- python-websocket-client (python-websocket-client-gitAUR)
- python-websockets
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools (make)
- python-wheel (make)
Latest Comments
iyanmv commented on 2021-12-13 11:38 (UTC)
See this: https://aur.archlinux.org/packages/python-qiskit-terra/#pinned-840637
iyanmv commented on 2019-12-11 10:41 (UTC) (edited on 2019-12-18 23:54 (UTC) by iyanmv)
Glad to hear that is working! Yes, you are right,
cryptography
is required byrequests-ntlm
by it is not include in the PKGBUILD. I will open a bug since that package is in Community repo. I didn't have this problem since I hadpython-cryptography
before as a dependency ofcerbot
.harmonica commented on 2019-12-11 10:35 (UTC)
We managed to get it to work! Somehow, I mass missing the python cryptography module, which is a dependency of requests_ntlm which is used by ibmq-providers.
''' $ python import qiskit.providers.ibmq '''
I got the same deprecation warnings as before, but also a more revealing error traceback
''' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/init.py", line 20, in <module> from .ibmqfactory import IBMQFactory File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/ibmqfactory.py", line 21, in <module> from .accountprovider import AccountProvider File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/accountprovider.py", line 27, in <module> from .ibmqbackend import IBMQBackend, IBMQSimulator File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/ibmqbackend.py", line 35, in <module> from .credentials import Credentials File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/credentials/init.py", line 21, in <module> from .credentials import Credentials, HubGroupProject File "/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/credentials/credentials.py", line 20, in <module> from requests_ntlm import HttpNtlmAuth File "/usr/lib/python3.8/site-packages/requests_ntlm/init.py", line 1, in <module> from .requests_ntlm import HttpNtlmAuth File "/usr/lib/python3.8/site-packages/requests_ntlm/requests_ntlm.py", line 5, in <module> from cryptography import x509 ModuleNotFoundError: No module named 'cryptography' '''
I pacman installed python-cryptography and now it all works.
iyanmv commented on 2019-12-10 10:43 (UTC)
Can you do this without error?
Note that I didn't create a
python-qiskit
PKGBUILD because it would be just a meta package forcing to install certain versions of each component of the framework, that's why it says'qiskit': None
. I prefer to have last version of each component.Did you try installing with
pip
before using the PKGBUILDs?I just tried installing in a different computer, to check in case I forgot some dependencies, and it's working. I don't know what can be wrong...
harmonica commented on 2019-12-10 10:30 (UTC)
@iyanmv I forgot to mention that I did manually chase all the dependencies that were only in the AUR and installed them asdeps. I tried with yay too as you recommended but it does not fix my problem.
iyanmv commented on 2019-12-10 09:43 (UTC)
@harmonica those warnings are expected. I will try to removed them in the future, but I think it's an issue from upstream. When using
python setup.py build
, those dynamic library files (.so) contain references to the source directory. If you go to the folder where you clone the repo, do the following (read also this):That command will show the same files that
makepkg
detected and that's why we get the warning. Pick one and usestrings
to see the actual reference:As you can see it is a mention to
wrappers/qasm_controller_wrapper.pyx
.Nevertheless, that is not the problem. By the way,
makepkg -s
will only install dependencies available in official repos and install them usingpacman
, but there are some dependencies only available in AUR.I would recommend you using an AUR helper, for example yay. Install it the usual way, and then try:
harmonica commented on 2019-12-10 09:18 (UTC)
@iyanmv Yes, it's strange. I just pacman removed all qiskit packages, and removed the directories that I had cgit cloned.
I then git cloned the qiskit terra aer and ibmq-provider and makepkg -csi them in that order. I get the same error message when I try to import qiskit in python.
The makepkg process is very verbose, so I'm not sure I caught all the error messages, but while doing aer I got
==> WARNING: Package contains reference to $srcdir
usr/lib/python3.8/site-packages/qiskit/providers/aer/backends/unitary_controller_wrapper.cpython-38-x86_64-linux-gnu.so
usr/lib/python3.8/site-packages/qiskit/providers/aer/backends/qasm_controller_wrapper.cpython-38-x86_64-linux-gnu.so
usr/lib/python3.8/site-packages/qiskit/providers/aer/backends/statevector_controller_wrapper.cpython-38-x86_64-linux-gnu.so
thanks for the support!
iyanmv commented on 2019-12-10 07:12 (UTC)
@harmonica new versions of Terra, Aer and IBMQ-provider were released tonight. Please try again, although there are not big changes, so if it not working before probably this upgrade won't fix anything.
iyanmv commented on 2019-12-09 21:22 (UTC)
@harmonica I cannot replicate your error, and I have send several jobs to IBMq machines using this PKGBUILD. Can you try to rebuild the package and reinstall? Check if there are any error messages.
First warnings are normal till they fix it upstream for python 3.8. Last error it looks like you didn't install the package.
And no, source is not old, it is the last version released 18 days ago.
harmonica commented on 2019-12-09 15:20 (UTC) (edited on 2019-12-09 15:21 (UTC) by harmonica)
I have successfully installed all the other qiskit packages using your packages, but this one does not work for me. When I try
I get the following error messages
/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/api/clients/websocket.py:121: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def _connect(self, url: str) -> Generator[Any, None, WebSocketClientProtocol]:
/usr/lib/python3.8/site-packages/qiskit/providers/ibmq/api/clients/websocket.py:173: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def get_job_status(
/usr/lib/python3.8/site-packages/qiskit/init.py:61: RuntimeWarning: Could not import the IBMQ provider from the qiskit-ibmq-provider package. Install qiskit-ibmq-provider or check your installation. warnings.warn('Could not import the IBMQ provider from the '
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'IBMQ' from 'qiskit' (/usr/lib/python3.8/site-packages/qiskit/init.py)
maybe the source is old?