Hello Ryan,
Sorry to be replying to this 2-year-old thread, but I have the same error
again. What worked to fix the problem last time (simply re-installing
Genshi) doesn't work now.
Here is what I run and the error I get. I found a directory called
"simple/six", but "pypi.python.org" redirects to "pypi.org". Could that
redirection be why it can't find the package in /simple/six?
There are newer Genshi v0.7.xx, but no pre-built egg files that I could
find.
$ python2.7 ~/trac/python/bin/easy_install
--install-dir=~/trac/python/lib/python2.7/site-packages Genshi
Searching for Genshi
Best match: Genshi 0.7.4
Processing Genshi-0.7.4-py2.7-linux-x86_64.egg
Genshi 0.7.4 is already the active version in easy-install.pth
Using /home/xxxxxx/
example.com/trac/python/lib/python2.7/site-packages/Genshi-0.7.4-py2.7-linux-x86_64.egg
Processing dependencies for Genshi
Searching for six
Reading
https://pypi.python.org/simple/six/ Couldn't find index page for 'six' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading
https://pypi.python.org/simple/ No local packages or download links found for six
error: Could not find suitable distribution for Requirement.parse('six')
Best regards,
Rick
On 2020-11-11 20:15, Rick Macdonald wrote:
You suggested I try to re-install Genshi above. But when I tried using pip
to re-install Genshi, I got an unresolved dynamic library:
~/trac/python/bin/pip --version
/home/user/trac/python/bin/python: error while loading shared libraries:
libssl.so.1.0.0: cannot open shared object file: No such file or directory
However, I found the missing Genshi error mentioned in some notes I wrote 6
years ago. At the time I used easy_install:
python ~/trac/python/bin/easy_install
--install-dir=~/trac/python/lib/python2.7/site-packages Genshi
And this worked, so now the Trac instance runs again. I have no idea how
Genshi got broken, especially since as far as I know the files are all
contained within my user space.
Thank you so much for your time an effort! You really did get me looking in
the right places.
So, someday we may have to upgrade from Trac 1.0.3. In your opinion, do you
think it will work? ;-) I've seen various methods:
python ~/trac/python/bin/easy_install
--install-dir=~/trac/python/lib/python2.7/site-packages/ --upgrade
Trac==1.x.x
or
pip install --upgrade Trac
And then dealing with any obsolete or change plugins.
On Tuesday, November 10, 2020 at 10:53:52 PM UTC-7 Rick Macdonald wrote:
> It turns out our server is a VPS (at DreamHost), but we don't have root
> access.
>
> I have had some success on my test subdomain (also at DreamHost, but
> regular shared hosting, not a VPS).
>
> It turns out there is a system-wide Trac v1.2 installed, and that's what's
> getting run.
>
> ls -l /usr/bin/tracd
> -rwxr-xr-x 1 root root 362 Dec 3 2016 /usr/bin/tracd
>
> $ cat /usr/bin/tracd
> #!/usr/bin/python
> # EASY-INSTALL-ENTRY-SCRIPT: 'Trac==1.2','console_scripts','tracd'
> __requires__ = 'Trac==1.2'
> import re
> import sys
> from pkg_resources import load_entry_point
>
> if __name__ == '__main__':
> sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
> sys.exit(
> load_entry_point('*Trac==1.2*', 'console_scripts', 'tracd')()
> )
>
> I copied the trac directory from our production server and ran various
> update commands (that I'm trying to duplicate) and I successfully got my
> production Trac upgraded and it runs with the above v1.2. I don't know what
> to do on the production VPS server that has no system-wide Trac, just our
> v1.0.3. I'm afraid to mess with it in place.
>
> I'm trying to find out what they updated 10 days ago that might have
> broken it.
>
> On Tuesday, November 10, 2020 at 12:20:03 PM UTC-7 RjOllos wrote:
>
>> On Monday, November 9, 2020 at 10:14:40 PM UTC-8 sailo...@gmail.com
>> wrote:
>>
>>> Looking at the broken installation closer, I found that a couple of
>>> years ago I created a script to start-tracd. I barely remember why though.
>>> I think it had to do with the ISP not having any interest in supporting our
>>> use of Trac. I can't believe this survived for almost 2 years.
>>>
>>> nohup tracd -s --port 8000 --basic-auth="project,/home/user/
>>> example.com/trac/trac.passwd,Example Trac" /home/user/example.com/trac &
>>>
>>> If I run this now (without the "-s") I get this error. Could this be the
>>> problem?
>>>
>>> Traceback (most recent call last):
>>> File "/home/user/trac/python/lib/python2.7/site-packages/tracd", line
>>> 5, in <module>
>>> from pkg_resources import load_entry_point
>>> File "/home/user/
>>> example.com/trac/python/lib/python2.7/site-packages/pkg_resources/__init__.py",
>>> line 2970, in <module>
>>> working_set = WorkingSet._build_master()
>>> File "/home/user/
>>> example.com/trac/python/lib/python2.7/site-packages/pkg_resources/__init__.py",
>>> line 567, in _build_master
>>> ws.require(__requires__)
>>> File "/home/user/
>>> example.com/trac/python/lib/python2.7/site-packages/pkg_resources/__init__.py",
>>> line 876, in require
>>> needed = self.resolve(parse_requirements(requirements))
>>> File "/home/user/
>>> example.com/trac/python/lib/python2.7/site-packages/pkg_resources/__init__.py",
>>> line 761, in resolve
>>> raise DistributionNotFound(req)
>>> pkg_resources.DistributionNotFound: Genshi>=0.6
>>>
>>
>> I can't say how this relates to your other problems, but the issue here
>> is that Genshi is not found. So you probably need to install Genshi into
>> the Python install at "/home/user/trac/python".
>>
>> $ /home/user/trac/python/bin/pip install Genshi
>>
>> might accomplish that.
>>
>> Bigger picture, you might consider moving to another hosting provider if
>> they aren't willing to help you and yet your access is restricted on the
>> system. You could get a virtual private server running Debian or Ubuntu on
>> a hosting provider such as Digital Ocean. Bitnami and TurnKey Linux offer
>> virtual appliances that would speed up the configuration:
>> https://trac.edgewall.org/wiki/CommercialServices#VirtualAppliances
>>
>> Ryan
>>
> --
You received this message because you are subscribed to a topic in the
Google Groups "Trac Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/trac-users/sKX7GU0mwz4/unsubscribe. To unsubscribe from this group and all its topics, send an email to
trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/d88a44ec-4cab-425e-98ed-9a5aa3ed71bfn%40googlegroups.com <
https://groups.google.com/d/msgid/trac-users/d88a44ec-4cab-425e-98ed-9a5aa3ed71bfn%40googlegroups.com?utm_medium=email&utm_source=footer>
.
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/CALCSVuZUHu%2BWcBfVwDQiT5Jzh%3De42sge%2BSMuAtfQtkzN3mgeWg%40mail.gmail.com.