tetherback icon indicating copy to clipboard operation
tetherback copied to clipboard

Error: Python 3.6 or newer is required

Open JonnyTech opened this issue 10 months ago • 5 comments

My version of python is definitely > 3.6:

$ python --version
Python 3.11.2

$ python3 --version
Python 3.11.2

$ python setup.py 
Python 3.6 or newer is required.

$ python3 setup.py 
Python 3.6 or newer is required.

$ python
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=11, micro=2, releaselevel='final', serial=0)

$ pip3 install https://github.com/dlenski/tetherback/archive/HEAD.zip
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      Python 3.6 or newer is required.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Cannot determine package name from spec 'https://github.com/dlenski/tetherback/archive/HEAD.zip'.
Check package spec for errors.

$ head -n 8 setup.py 
#!/usr/bin/env python3

from __future__ import print_function
import sys, os, re, subprocess as sp
from setuptools import setup

if not sys.version_info < (3, 6):
    sys.exit("Python 3.6 or newer is required.")

JonnyTech avatar Aug 13 '23 13:08 JonnyTech

I have this issue, too; trying to install latest git checkout.

Python version: 3.11.3.

setup.py has

if not sys.version_info < (3, 6):
    sys.exit("Python 3.6 or newer is required.")

This will abort for any python version >= 3.6. I think the not should not be there.

I have attached a patch that fixes this:
setup.py-fix-version-detection.patch.txt

Regards!

dreirund avatar Aug 19 '23 10:08 dreirund

download HEAD.zip from this repo (instructions in readme.md), unpack, edit setup.py manually to remove the check, and pack it up again to HEAD.zip, and install it locally using pip3 install HEAD.zip, worked for me, this quick hack.

chr4ss12 avatar Oct 30 '23 17:10 chr4ss12

download HEAD.zip from this repo (instructions in readme.md), unpack, edit setup.py manually to remove the check, and pack it up again to HEAD.zip, and install it locally using pip3 install HEAD.zip, worked for me, this quick hack.

This does not fix the underlying issue reported here. The fix should be implemented in the code hosted in this repository.

dreirund avatar Oct 30 '23 19:10 dreirund

you could make a PR.

chr4ss12 avatar Oct 31 '23 07:10 chr4ss12

you could make a PR.

That is beyond my git skills.

If a fix is provided here to the maintainers of the software, than it should be easy to just implement it by people who have write permissions to the repository anyway.

dreirund avatar Oct 31 '23 10:10 dreirund