Problems with installation

I am just starting setting up ocean and the D-Wave cloud on my laptop, but I have met several problems. I am following the step described here: https://docs.ocean.dwavesys.com/en/latest/overview/install.html.

So, I created a new environment, installed dwave-ocean-sdk, and tried to create a config file, but I get an error message right away:

```$ dwave config create

Traceback (most recent call last):

File "/Users/elisabettavaliante/git/ocean/bin/dwave", line 6, in <module>

from dwave.cloud.cli import cli

ImportError: No module named cloud.cli```

I have OSX 10.14.4, and I notices that the installation has only been testes on OSX 10.13, could this be the problem?

 

I repeated the steps above in a docker with ubuntu16 installed. I am able to create the config file, but I don't find any solver when calling ping:

```# dwave ping

Using endpoint: https://cloud.dwavesys.com/sapi

Error: Solver not available. (code: 6)```

I can find the solver if I use a Python interpreter:

```>>> from dwave.cloud import Client

>>> client = Client.from_config(token='XXXXX')

>>>client.get_solvers()

[Solver(id=u'DW_2000Q_2_1')]```

But, when using the Python interpreter, I cannot file the sampler and I get `SolverNotFoundError`:

```>>> from dwave.system.samplers import DWaveSampler

>>> sampler = DWaveSampler()

SolverNotFoundError                       Traceback (most recent call last)

<ipython-input-5-63c6d7b35973> in <module>()

----> 1 sampler = DWaveSampler()

/root/git/ocean/lib/python2.7/site-packages/dwave/system/samplers/dwave_sampler.pyc in __init__(self, **config)

    111 

    112         self.client = Client.from_config(**config)

--> 113         self.solver = self.client.get_solver()

    114 

    115         # need to set up the nodelist and edgelist, properties, parameters

/root/git/ocean/lib/python2.7/site-packages/dwave/cloud/client.pyc in get_solver(self, name, refresh, **filters)

    953             return self.get_solvers(refresh=refresh, **filters)[0]

    954         except IndexError:

--> 955             raise SolverNotFoundError("Solver with the requested features not available")

    956 

    957     def _submit(self, body, future):

SolverNotFoundError: Solver with the requested features not available```

 

Any idea what is wrong?

0

Comments

7 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post