Skip to content

ImportError: No module named frenetic #551

@nickycyee

Description

@nickycyee

I follow the Programmers Guide
install VirtualBox and import the .OVA from http://download.frenetic-lang.org/uservm/frenetic-uservm-current . Then i git clone https://github.com/frenetic-lang/manual.
after that i frenetic http-controller --verbosity debug in first terminal
sudo mn --topo=single,2 --controller=remote in second terminal
python repeater.py in third terminal but got the error:

Traceback (most recent call last):
File "repeater.py", line 1, in
import frenetic
ImportError: No module named frenetic

so i try sudo pip install frenetic then python repeater.py again

Traceback (most recent call last):
File "repeater.py", line 1, in
import frenetic
File "/usr/local/lib/python2.7/dist-packages/frenetic/init.py", line 10, in
AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient")
File "/usr/local/lib/python2.7/dist-packages/tornado/httpclient.py", line 286, in configure
super(AsyncHTTPClient, cls).configure(impl, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/util.py", line 320, in configure
impl = import_object(impl)
File "/usr/local/lib/python2.7/dist-packages/tornado/util.py", line 153, in import_object
obj = import('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
File "/usr/local/lib/python2.7/dist-packages/tornado/curl_httpclient.py", line 24, in
import pycurl # type: ignore
ImportError: No module named pycurl

after that i sudo apt-get install python-pycurl and python repeater.py again

Starting the tornado event loop (does not return).
ERROR:tornado.application:Exception in callback <functools.partial object at 0x7fb61cdafd08>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 604, in _run_callback
ret = callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/frenetic/init.py", line 130, in __handle_connect
self.connected()
File "repeater.py", line 9, in connected
self.update( id >> SendToController("repeater_app") )
NameError: global name 'SendToController' is not defined

help me pls இдஇ

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