[Distutils] easy_install MySQL-python file error

Jonathan Endy Jonathan.Endy at Gmail.com
Mon Oct 18 19:07:24 CEST 2010


Thanks,
It seems like it was path problem the
               cd F:\Python\MySQL-python-1.2.3
fix it, after I added the
     [build]
     compiler = mingw32
to setup.cfg file.

But I got another problem, I tried your command and it started to work but
stopped on
      "error: command 'gcc' failed: Permission denied"
someone suggested to move it from the cygwin/bin folder, so I copied it o
system32
then I got:
      error: command 'gcc' failed: Invalid argument

So I found the MinGW library and I took the gcc.exe from their
   and now I get the message:
        gcc: /Zl: No such file or directory
the full output is:

>  F:\Python\MySQL-python-1.2.3>F:\Python\Python25\python.exe -c "import
> setuptools; execfile('setup.py')" bdist_egg
> running bdist_egg
> running egg_info
> writing MySQL_python.egg-info\PKG-INFO
> writing top-level names to MySQL_python.egg-info\top_level.txt
> writing dependency_links to MySQL_python.egg-info\dependency_links.txt
> warning: manifest_maker: standard file '-c' not found
> reading manifest file 'MySQL_python.egg-info\SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'MANIFEST'
> warning: no files found matching 'ChangeLog'
> warning: no files found matching 'GPL'
> writing manifest file 'MySQL_python.egg-info\SOURCES.txt'
> installing library code to build\bdist.win32\egg
> running install_lib
> running build_py
> copying MySQLdb\release.py -> build\lib.win32-2.5\MySQLdb
> running build_ext
> building '_mysql' extension
> C:\WINDOWS\system32\gcc.exe -mno-cygwin -mdll -O -Wall
> -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3
> -IF:\MySQL\mysql-5.1.51-win32\include -IF:\Python\Python25\include
> -IF:\Python\Python25\PC -c _mysql.c -o build\temp.win32-2.5\Release\_mysql.o
> /Zl
> gcc: /Zl: No such file or directory
> gcc: CreateProcess: No such file or directory
> error: command 'gcc' failed with exit status 1
>


Have you encountered this situation?



On Mon, Oct 18, 2010 at 6:20 PM, P.J. Eby <pje at telecommunity.com> wrote:

> At 03:41 PM 10/18/2010 +0200, Jonathan Endy wrote:
>
>> Hi,
>> When I am trying to install MySQL-python package
>> I receive an error, this is the output:
>>
>>
>> F:\Python>F:\Python\Python25\Scripts\easy_install.exe
>> F:\Python\MySQL-python-1.2.3
>> Processing MySQL-python-1.2.3
>> Running setup.py -q bdist_egg --dist-dir
>> F:\Python\MySQL-python-1.2.3\egg-dist-tmp-ly3u1l
>> error: The system cannot find the file specified
>>
>>
>> Does anyone have an idea what casing that or how to spot the problem?
>>
>
> Try this:
>
>   cd F:\Python\MySQL-python-1.2.3
>   F:\Python\Python25\python.exe -c "import setuptools;
> execfile('setup.py')" bdist_egg
>
> And send the full output.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20101018/8b7f2642/attachment.html>


More information about the Distutils-SIG mailing list