Hi Atsushi,
Thanks. I installed PyMySQL now and modified setup.py to include
pymysql library. But Pyramid is still looking for "MysqlDB" module.
May be I am missing something? Please excuse my novice skills
Log trace
(pyramid) D:\learner\python\pyramid\projects\tutorial>pserve
development.ini --reload
Starting subprocess with file monitor
Traceback (most recent call last):
File "D:\learner\python\pyramid\Scripts\pserve-script.py", line 8,
in <module>
load_entry_point('pyramid==1.3.2', 'console_scripts', 'pserve')()
File "D:\learner\python\pyramid\lib\site-packages\pyramid-1.3.2-
py2.7.egg\pyramid\scripts\pserve.py", line 47, in main
return command.run()
File "D:\learner\python\pyramid\lib\site-packages\pyramid-1.3.2-
py2.7.egg\pyramid\scripts\pserve.py", line 290, in run
relative_to=base, global_conf=vars)
File "D:\learner\python\pyramid\lib\site-packages\pyramid-1.3.2-
py2.7.egg\pyramid\scripts\pserve.py", line 318, in loadapp
return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
File "D:\learner\python\pyramid\lib\site-packages\pastedeploy-1.5.0-
py2.7.egg\paste\deploy\loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "D:\learner\python\pyramid\lib\site-packages\pastedeploy-1.5.0-
py2.7.egg\paste\deploy\loadwsgi.py", line 272, in loadobj
return context.create()
File "D:\learner\python\pyramid\lib\site-packages\pastedeploy-1.5.0-
py2.7.egg\paste\deploy\loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "D:\learner\python\pyramid\lib\site-packages\pastedeploy-1.5.0-
py2.7.egg\paste\deploy\loadwsgi.py", line 146, in invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File "D:\learner\python\pyramid\lib\site-packages\pastedeploy-1.5.0-
py2.7.egg\paste\deploy\util.py", line 56, in fix_call
val = callable(*args, **kw)
File "d:\learner\python\pyramid\projects\tutorial\tutorial
\__init__.py", line 9, in main
engine = engine_from_config(settings, 'sqlalchemy.')
File "build\bdist.win32\egg\sqlalchemy\engine\__init__.py", line
354, in engine_from_config
File "build\bdist.win32\egg\sqlalchemy\engine\__init__.py", line
336, in create_engine
File "build\bdist.win32\egg\sqlalchemy\engine\strategies.py", line
64, in create
File "build\bdist.win32\egg\sqlalchemy\connectors\mysqldb.py", line
52, in dbapi
ImportError: No module named MySQLdb
Any response is much appreciated
cheers
-bkumar
On May 28, 7:29 am, Atsushi Odagiri <
aod...@gmail.com> wrote:
> 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 <
ch...@kateandchris.net>
>
>
>
>
>
>
>
>
>
> > 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.
>
> > Seehttp://
stackoverflow.com/questions/645943/mysql-for-python-in-windowsforinstructions 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/tutorial...
> >> Readinghttp://
sourceforge.net/projects/mysql-python
> >> Best match: MySQL-python 1.2.3
> >> Downloading
> >>
http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python...