question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iopath does not support Python<3.8 anymore

See original GitHub issue

This commit https://github.com/facebookresearch/iopath/commit/f4e103f310434f4a70aba519a7a40fe28c4bc093 introduces from typing import Protocol which is only available after python 3.8. https://docs.python.org/3/library/typing.html#typing.Protocol

Please fix this as it has broken downstream projects that rely on iopath, e.g. https://github.com/facebookresearch/detectron2/runs/5100428039?check_suite_focus=true

In general, please revamp the open source CI and enable it so such issues can be caught: https://github.com/facebookresearch/iopath/blob/main/.circleci/config.yml

cc @sujitoc

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ppwwyyxxcommented, Mar 4, 2022

Hi @sujitoc , thanks a lot for fixing this issue using typing_extensions! However it appears that there is still another incompatibility with python<3.8. There is a failure that can be seen in the CI https://app.circleci.com/pipelines/github/facebookresearch/iopath/1/workflows/d79b49f1-5f0f-4ff4-8d65-ed8a35c0aa93/jobs/2:

  File "/home/circleci/iopath/iopath/common/file_io.py", line 1610
    g_pathmgr: PathManager = PathManagerFactory.get(defaults_setup=True)
    ^
SyntaxError: annotated name 'g_pathmgr' can't be global

Looking at the list of tags in https://github.com/python/cpython/commit/de2aea0ff02fa9486365ce9d215bef150fae3a0b, this is a syntax that’s supported only since Python3.8.

1reaction
sujitoccommented, Feb 18, 2022

We will fix it by using typing_extensions instead of typing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install detectron2 anymore · Issue #4386 - GitHub
hey, im running my colab cell to install detectron2, which always worked. Strangely, it doesn't anymore. The cell looks like: # READ THE ......
Read more >
Unable to upgrade Python 3.8.10 to 3.10 - SOLVED
I'm running Mint and tried to force up-grade P3.6 to P3.8. ... If you notice in the result, there is no Python3.10 executable...
Read more >
iopath · PyPI
A library for providing I/O abstraction.
Read more >
his error originates from a subprocess, and is likely not a ...
Solution 1. After many failed tentatives, what fixed the problem for me was executing: Python 3. 9. 8 (tags/v3. 9. 8 :bb3fdcf ...
Read more >
Install Python 3.8 kernel in Google Colaboratory
I have found how to run Python 3.8 notebook on Colab. install Anaconda3; add (fake) google.colab library; start jupyterlab; access it with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found