Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » problem with compressed egg in mysqldb module [RSS Feed]

#1 Jan. 26, 2011 22:13:25

C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

problem with compressed egg in mysqldb module


Hi, all. I'm getting this error, when trying to export my django site
to a new place:

TemplateSyntaxError: Caught ImproperlyConfigured while rendering:
Error loading MySQLdb module: bad local file header in /usr/local/lib/
python2.6/site-packages/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE-
amd64.egg

When I install the module (I reinstalled it clean after finding the
above problem), I get the above egg as a zip file (and it unzips
without errors). But I can't seem to use it. I've been trying to
figure out what to do next -- I've considered trying to make it use
uncompressed eggs, but even though I've uncompressed it in that
directory (site-packages) it's not helping. Does django have some way
of telling python to not use compressed eggs, but to look for
uncompressed stuff instead? Or are there other suggestions/
solutions? (I'm kinda hoping not to reinstall python itself esp. as I
hate changing /usr/ports default setups as it always bites me later
when i reinstall/upgrade things)

When I reinstalled py-MySQLdb, it created the egg in /root/.python-
eggs/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE-amd64.egg but after
trying to run the django stuff, that egg disappears, leaving
the .python-eggs dir empty, and giving me the above error message.

Using the latest version of django, python & mysqldb, on freebsd 8.1
(moving it from a freebsd 8.0 install, where it's working fine --
django & python versions the same on both).

Thanks for any and all help & suggestions!

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 26, 2011 23:24:13

C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

problem with compressed egg in mysqldb module


To be specific:
mysqldb version 1.2.3
django version 1.2.4
python 2.6
freebsd 8.1

Another question: if django/python is somehow using the wrong method
to unzip the egg
(since I can "unzip" just fine in the listed directory) is there some
way I can configure the correct
one?

Again, thanks...

On Jan 26, 2:13 pm, Cindy <tit...@gmail.com> wrote:
> Hi, all.  I'm getting this error, when trying to export my django site
> to a new place:
>
> TemplateSyntaxError: Caught ImproperlyConfigured while rendering:
> Error loading MySQLdb module: bad local file header in /usr/local/lib/
> python2.6/site-packages/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE-
> amd64.egg
>
> When I install the module (I reinstalled it clean after finding the
> above problem), I get the above egg as a zip file (and it unzips
> without errors).  But I can't seem to use it.  I've been trying to
> figure out what to do next -- I've considered trying to make it use
> uncompressed eggs, but even though I've uncompressed it in that
> directory (site-packages) it's not helping.  Does django have some way
> of telling python to not use compressed eggs, but to look for
> uncompressed stuff instead?  Or are there other suggestions/
> solutions?  (I'm kinda hoping not to reinstall python itself esp. as I
> hate changing /usr/ports default setups as it always bites me later
> when i reinstall/upgrade things)
>
> When I reinstalled py-MySQLdb, it created the egg in /root/.python-
> eggs/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE-amd64.egg but after
> trying to run the django stuff, that egg disappears, leaving
> the .python-eggs dir empty, and giving me the above error message.
>
> Using the latest version of django, python & mysqldb, on freebsd 8.1
> (moving it from a freebsd 8.0 install, where it's working fine --
> django & python versions the same on both).
>
> Thanks for any and all help & suggestions!

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 27, 2011 07:48:29

Adrian B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

problem with compressed egg in mysqldb module


On 26 Jan 2011, at 23:24, Cindy wrote:

>
> On Jan 26, 2:13 pm, Cindy <tit...@gmail.com> wrote:
>> Hi, all. I'm getting this error, when trying to export my django site
>> to a new place:

Do you mean to a new server?

>>
>> TemplateSyntaxError: Caught ImproperlyConfigured while rendering:
>> Error loading MySQLdb module: bad local file header in /usr/local/lib/
>> python2.6/site-packages/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE-
>> amd64.egg

If so; is the destination server running a 64bit OS?

Regards,

aid

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 27, 2011 20:52:41

C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

problem with compressed egg in mysqldb module


Yes, it's an appropriate server and yes, both servers are amd64.

I did figure out the issue: The new FreeBSD install had the default
home directory for the user www set to /nonexistent -- once
I changed that to a real directory, and dropped a www:www 755
directory in there & linked /root/.python-eggs to it, everything
worked fine.

I am missing large chunks of my hair, but otherwise all is good...

On Jan 26, 11:48 pm, Adrian Bool <a...@logic.org.uk> wrote:
> On 26 Jan 2011, at 23:24, Cindy wrote:
>
>
>
> > On Jan 26, 2:13 pm, Cindy <tit...@gmail.com> wrote:
> >> Hi, all.  I'm getting this error, when trying to export my django site
> >> to a new place:
>
> Do you mean to a new server?
>
>
>
> >> TemplateSyntaxError: Caught ImproperlyConfigured while rendering:
> >> Error loading MySQLdb module: bad local file header in /usr/local/lib/
> >> python2.6/site-packages/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE-
> >> amd64.egg
>
> If so; is the destination server running a 64bit OS?
>
> Regards,
>
> aid

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » problem with compressed egg in mysqldb module [RSS Feed]

Board footer

Moderator control

Enjoy the 21st of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support