-
Notifications
You must be signed in to change notification settings - Fork 51
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: No module named frenetic #551
Comments
The frenetic/lang/python/frenetic/syntax.py Line 741 in 8a8d863
Is it possible you got an out-of-date version from pip? |
I had a go at getting Frenetic up and running today and ran into this issue too. @jnfoster's hunch seems correct. Looks like pip's pulling down an old version, so instead I installed frenetic like so (in the VM):
I then tried to install pycurl with pip, but got an error, so I copied OP and did Just as some general feedback for the maintainers of this project, the installation process in the GitHub readme is a little out of date. It's also potentially confusing to newcomers that the VM doesn't come with the Frenetic Python module pre-installed as the programmers' guide, which OP and I are both following, seems to imply that everything's good to go. EDIT: There's some relevant information here. EDIT2: Oh, and the programmers' guide says that the VM's user account is |
@Subject22 Thanks! Your comments/critiques are well taken. Sorry for the trouble and thanks for following up so well. @arjunguha Could you update the pip package? It seems you are the maintainer: We should also push a new VM and correct the instructions associated with it. |
Will do, thanks @Subject22 |
I've pushed a new Python package (version 4.1.0). @baxtersa would you regenerate the Frenetic tutorial VM with |
@arjunguha I see here that (collectively) you considered packaging the Frenetic VM with Vagrant/Atlas, but eventually decided against it. Have you considered just making a Vagrantfile available for the Frenetic VM? I would definitely find that useful, as might others. Just a thought 😊 Happy to go into why it would be useful for me. Also happy to have this discussion elsewhere, as this may not be the right place. |
I've uploaded the new VM image with the pip frenetic package, should be good to go. I'll work on updating various instructions in the next few days. I'll do a from-scratch rebuild of the image soon too; when installing the pip frenetic package I was getting a handful of filesystem permissions warnings, so I must have done something wrong when I created the frenetic user last time. When I do that I'll publish the bootstrap script in whatever form I end up creating it. |
Any news about updating the VM or is there a better way to get started with Frenetic and NetKAT? The first error I get when running cd ~/src/frenetic
git pull
cd ~/src/frenetic/src/lang/python
sudo pip install .
# this complains that requirements are already satisfied, even though
# the package here is different from the one already installed in the VM,
# so I did:
sudo pip install . --upgrade Now Further investigation showed that many files under Next surprise, running cd ~/src/frenetic/src/lang/python
sudo pip install . --upgrade
python -m frenetic.examples.repeater ... now works and so does Please please update the instructions 🙏 and maybe put a script or Makefile in the VM which gets the simple repeater example up and running. And more annoying things about the VM: First, shortly after booting there is a notification about an ubuntu backup tool. Second, after running for a while the unattended upgrade job starts in the background — maybe rather disable all automatic updates? Third, Chrome says it crashed the last time. |
Installing from source is best for now. I have updated the instructions and removed all mention of the VM. |
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 terminalsudo mn --topo=single,2 --controller=remote
in second terminalpython repeater.py
in third terminal but got the error:so i try
sudo pip install frenetic
thenpython repeater.py
againafter that i
sudo apt-get install python-pycurl
andpython repeater.py
againhelp me pls இдஇ
The text was updated successfully, but these errors were encountered: