question

Upvotes
1 0 0 0

ImportError: cannot import name 'registry'

After setting up a conda env for Eikon and launching Jupyter Notebook I get an error when I run:

import eikon as ek

the error is ImportError: cannot import name 'registry'
I have tried updated pandas and updating all in my env. Nothing seems to help.

For context my work machine does not let me work from the main drive so I had to create a folder on another drive to contain my environment. My set up in Conda therefore looks like this:

(M:\EikonAPI\Eikon_env) M:\EikonAPI\Eikon_env>

I am not sure whether this would cause any problems. This is the only way I can use other API's like the bloomberg API on my work machine.

eikon-data-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
8.1k 15 5 8

hi @archie.brixton ,

Could you please provide the package versions with pip freeze command and I'm going to try to reproduce the issue.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Here is first part, will send in two images
1658392111574.png

1658392111574.png (37.8 KiB)

Please let me know what you think. Do I need to install pip3 and perform an upgrade of packages?
Thanks for your help. Appreciate it.

@archie.brixton

Can you create a new virtual environment? Then, install just the Eikon package and its dependicies to verify if it works.

hi @archie.brixton ,

I tried to reproduce the issue with the same list of Python libraries you've used but I can import the Eikon library properly without any error (I'm using Python version 3.9.12). Hence, could you please try as Jirapongse mentioned and let us know if the issue still persists?

Upvotes
1 0 0 0

Here is the second part
1658392186100.png


1658392186100.png (37.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.