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

Can not Install Ryu: AttributeError: module 'setuptools.command.easy_install' has no attribute 'get_script_args' #201

Open
faniAhmed opened this issue Sep 16, 2024 · 1 comment

Comments

@faniAhmed
Copy link

faniAhmed commented Sep 16, 2024

I have been trying to install Ryu for few days but was not able to get around this error. I have been stuck for long and need to install it as soon as possible to continue working.

fani@fani-VMware-Virtual-Platform:~/ryu$ pip install . --break-system-packages
Defaulting to user installation because normal site-packages is not writeable
Processing /home/fani/ryu
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/fani/ryu/setup.py", line 21, in <module>
          ryu.hooks.save_orig()
        File "/home/fani/ryu/ryu/hooks.py", line 36, in save_orig
          _main_module()._orig_get_script_args = easy_install.get_script_args
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'setuptools.command.easy_install' has no attribute 'get_script_args'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@ZAHID188
Copy link

ZAHID188 commented Sep 20, 2024

I had the same issue

Python 3.8.19
pip 24.2 from C:\mycodes\envs\python\lib\site-packages\pip (python 3.8)

** Downgrading setuptools Solved my problem **

pip uninstall setuptools
pip install setuptools==67.6.1
cd ryu, pip install .

Thank you

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