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

import error #125

Open
AAtigre opened this issue Mar 25, 2021 · 6 comments
Open

import error #125

AAtigre opened this issue Mar 25, 2021 · 6 comments

Comments

@AAtigre
Copy link

AAtigre commented Mar 25, 2021

installed pandasgui using pip install on windows 8. tried running the sample code but its showing "cannot import name show from pandasgui" every time. please help.

Capture

@fdion
Copy link
Contributor

fdion commented Mar 25, 2021

That's because you named your own script pandasgui.py, so if you try to run that script, python is importing your script from your script, and there is no show function in your script.

Just don't name your scripts the same as the modules you import and you'll be fine.

@AAtigre
Copy link
Author

AAtigre commented Mar 25, 2021

i did think that could be the problem so i tried running the code under a different name but that didnt work too.

@fdion
Copy link
Contributor

fdion commented Mar 25, 2021

In that case, you will need to provide the information requested when you file a bug report and attach a screenshot. The screenshot you posted can only have one cause: collision of filename and module, causing a circular import, semi gracefully handled by python.

Thanks!

@fdion
Copy link
Contributor

fdion commented Mar 30, 2021

Were you able to create a new screenshot @AAtigre ?

@kungfumas
Copy link

image

@kungfumas
Copy link

installed pandasgui using pip install on windows 10. tried running the sample code but its showing "cannot import name show from pandasgui" every time

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