Giter VIP home page Giter VIP logo

linky's People

Contributors

ailothaen avatar

Stargazers

 avatar  avatar

Watchers

 avatar

linky's Issues

ModuleNotFoundError: No module named 'MySQL'

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.

TypeError: connect() argument 3 must be str, not None

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

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.