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

ImportError: cannot import name poll #1

Closed
AbdullahAlshraa opened this issue Apr 4, 2017 · 6 comments
Closed

ImportError: cannot import name poll #1

AbdullahAlshraa opened this issue Apr 4, 2017 · 6 comments

Comments

@AbdullahAlshraa
Copy link

AbdullahAlshraa commented Apr 4, 2017

when I try to Launch SPIDER:

$ cd ~/spider/src
$ sudo ryu-manager SPIDER_ctrl_WEBAPP.py

I get

Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 9, in
load_entry_point('ryu==3.29', 'console_scripts', 'ryu-manager')()
File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 88, in main
app_mgr.load_apps(app_lists)
File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 401, in load_apps
cls = self.load_app(app_cls_name)
File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 378, in load_app
mod = utils.import_module(name)
File "/usr/local/lib/python2.7/dist-packages/ryu/utils.py", line 91, in import_module
import(name)
File "/home/mininet/spider/src/SPIDER_ctrl_WEBAPP.py", line 25, in
import SPIDER_ctrl
File "/home/mininet/spider/src/SPIDER_ctrl.py", line 30, in
import SPIDER_parser
File "/home/mininet/spider/src/SPIDER_parser.py", line 33, in
from mininet.topo import Topo
File "build/bdist.linux-x86_64/egg/mininet/topo.py", line 14, in
File "build/bdist.linux-x86_64/egg/mininet/util.py", line 7, in
ImportError: cannot import name poll

how to handle with this situation

thanks in advance

@DavideSanvito
Copy link
Member

Hi Abdullah,
try to execute the following command:
$ sudo pip install -I eventlet==0.17.4
Best,
Davide

@AbdullahAlshraa
Copy link
Author

AbdullahAlshraa commented Apr 24, 2017

Thank you so much,
It works well.

@jwkim90
Copy link

jwkim90 commented Nov 19, 2018

This question and solution saved me, thank you very much!

@hangvane
Copy link

hangvane commented May 8, 2019

I had the same problem and this discuss saved me, thank you ! But I still want to know why eventlet=0.24.1 is unavailable but eventlet=0.18.4 is available for ryu=4.31

@DavideSanvito
Copy link
Member

I'm glad you solved your issue! SPIDER has been built on top of OpenState, which is based on Ryu 3.
I'm sorry but I'm not able to answer your question because we did not try to test or support a different version of Ryu.

@chenmiaojie03
Copy link

why can‘t I operate pip install -I eventlet==0.17.4,it leave with error

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

5 participants