dvrhax / upymysql Goto Github PK
View Code? Open in Web Editor NEWPure uPython MySQL Client
License: MIT License
Pure uPython MySQL Client
License: MIT License
Hello,
thanks so much for porting this package.
I have a little program written to read an IMU and log it to a database.
ESP-32 and LSM303DLHC
MySQL running on desktop on localhost through XAMPP
I have checked all of my code three times just to be sure, here is the part of my code(line 16 in error below) that is based on your example:
connection = upymysql.connect(host='192.168.1.10', user='bryan', password=password, db='micropython_data', charset='utf8_general_ci', cursorclass=upymysql.cursors.DictCursor)
here is the error:
network config: ('192.168.1.253', '255.255.255.0', '192.168.1.1', '192.168.1.1') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 16, in <module> File "upymysql/__init__.py", line 263, in Connect ImportError: cannot import name Connection
any input would would be greatly appreciated.
Thank you, Bryan
Hi,
I have this code snippet to install directly.
This may be of use to some.
import mip
mip.install("github:dvrhax/uPyMySQL/upymysql/_socketio.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/charset.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/connections.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/optionfile.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/cursors.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/times.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/COMMAND.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/CLIENT.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/FIELD_TYPE.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/CR.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/FLAG.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/SERVER_STATUS.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/constants/__init__.py", target="/lib/upymysql/constants")
mip.install("github:dvrhax/uPyMySQL/upymysql/converters.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/util.py", target="/lib/upymysql")
mip.install("github:dvrhax/uPyMySQL/upymysql/__init__.py", target="/lib/upymysql")
i use Raspberry Pi Pico, i re-compile fail , so anyone has success file?
I have the this error masage from console? i'm Using esp32.
File "upymysql/init.py", line 88, in Connect
MemoryError: memory allocation failed, allocating 136 byte
MicroPython v1.19.1 on 2022-06-18; ESP32 module with ESP32
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.