Skip to content
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

run error #10

Open
rlacjfjin opened this issue Apr 25, 2021 · 1 comment
Open

run error #10

rlacjfjin opened this issue Apr 25, 2021 · 1 comment

Comments

@rlacjfjin
Copy link

Hi,
When I run python nurse_scheduling.py, following error occurred:

Traceback (most recent call last):
File "nurse_scheduling.py", line 166, in
sampler = LeapHybridSampler()
File "/Users/jinzhe/opt/anaconda3/lib/python3.8/site-packages/dwave/system/samplers/leap_hybrid_sampler.py", line 97, in init
self.client = Client.from_config(
File "/Users/jinzhe/opt/anaconda3/lib/python3.8/site-packages/dwave/cloud/client.py", line 344, in from_config
return _clients_client
File "/Users/jinzhe/opt/anaconda3/lib/python3.8/site-packages/dwave/cloud/client.py", line 386, in init
raise ValueError("API token not defined")
ValueError: API token not defined

I installed dwave with pip install dwave-system.
Could you help me?
Thanks,

@hhtong
Copy link
Contributor

hhtong commented Apr 26, 2021

Hi @rlacjfjin,

To use the LeapHybridSampler, you’ll need an API Token from Leap for authentication. These two articles might be helpful if you haven’t seen them yet:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants