Hi there,

Il 20/08/2012 09:11, Raphael Hertzog ha scritto:
> Hi,
> 
> On Sun, 19 Aug 2012, Riccardo Magliocchetti wrote:
>> upgrading django to 1.4.1 does not work here:
> 
> Something weird is going on then. I have not seen this problem.
> 
>> Preparing to replace python-django 1.4-1 (using 
>> .../python-django_1.4.1-1_all.deb) ...
>> Unpacking replacement python-django ...
>> dpkg: error processing /var/cache/apt/archives/python-django_1.4.1-1_all.deb 
>> (--unpack):
>>   unable to open '/usr/share/pyshared/django/middleware/csrf.py.dpkg-new': 
>> No such file or directory
> 
> Please show me the output of thoses commands:
> $ find /usr/share/pyshared/django -type l | xargs ls -al

lrwxrwxrwx 1 root root 48 ago 19 18:48 
/usr/share/pyshared/django/contrib/admin/static/admin/js/jquery.js -> 
../../../../../../../javascript/jquery/jquery.js
lrwxrwxrwx 1 root root 52 ago 19 18:48 
/usr/share/pyshared/django/contrib/admin/static/admin/js/jquery.min.js -> 
../../../../../../../javascript/jquery/jquery.min.js


> $ find /usr/lib/python2.6/dist-packages/ -type l | (while read file; do test 
> -d $file&&  echo "$file ->  $(readlink $file)" ; done)

/usr/lib/python2.6/dist-packages/pybootchartgui ->  
../site-packages/pybootchartgui

> $ find /usr/lib/python2.7/dist-packages/ -type l | (while read file; do test 
> -d $file&&  echo "$file ->  $(readlink $file)" ; done)

/usr/lib/python2.7/dist-packages/django ->  ../../../share/pyshared/django/
 
> See
> http://raphaelhertzog.com/2011/07/18/deciphering-one-of-dpkg-weirdest-errors-unable-to-open-pathtofoo-dpkg-new/
> for some explanations of what might cause the problem.

thanks for the explanation

> The other directories which might contain csrf.py are:
> $ dpkg -L python-django|grep csrf
> /usr/share/pyshared/django/middleware/csrf.py
> /usr/share/pyshared/django/views/csrf.py
> /usr/share/pyshared/django/views/decorators/csrf.py
> /usr/share/pyshared/django/contrib/flatpages/tests/csrf.py
> /usr/lib/python2.7/dist-packages/django/middleware/csrf.py
> /usr/lib/python2.7/dist-packages/django/views/csrf.py
> /usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py
> /usr/lib/python2.7/dist-packages/django/contrib/flatpages/tests/csrf.py
> /usr/lib/python2.6/dist-packages/django/middleware/csrf.py
> /usr/lib/python2.6/dist-packages/django/views/csrf.py
> /usr/lib/python2.6/dist-packages/django/views/decorators/csrf.py
> /usr/lib/python2.6/dist-packages/django/contrib/flatpages/tests/csrf.py
> 
> Does one of those directories point back to 
> /usr/share/pyshared/django/middleware
> by mistake ? (Note that it might be an ancestor directory involved too)
> 
> Did you setup some symlinks to replace one of those directories ?

Don't know, since the cause of the error is known i think i'll just purge and 
reinstall the package

> Does it fail again if you retry the upgrade?

yes

thanks,
riccardo


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to