ModuleNotFoundError with PyInstaller

Diniguez
Here to help

ModuleNotFoundError with PyInstaller

Hello everyone!

 

I am trying to create a console based app with PyInstaller.

In my project, I am using the Meraki library just with:

 

import meraki

 

I can run my project from the py file, but when I create an exe file with PyInstaller, I get this error:

ModuleNotFoundError: No module named 'meraki.__init__.rest_session'

 

I have tried creating a different venv and installing the necessary packages, but the error persists.

I have tried the following commands to create the exe with no luck:

pyinstaller Menu.py 

pyinstaller Menu.py --hidden-import meraki.__init__.rest_session

 

Could you please advise what should I try next?

1 Reply 1
Vitorio
Comes here often

Hi,

 

I had this same problem and fixed the issue by updating the meraki library:

 

pip install meraki --upgrade

 

After the update the error did not appear anymore.

 

 

Get notified when there are additional replies to this discussion.