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

autograd fail when setup #14

Open
gamdwk opened this issue Dec 22, 2023 · 1 comment
Open

autograd fail when setup #14

gamdwk opened this issue Dec 22, 2023 · 1 comment

Comments

@gamdwk
Copy link

gamdwk commented Dec 22, 2023

when I push my answer, It will raise error:

📝 Setup
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  Collecting flake[8](https://github.com/minitorch/minitorch-module-1-gamdwk/actions/runs/7295821833/job/19882743013#step:3:9)==5.0.4
    Downloading flake8-5.0.4-py2.py3-none-any.whl (61 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.[9](https://github.com/minitorch/minitorch-module-1-gamdwk/actions/runs/7295821833/job/19882743013#step:3:10)/61.9 KB 3.4 MB/s eta 0:00:00
  Collecting pyflakes<2.6.0,>=2.5.0
    Downloading pyflakes-2.5.0-py2.py3-none-any.whl (66 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.1/66.1 KB 8.0 MB/s eta 0:00:00
  Collecting pycodestyle<2.[10](https://github.com/minitorch/minitorch-module-1-gamdwk/actions/runs/7295821833/job/19882743013#step:3:11).0,>=2.9.0
    Downloading pycodestyle-2.9.1-py2.py3-none-any.whl (41 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.5/41.5 KB 11.0 MB/s eta 0:00:00
  Collecting mccabe<0.8.0,>=0.7.0
    Downloading mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB)
  Installing collected packages: pyflakes, pycodestyle, mccabe, flake8
  Successfully installed flake8-5.0.4 mccabe-0.7.0 pycodestyle-2.9.1 pyflakes-2.5.0
  WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  
  /usr/local/lib/python3.10/dist-packages/numpy/__init__.pyi:642: error: Positional-only parameters are only supported in Python 3.8 and greater
  Found 1 error in 1 file (errors prevented further checking)

I have never had such a problem on my local computer.
Why does Python 3.10 not support the 3.8 feature? How should I locate this error?
By the way, the isort for pre-commit should update to version 5.12.0, otherwise, an error will occur during submission. Please make the necessary changes.

@xuesu
Copy link

xuesu commented Feb 10, 2024

should use upper version of mypy

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