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

api_key error #9

Open
danidetapia opened this issue Jul 21, 2019 · 0 comments
Open

api_key error #9

danidetapia opened this issue Jul 21, 2019 · 0 comments

Comments

@danidetapia
Copy link

danidetapia commented Jul 21, 2019

Hi,
sorry for my inexperience but I can't connect to the Cognite Data Platform although the colab workshop is supposed to be an step by step guided file.

I would appreciate a lot if someone can help me going through this step (btw I did fix the cognite.client import issue as explained here)

When I run this code and enter my API Key (which is working elsewhere):

client = CogniteClient(api_key=getpass("Open Industrial Data API-KEY: "))

The output is:

Open Industrial Data API-KEY: ··········


ValueError Traceback (most recent call last)
in ()
----> 1 client = CogniteClient(api_key=getpass("Open Industrial Data API-KEY: "))

1 frames
/usr/local/lib/python3.6/dist-packages/cognite/client/_cognite_client.py in init(self, api_key, project, client_name, base_url, max_workers, headers, timeout, debug)
55 headers=headers,
56 timeout=timeout,
---> 57 debug=debug,
58 )
59 self.login = LoginAPI(self._config, cognite_client=self)

/usr/local/lib/python3.6/dist-packages/cognite/client/utils/_client_config.py in init(self, api_key, project, client_name, base_url, max_workers, headers, timeout, debug)
79 if self.client_name is None:
80 raise ValueError(
---> 81 "No client name has been specified. Pass it to the CogniteClient or set the environment variable "
82 "'COGNITE_CLIENT_NAME'."
83 )

ValueError: No client name has been specified. Pass it to the CogniteClient or set the environment variable 'COGNITE_CLIENT_NAME'.

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

1 participant