-
Notifications
You must be signed in to change notification settings - Fork 749
IndexError occurs when installing qiskit 0.7.2 with pip 19.0.2 #78
Comments
IndexError
occurs when installing qiskit 0.7.2.
Note that I can install qiskit 0.7.1 without error.
|
@atilag this is because of aer. Could you look into it |
@delapuente I think that it is related to Qiskit/qiskit#45.
|
I found that the cause is the latest version of pip==19.0.2. I can install qiskit==0.7.2 with pip==19.0.1. |
I recommend the following workaround to create a new environment for a while. Installing pip==19.0.1 is essential.
Another workaround.
|
I found that this particular commit of pip causes this issue. |
If it raises an exception at setup.py#L58, it succeeds the installation at last. But, the traceback looks ugly as follows.
|
I confirm this solution is feasible! |
Hi @t-imamichi, thank you for digging into this. I came with the same conclusion you notice at Qiskit/qiskit#78 (comment). I believe there is some way for suppressing the exception but also produccing an error in the |
@delapuente FYI. pip 19.0.3 is also released to fix the issue. I confirmed that pip 19.0.3 can install qiskit 0.7.2 without error as follows.
|
@t-imamichi oh, that's a good point I'd like to revert #119 then if the issue is fixed in pip 19.0.3. The workaround in #119 causes an error during the install and it can be confusing. |
I think 0.7.2 still causes an error intentionally as the relase note says https://github.com/Qiskit/qiskit/releases/tag/0.7.2. It is introduced to deal with Qiskit/qiskit#27 |
@t-imamichi right, the workaround in #27 will always be necessary as long as we support migrating from
This is confusing to users, and I've had several people ask me about it already (Especially because on my system the error is printed in red). Without #119 applied we just get a warning about the wheel build failing, like in your example above or on my local system:
The warning also is yellow on my system, not red, which isn't as scary to users not familiar with the pip internals or why we need to have all these workarounds in place. |
@t-imamichi Qiskit/qiskit#155 is another example of the user confusion having #119 in place causes. |
I agree. The warning message scares users. But, I have no idea to solve the upgrading issue without the warning message. |
Informations
What is the current behavior?
IndexError
occurs when installing qiskit 0.7.2 with pip 19.0.2. pip <= 19.0.1 does not have this issue.Steps to reproduce the problem
Run the following commands.
Get the following result.
Update(Feb 13): I confirmed that the same errors occurs on mac as well.
Update(Feb 14): I confirmed that pip==19.0.2 causes the error; pip<=19.0.1 has no problem.
pypa/pip@61fd802 seems cause it.
What is the expected behavior?
Install without error.
Suggested solutions
Use pip==19.0.1 for a while. I recommend the following workaround to create a new environment for a while.
The text was updated successfully, but these errors were encountered: