-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
ModuleNotFoundError: import of fnmatch halted; None in sys.modules #171
Comments
I'm running into this as well. Did you figure out a solution? |
No, I didn't. I set the project aside for a bit. What's your environment (os, python etc)? |
OS: macOS Mojave 10.14.2 |
I found this thread googling the same error. I believe my issue was related to some missing under scores. I had defined a class class table(base): adding the underscores to __table_args -> __table_args__ fixed my issue. |
@optroodt @sryza Can you reproduce @lsatterfield's fix? |
I seem to have made a mistake in my earlier post. I didnt realize it would bold if i had leading and trailing underscores. Should be __table_args -> __table_args__ . -- Edited Above for accuracy, thanks timofurrer |
You can put the code in backticks. See https://help.github.com/en/articles/creating-and-highlighting-code-blocks (you can edit your post above) 🎉 |
If I understand correctly, I don't think @lsatterfield's fix applies in my case. All I'm doing is
where con is a connection from a snowflake SQLAlchemy engine. |
I also don't think @lsatterfield 's fix is related. I'm not configuring anything in SQLAlchemy, just running a plain query. I can say that it works without problems under Python 3.6.5. |
@optroodt
|
I'm experiencing the same issue, running into this when I do |
@peterolive thanks! This solved my issue with this error |
Probable root cause in the Snowflake's Python connector: |
I'm trying to use records with Snowflake (dwh solution in the cloud), and I do get results but I always get the ModuleNotFoundError error.
It works without any problems when I use just SqlAlchemy using snowflake-sqlalchemy, so that makes me think it's something records specific. I really like the product and, although my resources are limited, I'm willing to assist or provide more information if requested.
I'm running Python 3.7.2, installed through homebrew, in a virtualenv on MacOS 10.14.3.
Installed packages:
Code to reproduce (credentials and account are obviously not the ones I use):
Stacktrace
Thanks!
The text was updated successfully, but these errors were encountered: