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

0

Comments

18 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)

    =)

    2
    Comment actions Permalink
  • 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.

    1
    Comment actions Permalink
  • 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)

    0
    Comment actions Permalink
  • 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)

     

    0
    Comment actions Permalink
  • Thank you for your reply! Yes I installed this:

    macOS 64-bit installer on a Mac.

    Thank you,

    Giuseppe

    0
    Comment actions Permalink
  • 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. 

     

    0
    Comment actions Permalink
  • 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 install


    Now I have all these packages installed in my virtual environment:

    Package             Version
    ------------------- -------
    decorator           4.4.1  
    dimod               0.8.18 
    dwave-cloud-client  0.6.2  
    dwave-hybrid        0.4.1  
    dwave-neal          0.5.1  
    dwave-networkx      0.8.3  
    dwave-ocean-sdk     1.5.0  
    dwave-qbsolv        0.2.10 
    dwave-system        0.8.0  
    dwave-tabu          0.2.1  
    dwavebinarycsp      0.0.12 
    minorminer          0.1.9  
    networkx            2.4    
    numpy               1.15.4 
    penaltymodel        0.16.2 
    penaltymodel-cache  0.4.0  
    penaltymodel-lp     0.1.0  
    penaltymodel-maxgap 0.5.1  
    penaltymodel-mip    0.2.1  
    pip                 19.3.1 
    pyqubo              0.4.0  
    PySMT               0.7.0  
    setuptools          41.2.0 
    six                 1.13.0 

    .. but I am facing a new issue once I execute the "dwave config create" command:

    Traceback (most recent call last):
      File "/Users/gmontale/.venv/bin/dwave", line 6, in <module>
        from pkg_resources import load_entry_point
      File "/Users/gmontale/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in <module>
        def _initialize_master_working_set():
      File "/Users/gmontale/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
        f(*args, **kwargs)
      File "/Users/gmontale/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/Users/gmontale/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
        ws.require(__requires__)
      File "/Users/gmontale/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/Users/gmontale/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'requests[socks]>=2.18' distribution was not found and is required by dwave-cloud-client

    May you pls help me in this issue as well? Thank you for your support, best regards.

    Giuseppe

    0
    Comment actions Permalink
  • Hello,

    Could you try running:

    pip install 'requests[socks]>=2.18'

    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!

    0
    Comment actions Permalink
  • 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,

    1
    Comment actions Permalink
  • 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

     

    0
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink
  • 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

     

     

     

    1
    Comment actions Permalink
  • 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.

    0
    Comment actions Permalink

  • 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

    0
    Comment actions Permalink
  • Hello,

    Sorry I also need:

    where python

    This way we can compare it to the where pip command and know if pip and python are being called in different folders.

     

    0
    Comment actions Permalink
  • 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!

    0
    Comment actions Permalink
  • 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

    0
    Comment actions Permalink
  • Hello,

    We are in the process of updating the libraries and documentation to reflect changes to supported values.
    Thank you for reaching out!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post