ailothaen / linky Goto Github PK
View Code? Open in Web Editor NEWScript collecting data from a Linky (French power meter) using serial output
License: MIT License
Script collecting data from a Linky (French power meter) using serial output
License: MIT License
Bonjour, lorsque je lance le script linky.py j'ai ce message d'erreur : ModuleNotFoundError: No module named 'MySQLdb'
J'ai pourtant bien suivi les étapes du tuto. Qu'ai-je pu louper ? Je suis sur un Pi Zero sous Raspbian.
Bonjour,
J'ai cette erreur en exécutant le code :
Traceback (most recent call last):
File "/srv/linky/main.py", line 23, in
linky.test_db_connection(config['database']['server'], config['database']['user'], config['database']['password'], config['database']['name'])
File "/srv/linky/linky.py", line 64, in test_db_connection
db, cr = open_db(server, user, password, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/linky/linky.py", line 99, in open_db
db = MySQLdb.connect(server, user, password, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/MySQLdb/init.py", line 121, in Connect
return Connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/MySQLdb/connections.py", line 193, in init
super().init(*args, **kwargs2)
TypeError: connect() argument 3 must be str, not None
Est-ce que j'ai mal renseigné le fichier de config ? Il faut mettre des "" ? Ou une update de librairie aurait changé quelque chose ? Merci
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.