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

ImportError: cannot import name 'iter_keys' from 'genno.core.key' #170

Open
mengyuliisa opened this issue Apr 14, 2024 · 3 comments
Open

Comments

@mengyuliisa
Copy link

mengyuliisa commented Apr 14, 2024

I have downloaded the toolbox; when importing it into my working environment, I experienced an error below (also as attached):

ImportError: cannot import name 'iter_keys' from 'genno.core.key' (/Users/meli0258/opt/anaconda3/envs/message_env/lib/python3.10/site-packages/genno/core/key.py)

Any idea if this is as expected?

Attachment

@khaeru
Copy link
Member

khaeru commented Apr 15, 2024

It's likely your version of genno is out of date. Can you please try to upgrade it, and then report whether that works?

@mengyuliisa
Copy link
Author

Thank you - to update genno, would it be within the Messageix platform? Can we find instructions somewhere or?

@glatterf42
Copy link
Member

Genno is a normal Python package installed in your virtual environment, which seems to be managed by Conda in your case. So please try running conda update genno within your venv.

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

3 participants