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

ModuleNotFoundError when I run the .exe #39

Closed
HaaZee opened this issue Dec 17, 2018 · 5 comments
Closed

ModuleNotFoundError when I run the .exe #39

HaaZee opened this issue Dec 17, 2018 · 5 comments

Comments

@HaaZee
Copy link

HaaZee commented Dec 17, 2018

In my program I use a module called pyfiglet. When I run my program from the .py it runs fine and well. As soon as I use your program to make it an exe it compiles. Then I try and run the .exe and get this error -
error

Also I get this error in your programs terminal -
other error

Not sure how to get around this as I really need my file to be an exe.

Thanks

EDIT: This only apears to happen when I do - from pyfiglet import Figlet

@HaaZee HaaZee changed the title ModuleNotFoundError ModuleNotFoundError when I run the .exe Dec 17, 2018
@brentvollebregt
Copy link
Owner

Did you read the article I clearly linked in the README under "Issues Using the Tool"?

If you go to this and do a simple Ctrl+F for ModuleNotFoundError, you will be immediately shown:

ModuleNotFoundError: No module named 'x'
Make sure the module is installed and then add it to --hidden-import in the advanced tab. If you need to add more than one, separate them by a comma (,).
For example, I have seen this occur with pandas._libs.tslib many of times before so add that to the input by --hidden-import. If you need to add more missing modules, you can use pandas._libs.tslib, my_missing_module.

Also I have had the ModuleNotFoundError: No module named 'win32com' quite a few times and cannot figure out what it is, you have any idea?

@HaaZee
Copy link
Author

HaaZee commented Dec 18, 2018

I tried the --hidden-import thing and I didn't manage to fix it. I found a way around though doing it manually.
Also I regards to the win32ocm question I tried installing that module but that didn't seem to do anything, just brought up another error. I believe it's related to having a module not working when you try to compile your .py

@brentvollebregt
Copy link
Owner

What was your work around?

@HaaZee
Copy link
Author

HaaZee commented Dec 18, 2018

I just hard coded the thing I wanted to bring out. It was the name of my game in a large text format.

This basically -
figlet

Therefore I didn't need to use the module that was causing issues.

@brentvollebregt
Copy link
Owner

This is an issue with a third party module so I will close this issue.

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