468,512 Members | 1,625 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Python Eggs on Cygwin

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

Mar 16 '07 #1
2 1983
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
Mar 16 '07 #2
Jason,

On 3/16/07, Jason Tishler <ja***@tishler.netwrote:
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

Mar 17 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Dan | last post: by
reply views Thread by Adam McCarthy | last post: by
2 posts views Thread by TSO | last post: by
1 post views Thread by Srijit Kumar Bhadra | last post: by
3 posts views Thread by Mike Orr | last post: by
3 posts views Thread by eduardo.rosa | last post: by
reply views Thread by Jeff Rush | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.