Installation issue
In the middle of performing pip install dwave-ocean-sdk I get these error lines:
Could not find a version that satisfies the requirement ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk) (from versions: )
No matching distribution found for ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk)
Windows 10, python 3.7.3
Comments
Just resolved this problem. My python was for 32 bit, while my computer is 64, so there were some problems with ortools.
(Sorry for my ignorance: I'm a physicist, not CS)
=)
Hi Nikita,
I'm glad you were able to resolve the issue!
Even CS people get stuck on this particular issue, so you should feel good about figuring it out!
Thank you for updating everyone on the cause of the issue.
Best regards,
Dave.
Hi, I'm having the same issue but I didn't manage to fix it.
Thank you,
ERROR: Could not find a version that satisfies the requirement ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk) (from versions: none)
ERROR: No matching distribution found for ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk)
Hi Giuseppe,
Do you have 64 bit python installed? Just want to check that first :)
What type of computer are you using? (Windows, Mac, Linux)
Thank you for your reply! Yes I installed this:
macOS 64-bit installer on a Mac.
Thank you,
Giuseppe
Thanks for confirming your python package.
There's another thread here that discusses a similar issue with a mac installation. The fix was to install an older version of penaltymodel that doesn't use ortools. Here's the command: pip install penaltymodel-maxgap
Hopefully that fixes your issue! Please let me know if it doesn't.
Thanks for your support.
I succeeded installing using the command:
git clone https://github.com/dwavesystems/dwave-ocean-sdk.git cd dwave-ocean-sdk python setup.py installNow I have all these packages installed in my virtual environment:
.. but I am facing a new issue once I execute the "dwave config create" command:
May you pls help me in this issue as well? Thank you for your support, best regards.
Giuseppe
Hello,
Could you try running:
It looks like that package is not installed or is installed with an incompatible version.
We are also looking at reproducing this in the mean time.
Thank you for your patience and understanding!
Thank you David, it works now!
Initially I had the following message errors:
ERROR: dwave-cloud-client 0.6.2 requires click>=7.0, which is not installed.
ERROR: dwave-cloud-client 0.6.2 requires homebase>=1.0, which is not installed.
ERROR: dwave-cloud-client 0.6.2 requires plucky>=0.4.3, which is not installed.
ERROR: dwave-cloud-client 0.6.2 requires python-dateutil>=2.7, which is not installed.
but after installing all of them the "dwave config create" was correctly working, and the configuration file has been created!
I checked the "ping" and here's the result:
(.venv) gmontale@Giuseppes-MacBook-Pro dwave-ocean-sdk % dwave ping
Using endpoint: https://cloud.dwavesys.com/sapi/
Using solver: DW_2000Q_5
Submitted problem ID: 96e933ff-ecc4-4c6c-913e-27f1c8b4a87b
Wall clock time:
* Solver definition fetch: 3670.129 ms
* Problem submit and results fetch: 25348.380 ms
* Total: 29018.509 ms
QPU timing:
* qpu_sampling_time = 315 us
* qpu_anneal_time_per_sample = 20 us
* qpu_readout_time_per_sample = 274 us
* qpu_access_time = 9694 us
* qpu_access_overhead_time = 3217 us
* qpu_programming_time = 9380 us
* qpu_delay_time_per_sample = 21 us
* total_post_processing_time = 401 us
* post_processing_overhead_time = 401 us
* total_real_time = 9694 us
* run_time_chip = 315 us
* anneal_time_per_run = 20 us
* readout_time_per_run = 274 us
Thank you again for your help! Now I will go on with the next steps...
Best regards,
Hi
I am having a similar installation problem for the windows system. I installed Python 3.8.1 (64 bit) got a similar error message. Then I switched to an older version of Python(3.6.7 -64 bit), hoping it would work...
> Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32.
THE INSTILALTION ERROR MESSAGE WAS :
ERROR: Could not find a version that satisfies the requirement ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk) (from versions: none)
ERROR: No matching distribution found for ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk)
I tried "pip install penaltymodel-maxgap". This worked fine.
I again tried "pip install dwave-ocean-sdk", Still get ortool error message.
Regards
Shaloo
"
Hello,
Did you happen to explicitly install the 64-bit version of Python?
This error often arises when mistakenly using the 32-bit version.
I hope this helps!
Dave.
Hi Dave
Thanks for looking into it. Yes, I did install 64-bit Python.
I just updated Python to the latest 3.8.1 64 bit. as shown below:
C:\Users\hp>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
I STILL GET TEH SAME ERROR MESSAGE:
ERROR: Could not find a version that satisfies the requirement ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk) (from versions: none)
ERROR: No matching distribution found for ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk).
IS THERE SOMETHING WRONG WITH THE ORTOOLS INSTALLATION. I TRIED TEH FOLLOWING?
(ocean) C:\Users\hp\Desktop\Work\2020_Param\Python\Code\Leap1>pip install ortools
ERROR: Could not find a version that satisfies the requirement ortools (from versions: none)
ERROR: No matching distribution found for ortools
Regards
Shaloo
Did you try running `pip install penaltymodel-maxgap` again after installing python 64 bit version?
My apologies! I am still looking into this.
One other issue that you might be running into is pip and python version issues.
Can you also run:
where python < This gives us the location of python being used
where pip < This gives us the location of pip being used
pip -V < This gives us the version of pip being used
pip freeze < You can check in the output to make sure that penaltymodel-maxgap is installed
Hopefully this will help a bit in the mean time.
Hi David
Yes I did run `pip install penaltymodel-maxgap` SUCCESSFULLY after installing python 64 bit version.
Here are the path's that you asked me to check:
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>where pip
C:\Users\hp\AppData\Local\Programs\Python\Python38\Scripts\pip.exe
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>pip -V
pip 20.0.2 from c:\users\hp\appdata\local\programs\python\python38\lib\site-packages\pip (python 3.8)
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>pip freeze
cycler==0.10.0
decorator==4.4.1
dimod==0.8.19
dwave-networkx==0.8.3
kiwisolver==1.1.0
lxml==4.4.2
matplotlib==3.1.2
networkx==2.4
numpy==1.18.1
penaltymodel==0.16.2
penaltymodel-maxgap==0.5.1
Pillow==7.0.0
pyparsing==2.4.6
PySMT==0.7.0
python-dateutil==2.8.1
python-pptx==0.6.18
six==1.14.0
XlsxWriter==1.2.7
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>python -V
Python 3.8.1
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>
Still When I try to run "pip install dwave-ocean-sdk", I get the following error message :
ERROR: Could not find a version that satisfies the requirement ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk) (from versions: none)
ERROR: No matching distribution found for ortools<7.0.0,>=6.6.4659 (from penaltymodel-mip<0.3.0,>=0.2.0; extra == "mip"->dwavebinarycsp[mip]<0.1.0,>=0.0.9; (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64") and python_version != "3.4"->dwave-ocean-sdk)
It's is 64 bit python as shown below:
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
The only surprising part is I can't install ortools.
C:\Users\hp\Desktop\Work\2020\Python\Code\TextToPPT>pip install ortools
ERROR: Could not find a version that satisfies the requirement ortools (from versions: none)
ERROR: No matching distribution found for ortools
Regards
Shaloo
Hello,
Sorry I also need:
This way we can compare it to the where pip command and know if pip and python are being called in different folders.
Hello again,
It seems that the issue is that Python 3.8 is not yet supported.
I am so sorry for the mix up and inconvenience!
Thank you for your patience while we sorted this out.
You can try running Python 3.7.
This version is running for me.
Thanks again!
Hello all,
I had the same problem with python 3.9 (64bit) on win32, but the documentation says 3.5 + supported (https://docs.ocean.dwavesys.com/en/stable/overview/install.html) (I kindly suggest to modify the documentation)
Same as the previous message: worked for Python 3.7.9
Cheers
Hello,
We are in the process of updating the libraries and documentation to reflect changes to supported values.
Thank you for reaching out!
Please sign in to leave a comment.