Giter VIP home page Giter VIP logo

upymysql's People

Contributors

baloo avatar bbigras avatar boglin avatar chekunkov avatar clarkevans avatar clelland avatar cleure avatar djmitche avatar dvrhax avatar elemount avatar grooverdan avatar hannosch avatar jamadden avatar jcotton1123 avatar jvankoten avatar klondi avatar lecram avatar martinthoma avatar methane avatar mlongtin0 avatar petehunt avatar raggiskula avatar rfk avatar rjollos avatar wiggzz avatar worldexception avatar wraziens avatar yoriksar avatar zedekiah avatar zzzeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

upymysql's Issues

cannot import name Connection

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

Quick Install using mip

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")

Which MCU are compatibles?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.