Opened 12 years ago

Closed 12 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 by Jeremy Katz <katzj@…>, 12 years ago

Cc: katzj@… added

I see this also.

comment:2 by Matt Austin, 12 years ago

Keywords: packaging added
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

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 by Matt Austin, 12 years ago

Keywords: release added

comment:4 by Karen Tracey, 12 years ago

Summary: .pyc files in Django-1.4.4.tar.gz tarball.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 by Karen Tracey, 12 years ago

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

comment:6 by vsafronovich, 12 years ago

Cc: vsafronovich@… added

comment:7 by Reinout van Rees, 12 years ago

Cc: reinout@… added

comment:8 by daniel.izquierdo@…, 12 years ago

Cc: daniel.izquierdo@… added

comment:9 by mhl20, 12 years ago

Cc: mhl20 added

comment:10 by lukesneeringer@…, 12 years ago

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

comment:11 by sssbox@…, 12 years ago

Cc: sssbox@… added

comment:12 by arthello, 12 years ago

Cc: arthello added

comment:13 by Carl Meyer, 12 years ago

Resolution: fixed
Status: newclosed

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