Hi,

Just wondering how does web2py determine what modules to load from the
modules directory?

For some reason I just added payoneer_api.py in the modules directory but
am getting the following error message. (Restarted the server still no
difference)

z_api.py:
# coding: utf8
from reports_api import ReportEngine
from adviewer_api import AdViewerEngine
from distributor_api import DistributorEngine
from payoneer_api import PayoneerAPI

report_engine = ReportEngine(db, T)
adviewer_engine = AdViewerEngine(db, T, mail)
distributor_engine = DistributorEngine(db)

Traceback (most recent call last):
  File 
"/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/restricted.py",
line 204, in restricted
    exec ccode in environment
  File 
"/home/bruce/Development/bossteam_dev/projects/yaw_dev/applications/welcome/models/z_api.py"
<http://127.0.0.1:8000/admin/edit/welcome/models/z_api.py>, line 5, in
<module>
    from payoneer_api import PayoneerAPI
  File 
"/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/custom_import.py",
line 293, in __call__
    fromlist, level)
  File 
"/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/custom_import.py",
line 78, in __call__
    level)
ImportError: No module named payoneer_api


All the other modules are being seen with out a problem.

welcome
  - modules
    - __init__.py
    - adviewer_api.py
    - distributor_api.py
    - payoneer_api.py
    - reports_api.py

-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

Reply via email to