adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.19k stars 236 forks source link

import error #125

Open AAtigre opened 3 years ago

AAtigre commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

fdion commented 3 years ago

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 commented 3 years ago

Were you able to create a new screenshot @AAtigre ?

kungfumas commented 2 years ago

image

kungfumas commented 2 years ago

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