still do not have a tracd or trac-admin either.  Not sure what is going on.
Aggravated that I did this hot, without a good backup but right now I can't
even get it to roll back to 1.2.1 and start, which is just pure
frustration.

Matt

On Wed, Apr 12, 2017 at 9:03 PM, Matthew Lavigne <[email protected]>
wrote:

> actually running as apache (CentOS)
>
> used pip to dump everything.
>
> redid the wheel bit
>
> Post install this is what ls -lthr looked like:
>
> drwx------   5 root   root   4.0K Apr 12 20:17 wheel
> drwxr-xr-x   2 root   root   4.0K Apr 12 20:17 wheel-0.29.0.dist-info
> -rw-r--r--   1 apache apache   60 Apr 12 20:54 easy-install.pth
> drwx------   5 root   root     69 Apr 12 20:55 tracopt
> drwx------  18 root   root   4.0K Apr 12 20:55 trac
> drwx------   2 root   root    146 Apr 12 20:55 Trac-1.2.2.dev0.dist-info
>
>
> (I had adjusted 755/644 on the .dist-info for wheel before I restarted).
>
> So I did this on trac and tracopt:
>
> [root@ithelp site-packages]# chmod -R 755 trac tracopt
>
> giving me this:
>
> drwxr-xr-x   5 root   root     69 Apr 12 20:55 tracopt
> drwxr-xr-x  18 root   root   4.0K Apr 12 20:55 trac
> drwxr-xr-x   2 root   root    146 Apr 12 20:55 Trac-1.2.2.dev0.dist-info
>
>
> now, if I run python as root and import trac it is fine, if I run it as a
> regular user then I get this:
>
> [mattlav@ithelp ~]$ python
> Python 2.7.5 (default, Nov  6 2016, 00:28:07)
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import trac
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named trac
>
>
> That smacks of permissions, I just can't figure out where
>
> Matthew
>
>
>
>
> On Wed, Apr 12, 2017 at 8:49 PM, Ryan Ollos <[email protected]> wrote:
>
>>
>>
>> On Wed, Apr 12, 2017 at 5:30 PM Matthew Lavigne <
>> [email protected]> wrote:
>>
>>> import trac does not give me the same error.
>>>
>>>
>>> [root@ithelp .egg-cache]# pip uninstall trac
>>> Cannot uninstall requirement trac, not installed
>>> [root@ithelp .egg-cache]# pip install -U pip setuptools wheel
>>> Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages
>>> Requirement already up-to-date: setuptools in
>>> /usr/lib/python2.7/site-packages
>>> Collecting wheel
>>>   Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
>>>     100% |████████████████████████████████| 71kB 4.1MB/s
>>> Requirement already up-to-date: six>=1.6.0 in
>>> /usr/lib/python2.7/site-packages (from setuptools)
>>> Requirement already up-to-date: appdirs>=1.4.0 in
>>> /usr/lib/python2.7/site-packages (from setuptools)
>>> Requirement already up-to-date: packaging>=16.8 in
>>> /usr/lib/python2.7/site-packages (from setuptools)
>>> Requirement already up-to-date: pyparsing in
>>> /usr/lib/python2.7/site-packages (from packaging>=16.8->setuptools)
>>> Installing collected packages: wheel
>>> Successfully installed wheel-0.29.0
>>>
>>>
>>> Good so far:
>>>
>>>
>>> [root@ithelp ~]# pip wheel --no-deps --wheel-dir wheels  svn+
>>> https://svn.edgewall.org/repos/trac/branches/1.2-stable
>>> Collecting svn+https://svn.edgewall.org/repos/trac/branches/1.2-stable
>>>   Checking out https://svn.edgewall.org/repos/trac/branches/1.2-stable
>>> to /tmp/pip-2yOxia-build
>>> Building wheels for collected packages: Trac
>>>   Running setup.py bdist_wheel for Trac ... done
>>>   Stored in directory: /root/wheels
>>> Successfully built Trac
>>> [root@ithelp ~]# wheel install wheels/Trac-1.2.2.dev0-py2-none-any.whl
>>>
>>> No output returned from that.
>>>
>>>
>>> [root@ithelp ~]# ls -lhtr /usr/lib/python2.7/site-packages/
>>> total 2.4M
>>> <snip>
>>> drwx------   5 root   root   4.0K Apr 12 20:17 wheel
>>> drwx------   2 root   root   4.0K Apr 12 20:17 wheel-0.29.0.dist-info
>>> drwx------   5 root   root     69 Apr 12 20:19 tracopt
>>> drwx------  18 root   root   4.0K Apr 12 20:19 trac
>>> drwx------   2 root   root    146 Apr 12 20:19 Trac-1.2.2.dev0.dist-info
>>>
>>> [root@ithelp ~]# python
>>> Python 2.7.5 (default, Nov  6 2016, 00:28:07)
>>> [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import trac
>>> >>>
>>>
>>>
>>> I have no trac-admin command nor do I have tracd.
>>>
>>
>> Your webserver is probably running as a user such as "www-data", not
>> root, depending on which Linux distribution you are running. You probably
>> need 755 permissions for *.dist-info and 644 for the files inside the
>> dist-info. You probably need the same for trac and tracopt.
>>
>> - 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/to
>> pic/trac-users/ICHC862VZ30/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/trac-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to