Hello, A few questions about settings up the Trac development environment.
1. When running `python setup.py develop` for Genshi and Trac as described in [1], I've found that I need to run the command as sudo, or else I get the error [3]. Am I doing something wrong, or should the instructions be updated? 2. I've followed the directions as described in the docs [2], and edited /etc/apache2/sites-enabled/trac to (I think) put the python egg cache within the ~/tracdev directory, where tracdev contains: > ls tracdev bin genshi-trunk lib tracdeveloperplugin genshi-advanced-i18n include test trac-trunk > cat /etc/apache2/sites-enabled/trac <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/lib/trac PythonOption TracUriRoot /trac SetEnv PYTHON_EGG_CACHE /home/rjollos/tracdev </Location> However, I still get the permission denied error [4] because the python egg cache is being written into my home directory, which I presume trac or apache can't access. If I don't install the tracdeveloper plugin, or any other plugin, everything works fine. System details: Ubuntu 9.10 x64 Trac trunk (012.dev), r9001 Genshi trunk, r1092 Thanks for your help! --- [1] http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup [2] http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup#Settinguptheenvironment [3] > ~/tracdev/genshi-trunk$ python setup.py develop running develop Checking .pth file support in /usr/local/lib/python2.6/dist-packages/ error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/test-easy-install-2513.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.6/dist-packages/ Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable. For information on other options, you may wish to consult the documentation at: http://peak.telecommunity.com/EasyInstall.html Please make the appropriate changes for your system and try again. [4] Traceback (most recent call last): File "/home/rjollos/tracdev/trac-trunk/trac/web/api.py", line 399, in send_error 'text/html') File "/home/rjollos/tracdev/trac-trunk/trac/web/chrome.py", line 818, in render_template template = self.load_template(filename, method=method) File "/home/rjollos/tracdev/trac-trunk/trac/web/chrome.py", line 781, in load_template self.get_all_templates_dirs(), auto_reload=self.auto_reload, File "/home/rjollos/tracdev/trac-trunk/trac/web/chrome.py", line 494, in get_all_templates_dirs dirs += provider.get_templates_dirs() File "build/bdist.linux-x86_64/egg/tracdeveloper/main.py", line 38, in get_templates_dirs return [resource_filename(__name__, 'templates')] File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 882, in resource_filename self, resource_name File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1352, in get_resource_filename return self._extract_resource(manager, zip_path) File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1359, in _extract_resource manager, os.path.join(zip_path, name) File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1359, in _extract_resource manager, os.path.join(zip_path, name) File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1373, in _extract_resource self.egg_name, self._parts(zip_path) File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 962, in get_cache_path self.extraction_error() File "/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 928, in extraction_error raise err ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/home/rjollos/.python-eggs/TracDeveloper-0.2-py2.6.egg-tmp' The Python egg cache directory is currently set to: /home/rjollos/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. -- View this message in context: http://old.nabble.com/Questions-about-setting-up-Trac-development-environment-tp27011625p27011625.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.
