I have installed python 3.2, mysql 5.5, distutils, MSVisual studio express 10.
All 64 bits, but i keep getting that error. I have python.exe and the mysql
bin files on path. If somebody get this error and know the solution please
tellme how to fix.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
also it could be because of VS Express, I'm not tried compile with it...
Or it's possible that WinSDK is required, I'm not really sure, because I
compile everything on my development machine and there I've installed many
apps and other junks too...
When I'll be time I'll try compile on clean VM so that I can see what exactly
is required... (I don't know when it will be...)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for my late reply, i did not get a mail warning for the replys on the
thread.
Finally i get the compiler working. The problem was that i had not installed
the SDK, the express edition can compile only 32 bits target, you need the sdk
for compile on amd64 or ia64 targets.
>>>import_mysql>>>db=_mysql.connect("localhost","root","123456","l2jdb")>>>db.query("""SELECT * FROM accounts""")>>>r=db.store_result()>>>print(r)<_mysql.resultobjectat33e8900>>>>r.fetch_row()(('angelus_ira','qcd2d2b3hPVOH9NIDBk++Tu+/H4=','1298485315640','1','127.0.0.1','1',None,'192.168.1.118','192.168.1.1','0.0.0.0','0.0.0.0','0.0.0.0'),)
XD
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I fixed a bug... look in github here for updates and new versions... I think I'll not post here
anymore... you can create issues there if it concerns on this py3 lib...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've some news regarding this. So I did a bit of work, basically I took farcepest/MySQLdb1 repository from GitHub and cherry-picked my repository commits on top of his repository v1.2.3 (Git is awesome, there was no common commit history). Then I merged this branch on top of latest MySQLdb 1.2.5 and fixed all conflicts, so now it does include all fixes and is fully up-to-date. You can find this branch here https://github.com/davispuh/MySQLdb1/tree/MySQL-for-Python3
All tests does pass and it have same behavior as my original port so it's a bit different than what pure MySQLdb would be.
I did tested it on Arch Linux with Python 3.4.1 (x64) and Windows 8.1 (x64) with Python 3.4.1 (x86)
Anyway maybe some day I'll look what's wrong with MySQLdb1-1.3 branch and why Python 3 doesn't really work there, but I can say that there's a bit different approach used with Unicode strings than I did and some other differences.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
LOL :D again typo in previous post with PS :D
I meant It's very bad that posts CAN'T be edited :(
PS. It really s*cks....
I forgot one step, after you install Python, you need download and install
distribute
I am getting this error:
I have installed python 3.2, mysql 5.5, distutils, MSVisual studio express 10.
All 64 bits, but i keep getting that error. I have python.exe and the mysql
bin files on path. If somebody get this error and know the solution please
tellme how to fix.
hmm... can't think at first what's wrong....
does in registry
point to your mysql dir?
also it could be because of VS Express, I'm not tried compile with it...
Or it's possible that WinSDK is required, I'm not really sure, because I
compile everything on my development machine and there I've installed many
apps and other junks too...
When I'll be time I'll try compile on clean VM so that I can see what exactly
is required... (I don't know when it will be...)
look that key in HKEY_LOCAL_MACHINE
Sorry for my late reply, i did not get a mail warning for the replys on the
thread.
Finally i get the compiler working. The problem was that i had not installed
the SDK, the express edition can compile only 32 bits target, you need the sdk
for compile on amd64 or ia64 targets.
First i follow the guide from:
http://mattptr.net/2010/07/28/building-python-extensions-in-a-modern-windows-
environment/
later i use the fix for MsVS 10 from (end of the page):
http://mail.scipy.org/pipermail/numpy-
discussion/2010-August/052408.html
And everything works.
My test:
XD
I created repository at github for this py3 lib, so there always will be newest version...
I fixed a bug... look in github here for updates and new versions... I think I'll not post here
anymore... you can create issues there if it concerns on this py3 lib...
Thanks! IIm trying MySQLconn, mysql, pymysql but only this package really work
on utf-8 mysql5.1 db with python 3.x
I've some news regarding this. So I did a bit of work, basically I took farcepest/MySQLdb1 repository from GitHub and cherry-picked my repository commits on top of his repository v1.2.3 (Git is awesome, there was no common commit history). Then I merged this branch on top of latest MySQLdb 1.2.5 and fixed all conflicts, so now it does include all fixes and is fully up-to-date. You can find this branch here https://github.com/davispuh/MySQLdb1/tree/MySQL-for-Python3
All tests does pass and it have same behavior as my original port so it's a bit different than what pure MySQLdb would be.
I did tested it on Arch Linux with Python 3.4.1 (x64) and Windows 8.1 (x64) with Python 3.4.1 (x86)
Anyway maybe some day I'll look what's wrong with MySQLdb1-1.3 branch and why Python 3 doesn't really work there, but I can say that there's a bit different approach used with Unicode strings than I did and some other differences.