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

'digikey' is not a package #34

Open
dudomatik opened this issue Nov 24, 2022 · 6 comments
Open

'digikey' is not a package #34

dudomatik opened this issue Nov 24, 2022 · 6 comments

Comments

@dudomatik
Copy link

Hi,

I installed the package with pip in a conda environment. It is visible in anaconda navigator and present in the envirnment directory. With both PyCharm and VSCode I get this message every time i try to run a script that imports digikey:

from digikey.v3.productinformation import KeywordSearchRequest ModuleNotFoundError: No module named 'digikey.v3'; 'digikey' is not a package

I am running the example from the readme. This is probably something easy I am overlooking. Can you help me?

Thanks a lot

@eeintech
Copy link

Hello @dudomatik

You simply forgot to install the package: https://github.com/peeter123/digikey-api#install

pip install digikey-api

@dudomatik
Copy link
Author

Hi @eeintech,

No, thats not the issue. I have installed the package as I mentioned in the first sentence. It doesn't matter in which environment I install it, it always gives me this error.

@eeintech
Copy link

eeintech commented Dec 1, 2022

The only way I can reproduce your issue is not having the package installed in the environment I'm using so I'm not sure what is happening on your machine 🤔

@elmo2k3
Copy link

elmo2k3 commented Jan 22, 2023

Hi,

same issue here. Neither pip install digikey-api as user nor as root solved the issue. Using python3.10.7 with Ubuntu 22.10

@arks-public
Copy link

@dudomatik @elmo2k3

We had the same problem because our script was named digikey.py.

Renaming the script solved our issue.

@elmo2k3
Copy link

elmo2k3 commented Mar 8, 2023

Thanks a lot, that fixed this issue for me!

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

4 participants