On Local woks, but on CPANEL server “ModuleNotFoundError: No module named …”

celinafregoso99

Registered
Nov 22, 2020
4
0
1
USA
cPanel Access Level
Website Owner
I have a flask web-application, and I would like to order the *.pi files into Python packages (folders with init file.py).
On localhost, everything runs well, but on server I've got:

'ModuleNotFoundError: No module named <my_module_name>'
<my_module_name> is the name of the .py file I'd like use like this:

import <name_of_py_file>
Why is does work on localhost, and why does not work on server?
I use CPANEL server.

Thank you in advance:
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,647
2,634
363
cPanel Access Level
Root Administrator
Hey there! It sounds like all the dependencies for Python may not be setup on the machine. As this document says, our support is a bit limited, but can you try working through this to see if that helps get things setup?

 
Thread starter Similar threads Forum Replies Date
A Miscellaneous 1