django app with passneger wsgi problem

12 views
Skip to first unread message

Bassam Ramadan

unread,
Apr 8, 2017, 10:47:20 AM4/8/17
to Phusion Passenger Discussions
i have a domain running throw mochahost : revaluesoft.com
im using their python app installer for django but im getting the following error when im trying to open my domain

Traceback (most recent call last):
  File "/opt/passenger/helper-scripts/wsgi-loader.py", line 320, in <module>
    app_module = load_app()
  File "/opt/passenger/helper-scripts/wsgi-loader.py", line 61, in load_app
    return imp.load_source('passenger_wsgi', startup_file)
  File "/home8/revalue/virtualenv/djangoproject_djangoproject/3.5/lib64/python3.5/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "passenger_wsgi.py", line 8, in <module>
    wsgi = imp.load_source('wsgi', '')
  File "/home8/revalue/virtualenv/djangoproject_djangoproject/3.5/lib64/python3.5/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 658, in exec_module
  File "<frozen importlib._bootstrap_external>", line 763, in get_code
  File "/home8/revalue/virtualenv/djangoproject_djangoproject/3.5/lib64/python3.5/imp.py", line 158, in get_data
    return super().get_data(path)
  File "<frozen importlib._bootstrap_external>", line 815, in get_data
FileNotFoundError: [Errno 2] No such file or directory: ''

Daniel Knoppel

unread,
Apr 10, 2017, 3:33:37 AM4/10/17
to Phusion Passenger Discussions
You should post your configuration. It kind of looks like you didn't create this file:

https://www.phusionpassenger.com/library/deploy/wsgi_spec.html

- Daniel
Reply all
Reply to author
Forward
0 new messages