ImportError: No module named manalytics.M_Analytics.Analytics_Manager.Analytics_Process.ReadUnread_AP.ReadUnread_AP
Im using python3.6 in local and python2.7 in server. Im trying to import the a module using importlib.import_module()
function. importlib.import_module()
function is called in 'Analytics_Process.py'
In local machine its directory structure of my project is
M_Analytics->
__init__.py
Analytics_Manager
->
__init__.py
Analytics_Manager.py
Analytics_Process
->
__init__.py
Analytics_Process.py
ReadUnread_AP
->
__init__.py
ReadUnread_AP.py
and in local it is working fine with
importlib.import_module('M_Analytics.Analytics_Manager.Analytics_Process.ReadUnread_AP.ReadUnread_AP')
manalytics
__init__.py ,
M_Analytics
->
__init__.py,
Analytics_Manager
->
__init__.py,
Analytics_Manager.py
Analytics_Process
->
__init__.py,
Analytics_Process.py
ReadUnread_AP
->
__init__.py
ReadUnread_AP.py
and in server it is giving error for importlib.import_module('manalytics.M_Analytics.Analytics_Manager.Analytics_Process.ReadUnread_AP.ReadUnread_AP')
directory path in server:
/root/manalytics/M_Analytics/Analytics_Manager/Analytics_Process/ReadUnread_AP/ReadUnread_AP.py
Error
ImportError: No module named manalytics.M_Analytics.Analytics_Manager.Analytics_Process.ReadUnread_AP.ReadUnread_AP
Comments
Post a Comment