#2834: PYTHON_EGG_CACHE not set on FreeBSD
------------------------------------------+----------------------------
 Reporter:  kendokan                      |      Owner:
     Type:  bug                           |     Status:  new
 Priority:  minor                         |  Milestone:  needs verified
Component:  Web UI                        |    Version:  1.3.12
 Keywords:  web-ui plugins label freebsd  |
------------------------------------------+----------------------------
 Plugins fail to load in web-ui on FreeBSD package "deluge-1.3.12,1" due to
 an inability to write to the default Python egg cache directory. This
 directory does not exist in the default installation, nor is there a
 documented dependency. Most visibly for me, this breaks labels in web-ui;
 you can't create them or assign torrents to them.

 Creating a directory (I used "/usr/local/etc/deluge/.python-eggs") and
 adding export PYTHON_EGG_CACHE="/usr/local/etc/deluge/.python-eggs" to
 /usr/local/etc/rc.d/deluge_web resolved the issue.

 {{{
 [ERROR   ] 10:23:49 pluginmanagerbase:146 Unable to instantiate plugin!
 [ERROR   ] 10:23:49 pluginmanagerbase:147 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: '/.python-eggs'

 The Python egg cache directory is currently set to:

   /.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.
 Traceback (most recent call last):
   File "/usr/local/lib/python2.7/site-
 packages/deluge/pluginmanagerbase.py", line 144, in enable_plugin
     instance = cls(plugin_name.replace("-", "_"))
   File "/usr/local/lib/python2.7/site-
 packages/deluge/plugins/Extractor-0.4-py2.7.egg/extractor/__init__.py",
 line 56, in __init__
     from webui import WebUI as _plugin_cls
   File "/usr/local/lib/python2.7/site-
 packages/deluge/plugins/Extractor-0.4-py2.7.egg/extractor/webui.py", line
 47, in <module>
   File "/usr/local/lib/python2.7/site-
 packages/deluge/plugins/Extractor-0.4-py2.7.egg/extractor/webui.py", line
 54, in WebUI
   File "/usr/local/lib/python2.7/site-
 packages/deluge/plugins/Extractor-0.4-py2.7.egg/extractor/common.py", line
 38, in get_resource
     return pkg_resources.resource_filename("extractor",
 os.path.join("data", filename))
   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 1150, in resource_filename
     self, resource_name
   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 1863, in get_resource_filename
     return self._extract_resource(manager, zip_path)
   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 1892, in _extract_resource
     self.egg_name, self._parts(zip_path)
   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 1217, in get_cache_path
     self.extraction_error()
   File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 1197, in extraction_error
     raise err
 ExtractionError: Can't extract file(s) to egg cache
 }}}

--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2834>
Deluge <http://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" 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/deluge-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to