[prev in list] [next in list] [prev in thread] [next in thread]
List: trac
Subject: [Trac] Re: "ImportError: No module named trac.web.main" on fresh install with WSGI
From: RjOllos <rjollos () gmail ! com>
Date: 2017-09-21 23:51:22
Message-ID: a1228dd5-ba31-4d00-81a6-3d11219bcece () googlegroups ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Monday, September 18, 2017 at 1:49:16 PM UTC-7, Steve Weiss wrote:
>
> I am getting this same error. I'm new to trac and python, the "hello
> world" test script works fine. When I type "python" and get a prompt, I
> typed "import trac" and was returned to a prompt. There were no errors, I
> assume this means it worked? I've been searching around and several people
> with this problem found that it was a permission issue, but I have no idea
> on which files or directories. The apache user owns the directory where the
> trac projects are located (/usr/local/data/trac).
>
Try:
$ sudo -u www-data python
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
> > > import trac
If that fails, you may need to set python-home in WSGIDaemonProcess, or
using WSGIPythonHome:
http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIDaemonProcess.html
http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIPythonHome.html
- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac \
Users" group. To unsubscribe from this group and stop receiving emails from it, send \
an email to trac-users+unsubscribe@googlegroups.com. To post to this group, send \
email to trac-users@googlegroups.com. Visit this group at \
https://groups.google.com/group/trac-users. For more options, visit \
https://groups.google.com/d/optout.
[Attachment #5 (text/html)]
<div dir="ltr"><br><br>On Monday, September 18, 2017 at 1:49:16 PM UTC-7, Steve Weiss \
wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: \
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">I am getting \
this same error. I'm new to trac and python, the "hello world" test \
script works fine. When I type "python" and get a prompt, I typed \
"import trac" and was returned to a prompt. There were no errors, I assume \
this means it worked? I've been searching around and several people with this \
problem found that it was a permission issue, but I have no idea on which files or \
directories. The apache user owns the directory where the trac projects are located \
(/usr/local/data/trac).<br></div></blockquote><div><br></div><div>Try:</div><div>$ \
sudo -u www-data python<br>Python 2.7.9 (default, Jun 29 2016, 13:08:31)<br>[GCC \
4.9.2] on linux2<br>Type "help", "copyright", "credits" \
or "license" for more information.<br>>>> import \
trac</div><div><br></div><div>If that fails, you may need to set python-home in \
WSGIDaemonProcess, or using \
WSGIPythonHome:</div><div>http://modwsgi.readthedocs.io/en/develop/configuration-direc \
tives/WSGIDaemonProcess.html</div><div>http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIPythonHome.html</div><div><br></div><div>- \
Ryan<br></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "Trac \
Users" group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To post to this group, send email to <a \
href="mailto:trac-users@googlegroups.com">trac-users@googlegroups.com</a>.<br /> \
Visit this group at <a \
href="https://groups.google.com/group/trac-users">https://groups.google.com/group/trac-users</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic