# Python version issues

**URL:** <https://discourse.libretime.org/t/python-version-issues/987>\
**Category:** Get Help\
**Created:** [August 16, 2021, 2:03am UTC](https://discourse.libretime.org/t/python-version-issues/987 "2021-08-16T02:03:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bracham](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bracham](https://discourse.libretime.org/u/bracham)\
**Post date:** [August 16, 2021, 2:03am UTC](https://discourse.libretime.org/t/python-version-issues/987/1 "2021-08-16T02:03:29Z")

</div>

Running Debian 10, have Python 2.7.16 and Python 3.7.3.

LT’s install script doesn’t have any calls for Python3, all calls are for Python, which is Python2.

The script attempts to install Python’s “importlib\_metadata”, and finds and downloads the latest version, 4.6.4, which only works for Python3, which the script hasn’t found. The latest version that works for Python2 is 2.1.1, but then there’s clashes with Kombu 5.1.0, and amqp 2.6.1, which seems to be the highest version of amqp that installs.

Now I don’t know the details, but I understand there are enough differences between Python 2 and 3 that at times either one is required. However, after all of the above only calling on Python 2, the script stops with the following process and error:

> Searching for importlib-metadata\>=0.18  
> Reading [Links for importlib-metadata](https://pypi.org/simple/importlib-metadata/)  
> Downloading [https://files.pythonhosted.org/packages/aa/b9/514816064db3028d7370f2ce02e8e8f5d9bc68f6f9a41b04d19176aba70e/importlib\_metadata-4.6.4.tar.gz#sha256=7b30a78db2922d78a6f47fb30683156a14f3c6aa5cc23f77cc8967e9ab2d002f](https://files.pythonhosted.org/packages/aa/b9/514816064db3028d7370f2ce02e8e8f5d9bc68f6f9a41b04d19176aba70e/importlib_metadata-4.6.4.tar.gz#sha256=7b30a78db2922d78a6f47fb30683156a14f3c6aa5cc23f77cc8967e9ab2d002f)  
> Best match: importlib-metadata 4.6.4  
> Processing importlib\_metadata-4.6.4.tar.gz  
> Writing /tmp/easy\_install-d6w7y7/importlib\_metadata-4.6.4/setup.cfg  
> Running importlib\_metadata-4.6.4/setup.py -q bdist\_egg --dist-dir /tmp/easy\_install-d6w7y7/importlib\_metadata-4.6.4/egg-dist-tmp-KpKYDd  
> error: find\_namespace: directive is unsupported on Python \< 3.3

Some slight versioning confusion?

LibreTime / Airtime looks like a nice setup for internet radio automation, but if it’s going to be a headache to set up, I’ll find something else. However, if I can help find these bugs and get them resolved for a better setup, I’ll do what I can.

Thanks!
