2012-06-15 3 views
0

을 실행할 때이 중지지고, 정지 및 다음과 같은 오류보고 :이 오류를 일으킬 수있는 어떤CherryPy 서버가 난 내 응용 프로그램을 실행할 때 난 내 Turbogear 응용 프로그램

2012-06-16 02:40:51,767 turbogears.startup INFO Binding metadata for SQLAlchemy... 
2012-06-16 02:40:51,785 cherrypy.error ERROR [16/Jun/2012:02:40:51] ENGINE Error in 'start' listener <function start_turbogears at 0x02CE2BF0> 
Traceback (most recent call last): 
    File "C:\Python27\lib\site-packages\cherrypy-3.2.2-py2.7-win32.egg\cherrypy\process\wspbus.py", line 197, in publish 
    output.append(listener(*args, **kwargs)) 
    File "C:\Python27\lib\site-packages\turbogears-1.5.1-py2.7.egg\turbogears\startup.py", line 201, in start_turbogears 
    database.bind_metadata() 
    File "C:\Python27\lib\site-packages\turbogears-1.5.1-py2.7.egg\turbogears\database.py", line 80, in bind_metadata 
    metadata.bind = sqlalchemy.create_engine(dburi, **alch_args) 
    File "C:\Python27\lib\site-packages\sqlalchemy-0.4.4-py2.7.egg\sqlalchemy\engine\__init__.py", line 160, in create_engine 
    return strategy.create(*args, **kwargs) 
    File "C:\Python27\lib\site-packages\sqlalchemy-0.4.4-py2.7.egg\sqlalchemy\engine\strategies.py", line 62, in create 
    dbapi = dialect_cls.dbapi(**dbapi_args) 
    File "C:\Python27\lib\site-packages\sqlalchemy-0.4.4-py2.7.egg\sqlalchemy\databases\mysql.py", line 1420, in dbapi 
    import MySQLdb as mysql 
    File "C:\Python27\lib\site-packages\mysql_python-1.2.2-py2.5-win32.egg\MySQLdb\__init__.py", line 19, in <module> 
    import _mysql 
    File "C:\Python27\lib\site-packages\mysql_python-1.2.2-py2.5-win32.egg\_mysql.py", line 7, in <module> 
    File "C:\Python27\lib\site-packages\mysql_python-1.2.2-py2.5-win32.egg\_mysql.py", line 6, in __bootstrap__ 
ImportError: DLL load failed: The specified module could not be found. 

2012-06-16 02:40:51,845 cherrypy.error INFO [16/Jun/2012:02:40:51] ENGINE Started monitor thread 'Autoreloader'. 
2012-06-16 02:40:51,854 cherrypy.error INFO [16/Jun/2012:02:40:51] ENGINE Started monitor thread '_TimeoutMonitor'. 
2012-06-16 02:40:52,118 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Serving on 127.0.0.1:8087 
2012-06-16 02:40:52,127 cherrypy.error ERROR [16/Jun/2012:02:40:52] ENGINE Shutting down due to error in start listener: 
Traceback (most recent call last): 
    File "C:\Python27\lib\site-packages\cherrypy-3.2.2-py2.7-win32.egg\cherrypy\process\wspbus.py", line 235, in start 
    self.publish('start') 
    File "C:\Python27\lib\site-packages\cherrypy-3.2.2-py2.7-win32.egg\cherrypy\process\wspbus.py", line 215, in publish 
    raise exc 
ChannelFailures: ImportError('DLL load failed: The specified module could not be found.',) 

2012-06-16 02:40:52,161 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Bus STOPPING 
2012-06-16 02:40:52,270 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8087)) shut down 
2012-06-16 02:40:52,285 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Stopped thread '_TimeoutMonitor'. 
2012-06-16 02:40:52,296 turbogears.startup INFO TurboGears has already been stopped. 
2012-06-16 02:40:52,301 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Stopped thread 'Autoreloader'. 
2012-06-16 02:40:52,308 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Bus STOPPED 
2012-06-16 02:40:52,312 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Bus EXITING 
2012-06-16 02:40:52,318 cherrypy.error INFO [16/Jun/2012:02:40:52] ENGINE Bus EXITED 

System information: 
OS: Windows 7, Python 2.7, Turbogears: 1.5.1, 
dev.cfg: sqlalchemy.dburi = 'mysql://root:[email protected]:3306/VistaDB' 

를?

답변

0

오류 메시지는 "DLL로드가 실패했습니다. : 지정된 모듈을 찾을 수 없습니다 '"입니다

은 내가 데이터베이스를 생성하고 MySQL 데이터베이스에서 수동으로 일부 레코드를 삽입 한 MySQL의 설치 문제

+0

입니다 .samalchemy.dburi 매개 변수를 내 dev.cfg 파일에 지정하자 마자 응용 프로그램을 시작할 수 없습니다. 지침을 알려주십시오. –

+0

모두들 감사합니다. easy_install mysql-python과 mysql-python-1.2.3.win64-py2.7.exe를 추가했습니다. 모든 것이 작동합니다. –

관련 문제