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

Error when compiling in windows #34

Closed
Neilaj opened this issue Feb 16, 2017 · 3 comments
Closed

Error when compiling in windows #34

Neilaj opened this issue Feb 16, 2017 · 3 comments

Comments

@Neilaj
Copy link

Neilaj commented Feb 16, 2017

Hello when i run my program from the prompt it works fine but when I compile and run it I get the error below. Can you shed some light on this? Thanks

Say something!
Exception in Tkinter callback
Traceback (most recent call last):
File "tkinter_init_.py", line 1550, in call
File "pygui\main.py", line 58, in combined_func
File "pygui\main.py", line 43, in main
File "pygui\listen.py", line 12, in tts
File "site-packages\pyvona.py", line 150, in speak
TypeError: Unrecognized argument (type SpooledTemporaryFile)

@garethellis0
Copy link
Collaborator

Umm, can you describe exactly what you mean by "from the prompt" vs. "compile and run it"? You don't "compile" python.

@Neilaj
Copy link
Author

Neilaj commented Feb 17, 2017

When i run from cmd " python main.py" it works perfectly. But when i create an exe with "pyinstaller --onefile main.py " I get the main.exe and when i try to run it i get the error above. Thanks for this great module too.

@garethellis0
Copy link
Collaborator

It looks to me like pyinstaller is not properly bundling TCL into the "compiled" package. This is a known issue: pyinstaller/pyinstaller#1957. People seem to report that downgrading to pyinstaller 3.1 fixed the issue for them, so I would try that and see how it goes. I'm going to close this issue, but feel free to comment on it again if you've got more questions.

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