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

Pip having python2 syntax #220

Open
Kaki-In opened this issue Apr 23, 2024 · 0 comments
Open

Pip having python2 syntax #220

Kaki-In opened this issue Apr 23, 2024 · 0 comments

Comments

@Kaki-In
Copy link

Kaki-In commented Apr 23, 2024

When I run pip, I always get this error :

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      Traceback (most recent call last):
        File "/data/user/0/org.qpython.qpy/files/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/data/user/0/org.qpython.qpy/files/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/data/user/0/org.qpython.qpy/files/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-pwk4foso/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-pwk4foso/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-pwk4foso/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-pwk4foso/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 33
          print 'looking for', f
          ^^^^^^^^^^^^^^^^^^^^^^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
      [end of output]

The provided file, /storage/emulated/0/Android/data/org.qpython.qpy/files/cache/pip-build-env-pwk4foso/overlay/lib/python3.11/site-packages/setuptools/build_meta.py, seems to ba a part of pip and contains old python2 syntax. Could you fix this please?

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

1 participant