GithubHelp home page GithubHelp logo

Unable to launch the script about gazpar2mqtt HOT 7 CLOSED

yukulehe avatar yukulehe commented on September 26, 2024
Unable to launch the script

from gazpar2mqtt.

Comments (7)

yukulehe avatar yukulehe commented on September 26, 2024

Hello,
Le message semble clair.
Le user qui lance le script n'a pas d'autorisation pour créer le répertoire /data (commande mkdir).
Soit tu changes les permissions de ton user, soit tu fournis un autre répertoire sur lequel ton user a les droits de modification.

from gazpar2mqtt.

yukulehe avatar yukulehe commented on September 26, 2024

De mon côté, faudra que je modifie le script pour que ça plante proprement.

from gazpar2mqtt.

airvb avatar airvb commented on September 26, 2024

Merci pour ta réponse.
J'essaie donc en modifiant le path du dossier d'installation pour être ds mon home, ce qui normalement devrait me permettre de créer le dossier.
Mais le paramètre ne semble pas pris en compte.

python3 app/gazpar2mqtt.py [email protected] --grdf_password=####### --mqtt_host=192.168.88.150 --mqtt_clientId=gazou --mqtt_retain=True --db_init True --db_path /home/airvb/gazpar2mqtt-main/data

2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,517 INFO #               Welcome to gazpar2mqtt                    #
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,517 INFO Program version : 0.8.1
2022-03-09 09:07:58,517 INFO Database version : 0.8.0
2022-03-09 09:07:58,517 INFO Influxdb version : 0.8.0
2022-03-09 09:07:58,517 INFO Please note that the the tool is still under development, various functions may disappear or be modified.
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,517 INFO #                Program parameters                       #
2022-03-09 09:07:58,517 INFO -----------------------------------------------------------
2022-03-09 09:07:58,518 INFO GRDF config : username = ******@****.**, password = ******
2022-03-09 09:07:58,518 INFO MQTT broker config : host = 192.168.88.150, port = 1883, clientId = gazou, qos = 1, topic = gazpar, retain = True, ssl = False
2022-03-09 09:07:58,518 INFO Standlone mode : Enable = True
2022-03-09 09:07:58,519 INFO Home Assistant discovery : Enable = False
2022-03-09 09:07:58,519 INFO Thresold options : Warning percentage = 80
2022-03-09 09:07:58,519 INFO Influxdb config : Enable = False
2022-03-09 09:07:58,519 INFO Price config : Default price = 0.07 €/kWh, default fix price = 0.9 €/day, path to file = /data
2022-03-09 09:07:58,519 INFO Database options : Force reinitialization = True, Path = /data
2022-03-09 09:07:58,519 INFO Debug mode : Enable = False
2022-03-09 09:07:58,519 INFO Check parameters...
2022-03-09 09:07:58,519 INFO Parameters are ok !
2022-03-09 09:07:58,519 INFO -----------------------------------------------------------
2022-03-09 09:07:58,519 INFO #        Connexion to SQLite database                     #
2022-03-09 09:07:58,519 INFO -----------------------------------------------------------
2022-03-09 09:07:58,519 INFO Connexion to SQLite database...
Traceback (most recent call last):
  File "app/gazpar2mqtt.py", line 891, in <module>
    run(myParams)
  File "app/gazpar2mqtt.py", line 74, in run
    myDb.connect(G2M_VERSION,G2M_DB_VERSION,G2M_INFLUXDB_VERSION)
  File "/home/airvb/gazpar2mqtt-main/app/database.py", line 162, in connect
    os.mkdir(self.path)
PermissionError: [Errno 13] Permission denied: '/data'

`

from gazpar2mqtt.

yukulehe avatar yukulehe commented on September 26, 2024

Bizarre. J'ai vérifié le code, je ne comprends pas pourquoi ton argument n'est pas pris en compte. Faut que je teste chez moi.

from gazpar2mqtt.

yukulehe avatar yukulehe commented on September 26, 2024

J'ai reproduis l'anomalie. Je fais la correction.

from gazpar2mqtt.

yukulehe avatar yukulehe commented on September 26, 2024

C'est corrigé directement dans le main. Je te laisse vérifier.

from gazpar2mqtt.

airvb avatar airvb commented on September 26, 2024

Super ça fonctionne.
Je continue à explorer les différentes fonctions.

MERCI

from gazpar2mqtt.

Related Issues (20)

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.