ahodges9 / LedFx

LedFx is a network based LED effect controller with support for advanced real-time audio effects! LedFx can control multiple devices and works great with cheap ESP8266 nodes allowing for cost effectvice syncronized effects across your entire house!
MIT License
384 stars 91 forks source link

Fix python setup.py install #169

Closed THATDONFC closed 3 years ago

THATDONFC commented 3 years ago

When installing via python setup.py install ledfx would error out

❯ ledfx
/Users/thatdonfc/anaconda3/envs/ledfx-py39/lib/python3.9/site-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine"
decorator is deprecated since Python 3.8, use "async def" instead
  def noop(*args, **kwargs):  # type: ignore
Loading configuration file from /Users/thatdonfc/.ledfx
Loading default presets from /Users/thatdonfc/anaconda3/envs/ledfx-py39/lib/python3.9/site-packages/ledfx_dev-0.9.0-py3.9.egg/ledfx
Failed to load default_presets.yaml
Traceback (most recent call last):
  File "/Users/thatdonfc/anaconda3/envs/ledfx-py39/bin/ledfx", line 33, in <module>
    sys.exit(load_entry_point('ledfx-dev==0.9.0', 'console_scripts', 'ledfx')())
  File "/Users/thatdonfc/anaconda3/envs/ledfx-py39/lib/python3.9/site-packages/ledfx_dev-0.9.0-py3.9.egg/ledfx/__main__.py", line 178, in main
  File "/Users/thatdonfc/anaconda3/envs/ledfx-py39/lib/python3.9/site-packages/ledfx_dev-0.9.0-py3.9.egg/ledfx/core.py", line 23, in __init__
  File "/Users/thatdonfc/anaconda3/envs/ledfx-py39/lib/python3.9/site-packages/ledfx_dev-0.9.0-py3.9.egg/ledfx/config.py", line 118, in load_default_presets
NotADirectoryError: [Errno 20] Not a directory: '/Users/thatdonfc/anaconda3/envs/ledfx-py39/lib/python3.9/site-packages/ledfx_dev-0.9.0-py3.9.egg/ledfx/default_presets.yaml' 

Setting zip_safe=False in setup.py fixes this error.