Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The filelike dependency doesn't seem to support Python3 #1

Open
Keithcat1 opened this issue Dec 29, 2021 · 1 comment
Open

The filelike dependency doesn't seem to support Python3 #1

Keithcat1 opened this issue Dec 29, 2021 · 1 comment

Comments

@Keithcat1
Copy link

Python 3.9.5, Windows 10 X64,
Bass4Py Cython branch requires filelike, but I got an error when running pip install . in the root of the repository.
Manualy doing:
pip install filelike
Gives this:
Collecting filelike==0.5.0
Using cached filelike-0.5.0.tar.gz (35 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\keith\AppData\Local\Temp\pip-install-w6hga3lu\fileli
ke_3dc3c6efb7fe4b15bc5e3bed6dda846e\setup.py'"'"'; file='"'"'C:\Users\keith\AppData\Local\Temp\pip-install-w6hga3lu\filelike_3dc3c6efb7fe4b15bc5e3bed6dda846
e\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');cod
e = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\keith\AppData\Local\Temp\pip-p
ip-egg-info-hb5rv494'
cwd: C:\Users\keith\AppData\Local\Temp\pip-install-w6hga3lu\filelike_3dc3c6efb7fe4b15bc5e3bed6dda846e
Complete output (1 lines):
error in filelike setup command: use_2to3 is invalid.

WARNING: Discarding https://files.pythonhosted.org/packages/68/30/912d8be3957f1ed545ca156a3bfa8c65f5137febff08dcd4bf08bc29a1b8/filelike-0.5.0.tar.gz#sha256=b1f4324f9c6e
a630473c3f4e8f86395fd76412e21cc25effc236e2eb6aa2b239 (from https://pypi.org/simple/filelike/). Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
ERROR: Could not find a version that satisfies the requirement filelike==0.5.0 (from versions: 0.3.5p1, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0
.3.4, 0.3.5, 0.3.6, 0.3.7, 0.4.0, 0.4.1, 0.5.0)
ERROR: No matching distribution found for filelike==0.5.0

@Timtam
Copy link
Owner

Timtam commented Dec 29, 2021

Thanks for pointing that out. Will get rid of that dependency and replace it with a more pythonic EAFP solution soon. Will come together with the Python 2 support drop.

Timtam added a commit that referenced this issue Feb 18, 2022
get rid of python 2.7 / 3.5 requirements
remove filelike dependency  (closes #1)

raise warnings whenever a fileobject doesn't yield the expected method results or raises an exception instead of checking if the file object is a real file-like object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants