Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python Eggs on Cygwin

Reply
Thread Tools

Python Eggs on Cygwin

 
 
nisimura@gmail.com
Guest
Posts: n/a
 
      03-15-2007
Hi,

I'm trying to use MySQL Python module on Cygwin. Since there is no
binary package, I compiled MySQL C client library and Python module
(http://sourceforge.net/projects/mysql-python) manually.

But when I was trying to load MySQLdb module, following errors
happened.

>>> import MySQLdb

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "build/bdist.cygwin-1.5.22-i686/egg/MySQLdb/__init__.py", line
19, in ?
File "build/bdist.cygwin-1.5.22-i686/egg/_mysql.py", line 7, in ?
File "build/bdist.cygwin-1.5.22-i686/egg/_mysql.py", line 6, in
__bootstrap__
ImportError: Permission denied

This seems to be Eggs/Cygwin problem. Is there any solution?

Regards,

--
Kazu Nisimura

 
Reply With Quote
 
 
 
 
Jason Tishler
Guest
Posts: n/a
 
      03-16-2007
Kazu,

On Thu, Mar 15, 2007 at 05:33:29PM -0700, Kazu Nisimura wrote:
> >>> import MySQLdb

> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "build/bdist.cygwin-1.5.22-i686/egg/MySQLdb/__init__.py", line
> 19, in ?
> File "build/bdist.cygwin-1.5.22-i686/egg/_mysql.py", line 7, in ?
> File "build/bdist.cygwin-1.5.22-i686/egg/_mysql.py", line 6, in
> __bootstrap__
> ImportError: Permission denied
>
> This seems to be Eggs/Cygwin problem. Is there any solution?


The following is a WAG...

Does the MySQL Python module contain shared extension modules (i.e.,
DLLs)? If so, are they executable? If not, then make them so (i.e.,
chmod +x).

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
 
Reply With Quote
 
 
 
 
nisimura@gmail.com
Guest
Posts: n/a
 
      03-17-2007
Jason,

On 3/16/07, Jason Tishler <> wrote:
> The following is a WAG...
>
> Does the MySQL Python module contain shared extension modules (i.e.,
> DLLs)? If so, are they executable? If not, then make them so (i.e.,
> chmod +x).


I did:

% unzip MySQL_foo_bar.eggs
% chmod +x MySQL_foo_bar.eggs/_mysql.dll
% zip -r MySQL_foo_bar.eggs MySQL_foo_bar.eggs

but got the same result. After trials and errors, I found unzipped
eggs were cached in the $HOME/.python-eggs/ directory!

% chmod +x ~/.python-eggs/MySQL_foo_bar/_mysql.dll

did the trick and MySQL module was loaded successfully.

Thanks for your advice.

--
Kazu Nisimura

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: python - an eggs... bruce Python 2 11-14-2007 05:09 PM
RE: python - an eggs... bruce Python 1 11-12-2007 05:25 PM
RE: python - an eggs... bruce Python 2 11-12-2007 07:28 AM
python - an eggs... bruce Python 1 11-11-2007 11:36 AM
When Python *Eggs* better than Python *distutils*?? What's Eggs? seberino@spawar.navy.mil Python 9 01-04-2006 09:06 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57