Yup, this is a Python 2.7 environment. I tried the virtual environment and 
it worked right out of the box. Thanks for the help!

On Wednesday, October 30, 2019 at 10:38:02 PM UTC-4, RjOllos wrote:
>
> On Wednesday, October 30, 2019 at 9:55:44 AM UTC-7, Andrew wrote:
>>
>> Hi All,
>>
>> I'm new to Trac and I've been trying to set up an instance on my local VM 
>> to test it out. I'm having some issues getting it running and hopefully the 
>> community can help me figure out what's wrong.
>>
>> Here's the steps I took, following the steps in 
>> https://trac.edgewall.org/wiki/TracInstall
>>
>> I installed Trac v1.4 on my CentOS7 VM using
>> pip install Trac
>>
>> This installed correctly (as far as I know) on my VM. I checked the md5 
>> hash of the .whl file that pip downloaded and it matches the one on the 
>> TracInstall page for the file.
>>
>> I then created my project directory and initialized it with
>> trac-admin /trac/test initenv
>>
>> I called the project test and used the default sqlite db.
>>
>> I then wanted to test things out to make sure everything was running 
>> correctly and ran
>> tracd --port=8000 /trac/test
>> to try to run the standalone server. I loaded up localhost:8000/test in 
>> my browser and was greeted with 
>>
>>> Configuration Error
>>> Cannot find an implementation of the IRequestHandler interface named 
>>> WikiModule. Please check that the Component is enabled or update option 
>>> [trac] default_handler in trac.ini
>>>
>>
>>
>> Thinking this might be a file permissions or selinux issue, I ran
>> chmod -R 755 /usr/lib/python2.7/site-packages/trac
>> setenforce 0
>> But still no luck. 
>>
>> I changed the log_level to DEBUG and checked log/trac.log but it didn't 
>> give much help
>>
>>> Trac[main] WARNING: [127.0.0.1] HTTPInternalServerError: 500 
>>> Configuration Error (Cannot find an implementation of the 
>>> <code>IRequestHandler</code> interface named <code>WikiModule</code>. 
>>> Please check that the Component is enabled or update option <code>[trac] 
>>> default_handler</code> in trac.ini. ), <RequestWithSession "GET '/'">, 
>>> referrer None
>>>
>>
>> My configuration is the default one that comes packaged with Trac. Is 
>> there something I'm missing in my trac.ini file? Do I need to enable the 
>> WikiModule somehow? I checked in the trac library and there is a WikiModule 
>> class in trac/wiki/web_ui.py. Is there some environment variable I'm 
>> missing?
>>
>> Any help would be greatly appreciated. Thanks!
>>
>
> Python 2.7, right?
>
> It should be very simple and straightforward, and seems like you did the 
> right steps. Did you run "pip" as sudo?
>
> You might want to make a virtualenv and install into the virtualenv:
>
> $ python -m venv venv
>
> makes a virtualenv named "venv" in the current directory. You might want 
> to put it somewhere under /usr/local.
>
> Then, activate it:
>
> $ source venv/bin/activate 
>
> Finally, install Trac into the virtualenv:
>
> $ pip install Trac
>
> It can be a little more complicated to work with a virtualenv when you try 
> to activate the Subversion bindings and configure Apache, but the nice 
> thing is that you can cleanup by just deleting the "venv" directory.
>
> - 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/0e223077-34ac-46cb-a74d-2d94f3953f9b%40googlegroups.com.

Reply via email to