Ryan J Ollos wrote:
> 
> I'm seeing some errors when trying to switch between development
> environments.  For example, I get an error that seems to be related to the
> 0.12dev environment, when trying to start the 0.11.4 development
> environment (did not use --no-site-packages when setting up these
> virtualenv's),
> 
> (trac0114dev)rjol...@pc-rjollos-ubuntu-server-9:~/tracdev/trac0114dev$
> tracd -r --port 8000 tracdev
> Traceback (most recent call last):
>   File "/usr/local/bin/tracd", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File
> "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 2607, in <module>    
>   File
> "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 565, in resolve
>     error that occurred. Usually this will be a ``DistributionNotFound``
> or
> pkg_resources.DistributionNotFound: Trac==0.12dev-r9001
> 

I can repeatedly reproduce this error when starting tracd before running
`source bin/activate`.  You can see from the console input/output that I had
switched to the virtualenv, and yet it still seemed to be calling
`/usr/local/bin/tracd` rather than `<PathToVirtualEnv>\bin\tracd`.  I'm not
sure what was going on that evening, but it has been behaving well lately.



Tim Hatch wrote:
> 
> The problem is that you're running tracd, which is shared systemwide.
> For development, the equivalent command is trac/web/standalone.py, which
> should work with whatever version is in your path/virtualenv.
> 

That is interesting, and seems to work.  

I'm not sure what you mean by tracd being shared system-wide.  I have
installed Trac in a virtualenv, there is a tracd located at
`<PathToVirtualEnv>/bin/tracd`, and `which tracd` points to that instance of
tracd once I have run `source bin/activate`.

If that really is the preferred way of starting the Trac for development, it
seems like it should be documented here [1].

There is no documentation in the file `standalone.py`, and a search of the
wiki [2] doesn't reveal much useful information, so I have to ask ... what
is the different between running `standalone.py` and `tracd`?

[1]
http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup#Startingtracindevelopmentmode
[2] http://trac.edgewall.org/search?q=standalone.py&noquickjump=1&wiki=on
-- 
View this message in context: 
http://old.nabble.com/Questions-about-setting-up-Trac-development-environment-tp27011625p27220126.html
Sent from the Trac Dev mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.


Reply via email to