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

Support python 3.10 #134

Closed
davfsa opened this issue Dec 18, 2020 · 10 comments
Closed

Support python 3.10 #134

davfsa opened this issue Dec 18, 2020 · 10 comments

Comments

@davfsa
Copy link

davfsa commented Dec 18, 2020

With python 3.10 already in alpha, I started adding it to the pipelines of a project I'm maintaining. But unfortunately, the build seems to fail in this dependency.

Hope this is fixed 😄

Logs:

@saghul
Copy link
Owner

saghul commented May 11, 2021

master is now in better shape. You're welcome to create a PR that tests Python 3.10. We're now using GH actions on all platforms, so it's hopefully easier to do.

@Hanaasagi
Copy link
Contributor

Hi, aiohttp is trying to add support for Python 3.10 experimental builds. Maybe I can do something for this.

Link: PR aio-libs/aiohttp#5927 and issue aio-libs/aiohttp#5905

@Hanaasagi
Copy link
Contributor

Is there any release plan for Python 3.10?

@saghul
Copy link
Owner

saghul commented Sep 24, 2021

This package is ready as of 4e6e36f

It's a matter of making the release.

When will 3.10 be out?

@Hanaasagi
Copy link
Contributor

According to the PEP-619, 3.10.0 final is 2021-10-04.

@saghul
Copy link
Owner

saghul commented Sep 25, 2021

I'll take a look next week, maybe we can release wheels already.

@pratyushmittal
Copy link

Hey, the pip install seems to be giving errors on Python 3.10. It gives the error No matching distribution found for pycares==4.0.0.

I am not sure if the problem error is related to this. Pasting the error logs below:

command: /opt/hostedtoolcache/Python/3.10.0/x64/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2yau9wry/pycares_b8e938f971d0495ebb6e7336403d39e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2yau9wry/pycares_b8e938f971d0495ebb6e7336403d39e4/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 /tmp/pip-pip-egg-info-ht9t57ju
238
       cwd: /tmp/pip-install-2yau9wry/pycares_b8e938f971d0495ebb6e7336403d39e4/
239
  Complete output (44 lines):
240
  WARNING: The wheel package is not available.
241
    ERROR: Command errored out with exit status 1:
242
     command: /opt/hostedtoolcache/Python/3.10.0/x64/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-nff547xn/cffi_bce031234f754680a30d002ade901430/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-nff547xn/cffi_bce031234f754680a30d002ade901430/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'"'"'))' bdist_wheel -d /tmp/pip-wheel-ebwvzqm_
243
         cwd: /tmp/pip-wheel-nff547xn/cffi_bce031234f754680a30d002ade901430/
244
    Complete output (6 lines):
245
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
246
       or: setup.py --help [cmd1 cmd2 ...]
247
       or: setup.py --help-commands
248
       or: setup.py cmd --help
249
  
250
    error: invalid command 'bdist_wheel'
251
    ----------------------------------------
252
    ERROR: Failed building wheel for cffi
253
  ERROR: Failed to build one or more wheels
254
  Traceback (most recent call last):
255
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
256
      subprocess.check_call(cmd)
257
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/subprocess.py", line 369, in check_call
258
      raise CalledProcessError(retcode, cmd)
259
  subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.10.0/x64/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpusg85y7j', '--quiet', 'cffi>=1.5.0']' returned non-zero exit status 1.
260
  
261
  The above exception was the direct cause of the following exception:
262
  
263
  Traceback (most recent call last):
264
    File "<string>", line 1, in <module>
265
    File "/tmp/pip-install-2yau9wry/pycares_b8e938f971d0495ebb6e7336403d39e4/setup.py", line 16, in <module>
266
      setup(name             = 'pycares',
267
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
268
      _install_setup_requires(attrs)
269
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
270
      dist.fetch_build_eggs(dist.setup_requires)
271
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/setuptools/dist.py", line 785, in fetch_build_eggs
272
      resolved_dists = pkg_resources.working_set.resolve(
273
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 766, in resolve
274
      dist = best[req.key] = env.best_match(
275
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1051, in best_match
276
      return self.obtain(req, installer)
277
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1063, in obtain
278
      return installer(requirement)
279
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/setuptools/dist.py", line 844, in fetch_build_egg
280
      return fetch_build_egg(self, req)
281
    File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/setuptools/installer.py", line 77, in fetch_build_egg
282
      raise DistutilsError(str(e)) from e
283
  distutils.errors.DistutilsError: Command '['/opt/hostedtoolcache/Python/3.10.0/x64/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpusg85y7j', '--quiet', 'cffi>=1.5.0']' returned non-zero exit status 1.
284
  ----------------------------------------
285
WARNING: Discarding https://files.pythonhosted.org/packages/25/5a/ed8cc3340b7e83a5e572b5d27387a968a7e52b1e3c269442076ca902b7ba/pycares-4.0.0.tar.gz#sha256=d0154fc5753b088758fbec9bc137e1b24bb84fc0c6a09725c8bac25a342311cd (from https://pypi.org/simple/pycares/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
286
ERROR: Could not find a version that satisfies the requirement pycares==4.0.0 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 1.0.0, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.2.0, 2.3.0, 2.4.0, 3.0.0b0, 3.0.0b1, 3.0.0b2, 3.0.0b3, 3.0.0b4, 3.0.0b5, 3.0.0, 3.1.0, 3.1.1, 3.2.0, 3.2.3, 4.0.0)
287
ERROR: No matching distribution found for pycares==4.0.0

Hope this helps in better debugging.

Please let me know if I can help in anyway to fix this.

@pratyushmittal
Copy link

Hey, sorry for the trouble. Doing pip install wheel solved it.

@ChrisLovering
Copy link
Contributor

3.10 is out now, I believe we can make a release and build some wheels! :D

@saghul
Copy link
Owner

saghul commented Oct 18, 2021

4.1.1 is out, with wheels for 3.10: https://pypi.org/project/pycares/4.1.1/#files

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