-
El_Cid
Any other way to do it besides using Workflow x-callback-url?
-
El_Cid
@iAmMortos said:
Using tommasoturchi's mysqldb connector, I'm doing this:
import mysqldb db = mysqldb.connect(host="my.host.com", user="user", passwd="pass", db="MyDBName", port=3306) cursor = db.cursor()
and I'm getting an error:
ord() expected string of length 1, but int found
all the way down in thenetwork.py
file atself._packet_number = ord(packet[3])
wassup with that?!
Thanks
I think the port should be a string.
-
El_Cid
I tried adding:
import locale locale.setlocale(locale.LC_ALL, 'de_DE')
as they said - but I just get 'unsupported locale setting'
-
El_Cid
Actually it didn't just hang, it would eventually raise this error: ImportError: No localization support for language 'eng'.
It's probably a connection issue - but mysqldb doesn't raises the correct exception because he is looking for some file somewhere. Anyone have any clue?
-
El_Cid
It worked with the files moved to: \Modules & Templates\site-packages-3
Thank you guys!This app together with the service provided by PythonAnywhere are so amazing! They changed my life for the better :)
Edit: Actually with the files moved to site-packages-3 - I get an error in connection.py. So I think mysqldb doesn't support python 3.
So I moved the files to site-packages-2 - and I tried running the script with python 2.7 - but the script just hangs with these two lines:import mysqldb
db = mysqldb.connect(host= "mysql.my_domain.co.uk", user = "my_username", passwd="my_password", db="my_database", port = 3306)
-
El_Cid
thank you so much! I tried git pull before asking you! I need to learn to use github thats for sure :)
Thanks again!
-
El_Cid
Is there an easier way to import the scripts from GitHub - or did you just create new files and copy - paste from safari or something?
Thanks!