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

When attempting to run ryu-manager --version after installing Ryu in a virtual environment, the following ImportError occurs: ImportError: cannot #185

Open
engrabdinasir opened this issue Dec 14, 2023 · 1 comment

Comments

@engrabdinasir
Copy link

Ryu Bug Report

Issue Description:

When attempting to run ryu-manager --version after installing Ryu in a virtual environment, the following ImportError occurs:

ImportError: cannot

import name 'ALREADY_HANDLED' from 'eventlet.wsgi' (/path/to/eventlet/wsgi.py)


### Steps to Reproduce:

1. Create a virtual environment:

   
   python3 -m venv my_ryu_env
   

2. Activate the virtual environment:

   
   source my_ryu_env/bin/activate
   

3. Install Ryu and eventlet:

      pip install ryu eventlet==0.30.2
   

4. Attempt to run `ryu-manager --version`:

   ```bash
   ryu-manager --version

Expected Behavior:

The ryu-manager --version command should display the Ryu version without any ImportError.

Actual Behavior:

The ImportError occurs, preventing the successful execution of the command.

Environment:

  • Ryu Version: 4.34
  • Python Version: 3.10.12
    Operating System: ubunto 20.04 lte
  • Virtual Environment: Yes

Dependencies:

  • eventlet==0.30.2

Additional Information:

  • The issue persists even after downgrading eventlet to version 0.30.2.
  • Full traceback and error message are provided in the Steps to Reproduce.

Attempts to Resolve:

  1. Tried different versions of eventlet (0.33.3 and 0.30.2).
  2. Checked community forums for similar issues (provide links).

Reproducibility:

The issue is consistently reproducible.

@badcodebuilder
Copy link

This error has been mentioned in #166

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