Title: GitHub · Where software is built
Open Graph Title: PythonCharmers/python-future
X Title: PythonCharmers/python-future
Description: Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.
Open Graph Description: Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.
X Description: Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.
Opengraph URL: https://github.com/PythonCharmers/python-future
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3.8: ImportError: cannot import name 'splitattr' from 'urllib.request'","articleBody":"Hi, when i try to test future on Python 3.8.0a3, i get:\r\n\r\n```\r\n$ tox -e py38\r\nGLOB sdist-make: .../python-future/setup.py\r\npy38 inst-nodeps: .../python-future/.tox/.tmp/package/1/future-0.17.1.zip\r\npy38 installed: atomicwrites==1.3.0,attrs==19.1.0,future==0.17.1,linecache2==1.0.0,more-itertools==7.0.0,pluggy==0.9.0,py==1.8.0,pytest==4.4.0,six==1.12.0,traceback2==1.4.0,unittest2==1.1.0\r\npy38 run-test-pre: PYTHONHASHSEED='663560309'\r\npy38 runtests: commands[0] | pytest\r\n============================= test session starts ==============================\r\nplatform linux -- Python 3.8.0a3, pytest-4.4.0, py-1.8.0, pluggy-0.9.0\r\ncachedir: .tox/py38/.pytest_cache\r\nrootdir: .../python-future, inifile: pytest.ini\r\ncollected 1091 items / 1 errors / 1090 selected\r\n\r\n==================================== ERRORS ====================================\r\n_____________ ERROR collecting tests/test_future/test_urllibnet.py _____________\r\nImportError while importing test module '.../python-future/tests/test_future/test_urllibnet.py'.\r\nHint: make sure your test modules/packages have valid Python names.\r\nTraceback:\r\ntests/test_future/test_urllibnet.py:13: in \u003cmodule\u003e\r\n import future.moves.urllib.request as urllib_request\r\n.tox/py38/lib/python3.8/site-packages/future/moves/urllib/request.py:9: in \u003cmodule\u003e\r\n from urllib.request import (getproxies,\r\nE ImportError: cannot import name 'splitattr' from 'urllib.request' (/usr/lib64/python3.8/urllib/request.py)\r\n=============================== warnings summary ===============================\r\ntests/test_future/test_backports.py:13\r\ntests/test_future/test_backports.py:13\r\n .../python-future/tests/test_future/test_backports.py:13: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working\r\n from collections import Mapping, MutableMapping\r\n\r\ntests/test_future/test_range.py:9\r\ntests/test_future/test_range.py:9\r\n .../python-future/tests/test_future/test_range.py:9: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working\r\n from collections import Iterator, Sequence\r\n\r\ntests/test_future/test_urllib_response.py:11\r\n .../python-future/tests/test_future/test_urllib_response.py:11: PytestWarning: cannot collect test class 'TestFile' because it has a __init__ constructor\r\n class TestFile(object):\r\n\r\n.tox/py38/lib/python3.8/site-packages/past/builtins/misc.py:79\r\n .../python-future/.tox/py38/lib/python3.8/site-packages/past/builtins/misc.py:79: DeprecationWarning: 'U' mode is deprecated\r\n with open(filename, \"rbU\") as fin:\r\n\r\n-- Docs: https://docs.pytest.org/en/latest/warnings.html\r\n!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!\r\n===================== 6 warnings, 1 error in 0.64 seconds ======================\r\nERROR: InvocationError for command '.../python-future/.tox/py38/bin/pytest' (exited with code 2)\r\n___________________________________ summary ____________________________________\r\nERROR: py38: commands failed\r\n```\r\n\r\nThis is basically a duplicate of https://github.com/PythonCharmers/python-future/issues/350 and https://github.com/PythonCharmers/python-future/pull/382 but those are closed.\r\n\r\nSee also:\r\n\r\nhttps://bugs.python.org/issue35891\r\nhttps://bugs.python.org/issue27485\r\n","author":{"url":"https://github.com/hroncok","@type":"Person","name":"hroncok"},"datePublished":"2019-04-09T17:47:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/447/python-future/issues/447"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:8ca54b86-dc76-6744-c771-6ea9787ca2a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97E2:23762:3518DB:47526F:69697BAC |
| html-safe-nonce | e39e90b9be3515e42375f06701038fedd99b21a7274a20cb4135af8558797da7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0UyOjIzNzYyOjM1MThEQjo0NzUyNkY6Njk2OTdCQUMiLCJ2aXNpdG9yX2lkIjoiNDU4MDg1NDU4NDU3NjY3MDYzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5a7e4d7aa910276b4e631b90dd62d3d488ce924856eae537d3a9650e3a6ccc3 |
| hovercard-subject-tag | repository:11403699 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PythonCharmers/python-future/issues/447 |
| twitter:image | https://opengraph.githubassets.com/7b3fa59245cc09af4ade3edc74ad630cf4f5fcea4edfa96388ea2f745b73c725/PythonCharmers/python-future |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b3fa59245cc09af4ade3edc74ad630cf4f5fcea4edfa96388ea2f745b73c725/PythonCharmers/python-future |
| og:image:alt | Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-cache |
| go-import | github.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git |
| octolytics-dimension-user_id | 3365815 |
| octolytics-dimension-user_login | PythonCharmers |
| octolytics-dimension-repository_id | 11403699 |
| octolytics-dimension-repository_nwo | PythonCharmers/python-future |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11403699 |
| octolytics-dimension-repository_network_root_nwo | PythonCharmers/python-future |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width