Your message dated Mon, 03 Jul 2017 08:07:55 +1000
with message-id <[email protected]>
and subject line Broken symlinks break collecstatic on deploy
has caused the Debian Bug report #863026,
regarding Broken symlinks break collecstatic on deploy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
863026: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863026
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-djangorestframework
Version: 3.4.0-2
Severity: important

Hello,

when using rest_framework in jessie, collectstatic raises this exception:

Copying 
'/usr/lib/python2.7/dist-packages/rest_framework/static/rest_framework/img/grid.png'
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 354, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 346, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
445, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 168, in handle
    collected = self.collect()
  File 
"/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 107, in collect
    handler(path, prefixed_path, storage)
  File 
"/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 314, in copy_file
    with source_storage.open(path) as source_file:
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 
37, in open
    return self._open(name, mode)
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 
201, in _open
    return File(open(self.path(name), mode))
IOError: [Errno 2] No such file or directory: 
u'/usr/lib/python2.7/dist-packages/rest_framework/static/rest_framework/img/grid.png'

This is because grid.png is a broken symlink:

$ readlink 
/usr/lib/python2.7/dist-packages/rest_framework/static/rest_framework/img/grid.png
../../../../../../../share/pyshared/rest_framework/static/rest_framework/img/grid.png
$ ls 
../../../../../../../share/pyshared/rest_framework/static/rest_framework/img/grid.png
ls: cannot access 
../../../../../../../share/pyshared/rest_framework/static/rest_framework/img/grid.png:
 No such file or directory


Enrico

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-djangorestframework depends on:
ii  python-django  1:1.10.7-1
pn  python:any     <none>

Versions of packages python-djangorestframework recommends:
ii  python-defusedxml       0.4.1-2
ii  python-django-filters   0.13.0-1
ii  python-django-guardian  1.4.4-1
ii  python-markdown         2.6.8-1
ii  python-pil              4.0.0-4
ii  python-yaml             3.12-1

Versions of packages python-djangorestframework suggests:
ii  python-djangorestframework-doc  3.4.0-2

-- no debconf information

--- End Message ---
--- Begin Message ---
As discussed this was fixed already in 3.0.5-0.2.
-- 
Brian May <[email protected]>
https://linuxpenguins.xyz/brian/

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to