-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to qiskit 0.7 removes some mandatory files in the qiskit directory #1599
Comments
Thanks @t-imamichi for reporting - it seems indeed that in some case the order of uninstalling and installing |
Hi @t-imamichi, thank you for pointing this out and also helping with documentation in Could you please make a PR for documentation that includes this info? Probably in the global Qiskit repository would be the best (and linking to it in Terra). Because your notes are related to Thanks. |
Perhaps we can modify the |
@ajavadia Yes. I try to merge my documentation into the global one and make a PR. @delapuente Good news! I hope 0.7.1 resolves this issue. |
This is being tracked in the meta repo: #27 |
I had the same issue while installing qiskit, "init.py" was missing with several other. I used the workaround and it fixed the issue. Thanks for sharing it. |
Informations
What is the current behavior?
If users upgrade qiskit 0.6.* to 0.7 by
pip install -U qiskit
, some mandatory files in the qiskit directory (site-packages/qiskit
) will be removed while upgrading. It causes unintentional errors like #1582. Such users cannot use qiskit without any workaround.Steps to reproduce the problem
What is the expected behavior?
Cause
The main cause is
pip install -U qiskit
. It installs modules as follows.(I refer the steps later)
The file list of
site-packages/qiskit
when upgrading 0.6 to 0.7 is as follows.The file list of
site-packages/qiskit
when clean installing 0.7 is as follow.There are missing files such as
__init__.py
when upgrading 0.6 to 0.7. The reason is as follows.__init__.py
that are included in both qiskit==0.6.1 and qiskit-terra.Suggested solutions
I recommend to write a document how to upgrade from qiskit==0.6.* to qiskit==0.7. This behavior of upgrading qiskit is unpredictable for users.
Users need to reinstall qiskit-terra to deal with this issue. Workarounds are as follows.
or
or
Note that reinstalling only qiskit does not work because some files in qiskit-terra are still missing.
The text was updated successfully, but these errors were encountered: