Giter Club home page Giter Club logo

Comments (5)

snizzleorg avatar snizzleorg commented on July 3, 2024

Seems as pip3 install -U piphelped with the above but now I'm getting this:

Starting
Traceback (most recent call last):
  File "./gateway.py", line 30, in <module>
    manager.register_workers(settings['manager']).start(mqtt)
  File "/home/pi/bt-mqtt-gateway/workers_manager.py", line 34, in register_workers
    module_obj = importlib.import_module("workers.%s" % worker_name)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/pi/bt-mqtt-gateway/workers/thermostat.py", line 5, in <module>
    from workers.base import BaseWorker
  File "/home/pi/bt-mqtt-gateway/workers/base.py", line 11
    return '/'.join([self.topic_prefix, *args])
                                           ^
SyntaxError: can use starred expression only as assignment target

from bt-mqtt-gateway.

zewelor avatar zewelor commented on July 3, 2024

Hi

from what I've googled, that syntax is supported from python 3.5. I've wrote it with python 3.6, so not sure what more can not work on older versions. Try newer python, it should work then.

from bt-mqtt-gateway.

snizzleorg avatar snizzleorg commented on July 3, 2024

@zewelor thanks. I'll try that. Installing python 3.7 as we speak. however on my rpi 1 this will probably take a few days... will report back

from bt-mqtt-gateway.

snizzleorg avatar snizzleorg commented on July 3, 2024

@zewelor a few days later I got python3.6 installed and all the dependencies. and the gateway runs.

Thanks!

from bt-mqtt-gateway.

zewelor avatar zewelor commented on July 3, 2024

Great to hear that ! I've added python >= 3.5 to readme to avoid future confusion

from bt-mqtt-gateway.

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.