MattIPv4 / PyDMXControl

A Python 3 module to control DMX using OpenDMX or uDMX - Featuring fixture profiles, built-in effects and a web control panel.
https://pypi.org/project/PyDMXControl/
GNU General Public License v3.0
121 stars 23 forks source link

Cannot install #33

Closed SirDagen closed 4 years ago

SirDagen commented 4 years ago

Hi

I am trying to install it on a Raspberry 3B+ and get the folllowing errors. Is it something I do wrong or is there an error in the script?

---

pi@zraspi:~ $ pip install PyDMXControl Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting PyDMXControl Could not find a version that satisfies the requirement PyDMXControl (from versions: ) No matching distribution found for PyDMXControl

---

pi@zraspi:~ $ pip install -U git+https://github.com/MattIPv4/PyDMXControl#egg=PyDMXControl[audio] Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting PyDMXControl[audio] from git+https://github.com/MattIPv4/PyDMXControl#egg=PyDMXControl[audio] Cloning https://github.com/MattIPv4/PyDMXControl to /tmp/pip-install-a3zRZy/PyDMXControl Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-a3zRZy/PyDMXControl/setup.py", line 27 def fetch_reqs(base: str = "") -> List[str]: ^ SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-a3zRZy/PyDMXControl/

MattIPv4 commented 4 years ago

This requires Python 3.6+, the fact it's raising a syntax error on a typehinted function would indicate you're using an older version of Python that doesn't support typehinting.

SirDagen commented 4 years ago

Hi Matt. Thank you, now I figured it out. Using the command...

pip3 install -U PyDMXControl[audio]

did the trick.

MattIPv4 commented 4 years ago

Ah sweet, sounds like pip was using whatever Python 2 version Raspbian ships with. Nice to know that Raspbian now ships with 3.6+ as the default 3.x version :)