Hi

I'm using PyMySQL for MySQL Driver.
It's pure python, so you don't need compile that.

Cheers

2012/5/28 Chris Lambacher <[email protected]>

> It looks like it is going to try to build MySQL-python from c source. The
> error may be because of a missing compiler or maybe the MySQL header file
> or .lib file is missing.
>
> See http://stackoverflow.com/questions/645943/mysql-for-python-in-windowsfor 
> instructions on getting MySQL-python for windows installed on your
> system. Note, if you are working against a virtualenv (you are if you are
> following the tutorial), you can easy_install the downloaded exe installer
> to get it in your virtualenv.
>
> -Chris
>
>
> On Sunday, May 27, 2012, Learner wrote:
>
>> Hello All,
>>
>> I just started learning Pyramid & Python together. Pyramid
>> documentation is amazing, step by step instructions  are really
>> helpful for a basic learner like me.
>>
>> I created a simple Pyramid (SqlAlchemy) application using
>>
>> http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/tutorials/wiki2/index.html
>> documentation. Now I want to switch from SqlLite to MySql. So I made
>> below changes to my application
>> development.ini
>> ----------------------
>> sqlalchemy.url = mysql://root:welcome@localhost/deals
>>
>> Added python-mysql to setup.py
>> -----------------------------------------------
>> requires = [
>>    'pyramid',
>>    'mysql-python',
>>    'SQLAlchemy',
>>    'transaction',
>>    'pyramid_tm',
>>    'pyramid_debugtoolbar',
>>    'zope.sqlalchemy',
>>    'waitress',
>>    ]
>>
>> Now when I try to install the application using "python setup.py
>> develop", I get "error: The system cannot find the file specified"
>> error.
>> I tried copying mysql dll file to python bin directory thinking mysql
>> is not accessible from python & searched on the web but no luck.
>>
>> Any help is much appreciated. Thanks for your time.
>>
>> Complete execution details
>> (pyramid) D:\learner\python\pyramid\projects\tutorial>python setup.py
>> develop
>> running develop
>> running egg_info
>> writing requirements to tutorial.egg-info\requires.txt
>> writing tutorial.egg-info\PKG-INFO
>> writing top-level names to tutorial.egg-info\top_level.txt
>> writing dependency_links to tutorial.egg-info\dependency_links.txt
>> writing entry points to tutorial.egg-info\entry_points.txt
>> reading manifest file 'tutorial.egg-info\SOURCES.txt'
>> reading manifest template 'MANIFEST.in'
>> warning: no files found matching '*.rst'
>> warning: no files found matching '*.jpg' under directory 'tutorial'
>> warning: no files found matching '*.txt' under directory 'tutorial'
>> warning: no files found matching '*.mak' under directory 'tutorial'
>> warning: no files found matching '*.mako' under directory 'tutorial'
>> warning: no files found matching '*.js' under directory 'tutorial'
>> warning: no files found matching '*.html' under directory 'tutorial'
>> warning: no files found matching '*.xml' under directory 'tutorial'
>> writing manifest file 'tutorial.egg-info\SOURCES.txt'
>> running build_ext
>> Creating d:\learner\python\pyramid\lib\site-packages\tutorial.egg-link
>> (link to .)
>> tutorial 0.0 is already the active version in easy-install.pth
>> Installing initialize_tutorial_db-script.py script to D:\learner\python
>> \pyramid\Scripts
>> Installing initialize_tutorial_db.exe script to D:\learner\python
>> \pyramid\Scripts
>> Installing initialize_tutorial_db.exe.manifest script to D:\learner
>> \python\pyramid\Scripts
>>
>> Installed d:\learner\python\pyramid\projects\tutorial
>> Processing dependencies for tutorial==0.0
>> Searching for mysql-python
>> Reading http://pypi.python.org/simple/mysql-python/
>> Reading http://sourceforge.net/projects/mysql-python/
>> Reading http://sourceforge.net/projects/mysql-python
>> Best match: MySQL-python 1.2.3
>> Downloading
>> http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz
>> Processing MySQL-python-1.2.3.tar.gz
>> Running MySQL-python-1.2.3\setup.py -q bdist_egg --dist-dir c:\users
>> \learner\appdata\local\temp\easy_install-klhsdv\MySQL-python-1.2.3\egg-
>> dist-tmp-whnjbg
>> error: The system cannot find the file specified
>>
>>
>> cheers
>>
>>
>> Completed
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-discuss?hl=en.
>>
>>
>
> --
> Christopher Lambacher
> [email protected]
>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>



-- 
/*
Atsushi Odagiri
http://blog.aodag.jp
mailto:[email protected]
*/

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to