Skip to content

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

Open
@engrabdinasir

Description

@engrabdinasir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions