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

Issue importing/using #21

Closed
instance-id opened this issue Nov 26, 2021 · 2 comments
Closed

Issue importing/using #21

instance-id opened this issue Nov 26, 2021 · 2 comments

Comments

@instance-id
Copy link

Hey there,
I seem to be having an issue with trying to use this as a standard package. I used PyCharm to download the package into my virtual environment (in requirements as tinydb_baseClass~=0.5.0), but then when I go to use it as the following:

from tinydb_base import DatabaseBase

When I try to run it, I get the following:

    from tinydb_base import DatabaseBase
ModuleNotFoundError: No module named 'tinydb_base'

Is the discrepancy between the name used for the package itself and the named used to actually import it what might be causing this issue? Perhaps I just need to download it locally and add it manually?

Thanks,
-id

@instance-id
Copy link
Author

Nevermind, turns out I am just an idiot. It works fine, lol. I forgot I recreated my virtual environment in a different folder but I didn't update my run config to use the right interpreter path. When I ran it straight from the terminal it worked straight away. 👍

@MechaCoder
Copy link
Owner

Hi

Thank you for using my project, i am glad you got your issue sorted out.

@MechaCoder MechaCoder pinned this issue Dec 18, 2021
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