LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 04-08-2014, 04:45 AM   #1
Roaderrr
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
No module found (Apache2, wsgi, python)


Hello. I'm having bad time dealing with this error.

Log from apache:

[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] mod_wsgi (pid=6964): Target WSGI script '/var/www/server/run.wsgi' cannot be loaded as Python module., referer: http://localhost/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] mod_wsgi (pid=6964): Exception occurred processing WSGI script '/var/www/server/run.wsgi'., referer: http://localhost/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] Traceback (most recent call last):, referer: http://localhost/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] File "/var/www/server/run.wsgi", line 4, in <module>, referer: http://localhost/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] from abcserver import app as application, referer: http://localhost/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] File "/var/www/server/abcserver/__init__.py", line 17, in <module>, referer: http://localhost/pb5/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] import abcserver.modules.vi, referer: http://localhost/a/
[Tue Apr 08 11:31:54 2014] [error] [client 127.0.0.1] ImportError: No module named modules.vi, referer: http://localhost/a/

I use python and wsgi and have no clue how to set things right.
If any other file needed please say.

__init__.py:
#!/usr/bin/env python

from flask import Flask, send_file
from flask_mail import Mail

app = Flask(__name__)

app.config.from_object('abcserver.config.dev')

mail = Mail(app)

import abcserver.modules.vi
#this is error line

run.wsgi:
import sys
sys.path.insert(0, '/var/www/server')

from abcserver import app as application
 
Old 04-08-2014, 07:14 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2, wsgi, modules Roaderrr Linux - Server 0 04-09-2014 11:44 AM
[SOLVED] Screenlets on Xfce (GConf python module not found) 0zMe Slackware 11 03-30-2011 10:45 PM
Python YUM Module not found von_vea Linux - General 2 07-28-2009 08:42 PM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 03:44 AM
BloGTK doesn't work - python gtkhtml2 module not found vharishankar Debian 2 11-21-2006 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration