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

PyPI lib version (0.5.2) doesn't work with python 3.10 #44

Closed
elchupanebrej opened this issue Oct 13, 2021 · 5 comments
Closed

PyPI lib version (0.5.2) doesn't work with python 3.10 #44

elchupanebrej opened this issue Oct 13, 2021 · 5 comments

Comments

@elchupanebrej
Copy link

elchupanebrej commented Oct 13, 2021

Installing PyPI version of this lib produces a lot of next messages:

Using cached fn.py-0.4.3.tar.gz (32 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/goloveshkokonstantin/venv/bin/python3.10 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/setup.py'"'"'; __file__='"'"'/private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-pip-egg-info-n_rplav_
       cwd: /private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/
  Complete output (11 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/setup.py", line 6, in <module>
      import fn
    File "/private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/fn/__init__.py", line 1, in <module>
      from .stream import Stream
    File "/private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/fn/stream.py", line 9, in <module>
      from .iters import map, range
    File "/private/var/folders/2g/4nxj2yr14sx8nx_jf8yfkz6m0000gn/T/pip-install-thc9c89p/fn-py_d5536860a1c542198d6eae3fd653f26b/fn/iters.py", line 2, in <module>
      from collections import deque, Iterable
  ImportError: cannot import name 'Iterable' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)
  ----------------------------------------
@franckrasolo
Copy link

It was reported upstream and @lucasew proposed a fix that unfortunately never got merged.

@rodgarci
Copy link

Actually, I think this is already fixed in main with the merge #39, we only would need a new release.
@jacobbridges, this lib is really cool, it would be a pity if we could not use it with python 3.10, could you make a new release please ?

@vijaybvc1989
Copy link

Can we make a new release please?

@jacobbridges
Copy link

Apologies to all, life has been busy. I will try to get a release out this evening.

@jacobbridges
Copy link

@elchupanebrej this issue is resolved in v0.6.0. Please try installing again and apologies again for the delay.

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

5 participants