473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2174
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Dan | last post by:
Is there a python equivalent of this trick in C? Logic_Test ? True_Result : False_Result Example: printf( "you have %i %s", num_eggs, num_eggs > 1 ? "eggs" : "egg" );
0
by: Adam McCarthy | last post by:
I'm trying to get a cross compiler working for arm-wince-pe. This is the output for the primes Pyrex example. If I compile simple Hello, World's etc, it works fine, but for some reason Python...
2
by: TSO | last post by:
Hi there, I've recently tried to translate some Perl code into Python - code is below. Is there a more Pythonic form?
9
by: seberino | last post by:
I have been using distuils for a while and was wondering when Python Eggs (new project) is better? So basically Python Eggs precompiles and compresses binaries for you so you just have to load...
1
by: Srijit Kumar Bhadra | last post by:
I have browsed the following links 1) http://peak.telecommunity.com/DevCenter/EasyInstall 2) When Python *Eggs* better than Python *distutils*?? What's Eggs? (http://tinyurl.com/m8dyd) But I am...
3
by: Mike Orr | last post by:
I'm trying to install a program that uses Durus on a server. It appears that if a Python program uses eggs, it creates a ~/.python-eggs/ directory, so the home directory must be writeable. This...
3
by: eduardo.rosa | last post by:
Hy people, I'm new in python and comming from JAVA. Something I really like in java is the easy way to add a library to the project. Just put the jar file in the folder ( WEB-INF/lib ) and...
0
by: Jeff Rush | last post by:
Eggs are important to Python and will become more so over the next few years, if understood and embraced by the community. They are a key competitive feature - I've been asked so many times what...
9
by: alf | last post by:
Hi, I have a small app which consist of a few .py files. Is there any way to distribute it in jar like fashion as a single file I can just run python on. I obviously look for platform...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.