Python Eggs on Cygwin


N

nisimura

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.
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,
 
Ad

Advertisements

J

Jason Tishler

Kazu,

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
 
Ad

Advertisements

N

nisimura

Jason,

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top