Opened 3 years ago

Closed 3 years ago

#19858 closed Bug (fixed)

.pyc files in Django-1.4.4.tar.gz, Django-1.3.6.tar.gz tarballs

Reported by: willkg@… Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords: packaging release
Cc: katzj@…, vsafronovich@…, reinout@…, daniel.izquierdo@…, mhl20, sssbox@…, arthello Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There are some .pyc files in the .tar.gz at:

https://www.djangoproject.com/m/releases/1.4/Django-1.4.4.tar.gz

Then untarr'd it. Then noticed .pyc files in it:

(richard) saturn ~/tmp/Django-1.4.4> find . -name "*.pyc"
./django/contrib/sessions/management/__init__.pyc
./django/conf/locale/en/__init__.pyc
./django/conf/locale/en/formats.pyc
./django/conf/locale/__init__.pyc

They were made with Python 2.7 (pretty sure) so if you use it with Python 2.6 you get bad magic number errors.

Change History (13)

comment:1 Changed 3 years ago by Jeremy Katz <katzj@…>

  • Cc katzj@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

I see this also.

comment:2 Changed 3 years ago by mattaustin

  • Keywords packaging added
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug

Confirming that I see this issue after installing Django 1.4.4 in a virtualenv on an Ubuntu 10.04LTS server (Python 2.6).

Deleting the .pyc files fixes the problem, but of course they should really be removed from the packaged release.

find . -name '*.pyc' -delete

comment:3 Changed 3 years ago by mattaustin

  • Keywords release added

comment:4 Changed 3 years ago by kmtracey

  • Summary changed from .pyc files in Django-1.4.4.tar.gz tarball to .pyc files in Django-1.4.4.tar.gz, Django-1.3.6.gz tarballs

1.3 tarball has the same problematic .pyc files. 1.5rc2 does NOT have the pyc files.

comment:5 Changed 3 years ago by kmtracey

  • Summary changed from .pyc files in Django-1.4.4.tar.gz, Django-1.3.6.gz tarballs to .pyc files in Django-1.4.4.tar.gz, Django-1.3.6.tar.gz tarballs

comment:6 Changed 3 years ago by vsafronovich

  • Cc vsafronovich@… added

comment:7 Changed 3 years ago by reinout

  • Cc reinout@… added

comment:8 Changed 3 years ago by daniel.izquierdo@…

  • Cc daniel.izquierdo@… added

comment:9 Changed 3 years ago by mhl20

  • Cc mhl20 added

comment:10 Changed 3 years ago by lukesneeringer@…

As a note, this seems to affect pip install, too.

comment:11 Changed 3 years ago by sssbox@…

  • Cc sssbox@… added

comment:12 Changed 3 years ago by arthello

  • Cc arthello added

comment:13 Changed 3 years ago by carljm

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with the release just now of 1.3.7 and 1.4.5 - https://www.djangoproject.com/weblog/2013/feb/20/updated-releases-issued/

Thanks all for the reports, and sorry for the hassle!

Note: See TracTickets for help on using tickets.
Back to Top