[Planetlab-devel] Unable to run gimport.py when building
geniwrapper
Thierry Parmentelat
thierry.parmentelat at sophia.inria.fr
Thu Jun 25 05:31:23 EDT 2009
As 0.2-5 might have been a bit off, I have snapshot a 0.2-6 tag from
the current trunk, that should show up in the next nightly builds
also, once you've yum installed geniwrapper for the first time,
upgrading to the actual trunk should be mostly a matter of installing
the python files as appropriate, as long as the c code is not affected
which has not happened for a while
On Jun 25, 2009, at 5:59 AM, Chris Tracy wrote:
> Hi Ming,
>
> The GENIWrapper instructions I had posted on my wiki are a little
> obsolete, sorry about that!
>
> I just re-deployed GENIWrapper with MyPLC v4.3 and have it working --
> I will post these to the wiki within the next couple of days.
>
> In general, I just ran 'yum install geniwrapper' inside the vserver
> hosting myplc. This seems to install the latest tagged release
> (0.2-5) under /usr/local/share/geniwrapper:
>
> [myplc] / # yum list | grep geniwrapper
> geniwrapper.i386 0.2-5.planetlab
> installed
>
> Then I followed the procedure in INSTALL.txt, running geni-config-tty,
> ignored the initial traceback (which complains about the .pkey), then
> I ran gimport.py, re-ran geni-config-tty (just press 'q'), then
> started geniwrapper with '/etc/init.d/geniwrapper start', finally
> updated /etc/sysconfig/iptables in root context to allow incoming
> connections to ports 12345/12346/12347 from my IP range:
>
> -A RH-Firewall-1-INPUT -s [ip range] -p tcp --dport 12345 -j ACCEPT
> -A RH-Firewall-1-INPUT -s [ip range] -p tcp --dport 12346 -j ACCEPT
> -A RH-Firewall-1-INPUT -s [ip range] -p tcp --dport 12347 -j ACCEPT
>
> ...and run /etc/init.d/iptables restart. Then I configured
> cmdline/configSfi.sh, ran 'source configSfi.sh', stuck my private RSA
> key into ~/.sfi/[user].pkey, and 'sfi.py [...]' now works as expected.
>
> -Chris
>
>
> On Wed, Jun 24, 2009 at 03:20:39PM -0400, Mingliang Ma wrote:
>> Hi,
>>
>> I fixed the SyntaxError when excuting setup.py by upgrating
>> python to 2.5.
>> But again when i execute gimport.py it gives me an invalid syntax
>> error.
>> Is there any package i didn't install? currently, i have*
>> pyOpenSSL-0.9-1,
>> m2crypto-0.16-6, make, and gcc-4.1.2-44 installed on my PC.
>>
>> This is the error i got when i executing gimport.py
>>
>> -bash-3.2# python gimport.py
>> Traceback (most recent call last):
>> * File "gimport.py", line 23, in ?
>> *** from geni.util.trustedroot import *
>> * File "/usr/lib/python2.4/site-packages/geni/util/
>> trustedroot.py", line 6
>> *** class TrustedRootList():
>> ************************* ^
>> SyntaxError: invalid syntax
>>
>> On Wed, Jun 24, 2009 at 1:59 PM, Mingliang Ma
>> <[1]mingliang.ma.research at gmail.com> wrote:
>>
>> Hi Danny,
>>
>> Thanks for replying me, I tried "python setup.py install" but
>> it gives
>> me the following SyntaxErrors. do you know how to fix this?
>>
>> -bash-3.2# python setup.py install
>> running install
>> running build
>> running build_py
>> running build_scripts
>> running install_lib
>> byte-compiling /usr/lib/python2.4/site-packages/geni/util/
>> hierarchy.py
>> to hierarchy.pyc
>> * File "/usr/lib/python2.4/site-packages/geni/util/
>> hierarchy.py", line
>> 28
>> *** class AuthInfo():
>> ****************** ^
>> SyntaxError: invalid syntax
>> byte-compiling /usr/lib/python2.4/site-packages/geni/util/
>> genitable.py
>> to genitable.pyc
>> * File "/usr/lib/python2.4/site-packages/geni/util/
>> genitable.py", line
>> 16
>> *** class GeniTable():
>> ******************* ^
>> SyntaxError: invalid syntax
>> byte-compiling /usr/lib/python2.4/site-packages/geni/util/
>> geniclient.py
>> to geniclient.pyc
>> * File "/usr/lib/python2.4/site-packages/geni/util/
>> geniclient.py", line
>> 69
>> *** class GeniClient():
>> ******************** ^
>> SyntaxError: invalid syntax
>> byte-compiling /usr/lib/python2.4/site-packages/geni/util/
>> trustedroot.py
>> to trustedroot.pyc
>> * File "/usr/lib/python2.4/site-packages/geni/util/
>> trustedroot.py", line
>> 6
>> *** class TrustedRootList():
>> ************************* ^
>> SyntaxError: invalid syntax
>> byte-compiling /usr/lib/python2.4/site-packages/geni/util/
>> rspec.py to
>> rspec.pyc
>> * File "/usr/lib/python2.4/site-packages/geni/util/rspec.py",
>> line 8
>> *** class Rspec():
>> *************** ^
>> SyntaxError: invalid syntax
>> running install_scripts
>> changing mode of /usr/bin/geni-config-tty to 755
>> changing mode of /usr/bin/gimport.py to 755
>> changing mode of /usr/bin/sfi.py to 755
>> changing mode of /usr/bin/plc.py to 755
>> running install_data
>> On Wed, Jun 24, 2009 at 1:41 PM, Danny Y. Huang <[2]yh1 at williams.edu
>> >
>> wrote:
>>
>> Hi Ming,
>>
>> In addition to your steps, I also ran the setup script in the
>> directory "geniwrapper/trunk". Do "sudo python setup.py
>> install" and
>> that works for me. I hope this helps.
>>
>> Best,
>> Danny
>> [3]http://sysnet1.cs.williams.edu
>>
>> On Wed, Jun 24, 2009 at 1:27 PM, Mingliang Ma
>> <[4]mingliang.ma.research at gmail.com> wrote:
>>
>> Hi,
>>
>> I'm using vserver with Centos 5. the MyPLC 4.3 is running
>> fine. i'm
>> trying to install geniwrapper. I followed the tutorial from
>> [5]http://www.maxgigapop.net/twiki/bin/view/GENI/Deploying-MyPLC
>> .
>> But it give me an "ImportError: No module named
>> geni.util.cert"
>> *when i executing gimport.py
>>
>> below are the steps i did:
>>
>> 1. I installed pyOpenSSL, m2crypto, make, and gcc.
>> 2. i check out the geniwrapper from the svn repository
>> "[6]http://svn.planet-lab.org/svn/geniwrapper/trunk" to
>> "/usr/local/share/<geniwrapper>"
>> 3. Add the path to the systems PYTHONPATH.* "ln -s
>> /usr/local/share/geniwrapper/geni
>> /usr/lib/python2.5/site-packages/geni"
>> 4. then I execute "python gimport.py"
>>
>> the output:
>>
>> bash-3.2# python gimport.py
>> Traceback (most recent call last):
>> * File "gimport.py", line 22, in ?
>> *** from geni.util.cert import *
>> ImportError: No module named geni.util.cert
>>
>> is there any steps i missed? I'm very appreciate if someone
>> can help
>> me out?
>>
>> Thank you,
>>
>> Ming
>>
>> _______________________________________________
>> Devel mailing list
>> [7]Devel at lists.planet-lab.org
>> [8]https://lists.planet-lab.org/mailman/listinfo/devel
>>
>> _______________________________________________
>> Devel mailing list
>> [9]Devel at lists.planet-lab.org
>> [10]https://lists.planet-lab.org/mailman/listinfo/devel
>>
>> References
>>
>> Visible links
>> 1. mailto:mingliang.ma.research at gmail.com
>> 2. mailto:yh1 at williams.edu
>> 3. http://sysnet1.cs.williams.edu/
>> 4. mailto:mingliang.ma.research at gmail.com
>> 5. http://www.maxgigapop.net/twiki/bin/view/GENI/Deploying-MyPLC
>> 6. http://svn.planet-lab.org/svn/geniwrapper/trunk
>> 7. mailto:Devel at lists.planet-lab.org
>> 8. https://lists.planet-lab.org/mailman/listinfo/devel
>> 9. mailto:Devel at lists.planet-lab.org
>> 10. https://lists.planet-lab.org/mailman/listinfo/devel
>
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.planet-lab.org
>> https://lists.planet-lab.org/mailman/listinfo/devel
>
>
> --
> Chris Tracy
> Mid-Atlantic Crossroads (MAX)
> Office phone: 301.314.6655
> GPG key: 0xB3B9C93D
> _______________________________________________
> Devel mailing list
> Devel at lists.planet-lab.org
> https://lists.planet-lab.org/mailman/listinfo/devel
More information about the Devel
mailing list