Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2013 20:46:18 GMT
From:      Volodymyr Kostyrko <arcade@b1t.name>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182332: python packages install packed eggs which makes them unusable for running services
Message-ID:  <201309232046.r8NKkIlS049239@oldred.freebsd.org>
Resent-Message-ID: <201309232050.r8NKo0lT098646@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         182332
>Category:       ports
>Synopsis:       python packages install packed eggs which makes them unusable for running services
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 23 20:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Volodymyr Kostyrko
>Release:        stable/9
>Organization:
none
>Environment:
FreeBSD limbo.b1t.lan 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #10 r255757M: Sat Sep 21 12:39:20 EEST 2013     arcade@limbo.b1t.lan:/usr/obj/usr/src/sys/MINIMAL  amd64
>Description:
Most services and daemon when started have no privileges over local file system while packed egg file should be unpacked somewhere before use.

Anyway egg is a distribution format, while we are using packages with ports we don't need to stick to eggs.

Possible errors would be:

Traceback (most recent call last):
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/trac/web/api.py", line 514, in send_error
    data, 'text/html')
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/trac/web/chrome.py", line 975, in render_template
    template = self.load_template(filename, method=method)
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/trac/web/chrome.py", line 933, in load_template
    self.get_all_templates_dirs(), auto_reload=self.auto_reload,
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/trac/web/chrome.py", line 649, in get_all_templates_dirs
    dirs.extend(provider.get_templates_dirs() or [])
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/trac/web/chrome.py", line 627, in get_templates_dirs
    pkg_resources.resource_filename('trac', 'templates'),
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/pkg_resources.py", line 914, in resource_filename
    self, resource_name
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/pkg_resources.py", line 1393, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/pkg_resources.py", line 1400, in _extract_resource
    manager, os.path.join(zip_path, name)
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/pkg_resources.py", line 1418, in _extract_resource
    self.egg_name, self._parts(zip_path)
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/pkg_resources.py", line 994, in get_cache_path
    self.extraction_error()
  File "build/bdist.freebsd-9.1-RELEASE-p1-amd64/egg/pkg_resources.py", line 960, 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: '/.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.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309232046.r8NKkIlS049239>