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

[Question] Import error #6744

Open
3 of 10 tasks
userbisoogo opened this issue Apr 13, 2024 · 3 comments
Open
3 of 10 tasks

[Question] Import error #6744

userbisoogo opened this issue Apr 13, 2024 · 3 comments
Labels
Platform / Config Problem Specific to an OS or individual setup

Comments

@userbisoogo
Copy link

userbisoogo commented Apr 13, 2024

Type of Issue (Enhancement, Error, Bug, Question)

Error


Operating System

macOs Sonoma 14.1

PySimpleGUI Port (tkinter, Qt, Wx, Web)

tkinter


Versions

Version information can be obtained by calling sg.main_get_debug_data()
Or you can print each version shown in ()

Python version (sg.sys.version)

PySimpleGUI Version (sg.__version__)

5.0

GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)

tkinter


Your Experience In Months or Years (optional)

3 months
Years Python programming experience

Years Programming experience overall
30
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
yes
Anything else you think would be helpful?


Troubleshooting

These items may solve your problem. Please check those you've done by changing - [ ] to - [X]

  • Searched main docs for your problem PySimpleGUI Documenation
  • Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
  • None of your GUI code was generated by an AI algorithm like GPT
  • If not tkinter - looked for Demo Programs for specific port
  • For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
  • Run your program outside of your debugger (from a command line)
  • Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.com
  • Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
  • Tried running the Development Build. Your problem may have already been fixed but not released. Check Home Window for release notes and upgrading capability
  • For licensing questions please email license@PySimpleGUI.com

Detailed Description

Code To Duplicate

A short program that isolates and demonstrates the problem (Do not paste your massive program, but instead 10-20 lines that clearly show the problem)

This pre-formatted code block is all set for you to paste in your bit of code:

# Paste your code here

Screenshot, Sketch, or Drawing


Watcha Makin?

If you care to share something about your project, it would be awesome to hear what you're building.

@userbisoogo
Copy link
Author

userbisoogo commented Apr 13, 2024

import os
os.environ['PySimpleGui_license'] = '1712995095'
import PySimpleGUI as sg

gives the error:

ModuleNotFoundError: No module named 'PySimpleGUI'
on VS Code Editor and PyCharm.

@PySimpleGUI
Copy link
Owner

Please send licensing questions via email to license@PySimpleGUI.com

It appears you're trying to specify the key as if it were a Distribution key. If you're trying to use your normal key ( a Developer Key), then that needs to be input into the Home Window. You'll find more info in the documentation:
https://docs.pysimplegui.com/en/latest/documentation/installing_licensing/license_keys/

And in the FAQ:
https://docs.pysimplegui.com/en/latest/FAQ/#how-do-i-install-my-license-keys-into-the-pysimplegui-software

This sounds more like an install problem, not a license key problem. Did you pip install within PyCharm/VS Code? Have you pip installed other modules successfully? Does your program run outside of an IDE from the command line?

@PySimpleGUI PySimpleGUI changed the title [ Enhancement/Bug/Question] NOTE - you can also call sg.main() or sg.main_open_github_issue() to post an issue [Question] Import error Apr 13, 2024
@pysimpleissue pysimpleissue bot removed Fill issue form or you will be REJECTED You MUST use the supplied template to submit a request. PySimpleGUI Issues Bot Has Detected an Error labels Apr 13, 2024
@pysimpleissue pysimpleissue bot reopened this Apr 13, 2024
Repository owner deleted a comment from pysimpleissue bot Apr 13, 2024
Repository owner deleted a comment from pysimpleissue bot Apr 13, 2024
Repository owner deleted a comment from pysimpleissue bot Apr 13, 2024
Repository owner deleted a comment from pysimpleissue bot Apr 13, 2024
@PySimpleGUI
Copy link
Owner

How did you install PySimpleGUI? You should be able to import the module without getting a "not found" error regardless of licensing or PySimpleGUI version. Sounds like you may be running a virtual environment in your IDEs and need to install from within VSCode and PyCharm.

@PySimpleGUI PySimpleGUI added the Platform / Config Problem Specific to an OS or individual setup label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform / Config Problem Specific to an OS or individual setup
Projects
None yet
Development

No branches or pull requests

2 participants