gigalixir / gigalixir-cli

MIT License
52 stars 45 forks source link

fix: runtime error on six dependency #105

Closed gigatim closed 1 year ago

gigatim commented 1 year ago

Fixes #104

jank commented 1 year ago

@gigatim - this resolves the issue of the missing six dependency. However, after installing Gigalixir into a fresh venv (Python 3.12 on macOS) setuptools is still missing. Running gigalixir --help after fresh installation produces:

Traceback (most recent call last):
  File ".../giga_example/giga/bin/gigalixir", line 5, in <module>
    from gigalixir import cli
  File ".../Code/giga_example/giga/lib/python3.12/site-packages/gigalixir/__init__.py", line 42, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Running pip install setuptools fixes this issue. So I assume this dependency must be explicitly added.

gigatim commented 1 year ago

@jank what version of setuptools do you end up installing? You can run pip list to get the version.

jank commented 1 year ago

I have the following version installed setuptools 69.0.2:


Package            Version
------------------ ------------
certifi            2023.11.17
cffi               1.16.0
charset-normalizer 3.3.2
click              8.1.7
cryptography       41.0.5
gigalixir          1.9.1
idna               3.4
pip                23.3.1
pycparser          2.21
Pygments           2.17.2
pyOpenSSL          23.3.0
pypng              0.20220715.0
qrcode             7.4.2
requests           2.31.0
rollbar            1.0.0
setuptools         69.0.2
six                1.16.0
stripe             7.6.0
typing_extensions  4.8.0
urllib3            2.1.0```
gigatim commented 12 months ago

@jank we will look into this further... related, we did get the homebrew formula updated for 1.9.1, which has been tested on M1

gigatim commented 12 months ago

v1.9.3 resolves this issue fully