Python app in Windows 7

Asked by kaphar

Trying to get a MYSQL / Python app running in Windows 7 (please don't ask why...Not my idea). I can not get a module to use in place of pymysql so I can not achieve a connection. I looked at the MySQL web site and downloaded the connectors but that still does not give me a methodology.
Can someone out there in that vast area of knowledge give me help in figuring this out? By the way, the app runs fine in Linux - which is my primary system!.
The app connects to the web and to a mysql DB.

Thanks everyone.

KapHar

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Connector/Python Edit question
Assignee:
No assignee Edit question
Solved by:
kaphar
Solved:
Last query:
Last reply:
Revision history for this message
Geert JM Vanderkelen (geertjmvdk) said :
#1

* Just to be clear, but you are using MySQL Connector/Python, right?
* Do you have issues installing Connector/Python?
* If you use the mysql.connector module, do you get errors, which one?

Revision history for this message
kaphar (captain-harry) said :
#2

Traceback (most recent call last):
  File "C:\Users\user01\PythonScripts\Yagain.py", line 10, in <module>
    import mysql.connector
ImportError: No module named mysql.connector

Thanks for the comeback. I can not find the module you are describing. MYSQL web site does not have it, or at least I can not id it.

I will try more locations.
Tnx again.

KapHar
\

Revision history for this message
kaphar (captain-harry) said :
#3

I found it !

Thanks for the help Geert

from python2.mysql import connector