Error when running VTS script using GENI-lib

23 views
Skip to first unread message

Abdul Navaz

unread,
Jul 31, 2014, 9:13:15 PM7/31/14
to geni-...@googlegroups.com, Gurkan, Deniz
Hi 

I am doing experiment on VTS and trying to use GENI-lib.  I set up a GENI-lib as mentioned in the page  http://groups.geni.net/geni/wiki/HowTo/SetupGENILIB .  After that I was trying to run the script  “vts_test_L2MAC.py"  from the page "https://barnstorm.atlassian.net/wiki/display/VTS/VTS+Tutorial+Materials” . 

I have made changes to script by passing my username credentials . I have attached the file for the reference.  When I try to run the script I am getting the below error message. Could you please tell me how can I fix this issue.?

Abduls-MacBook-Pro:samples abdulnavaz$ python vts_test_L2MAC.py 

Traceback (most recent call last):

  File "vts_test_L2MAC.py", line 17, in <module>

    import geni.aggregate.instageni as IG

  File "/Users/abdulnavaz/geni-lib/geni/aggregate/__init__.py", line 3, in <module>

    from . import apis

  File "/Users/abdulnavaz/geni-lib/geni/aggregate/apis.py", line 5, in <module>

    from ..gcf import oscript

  File "/Users/abdulnavaz/geni-lib/geni/gcf/oscript.py", line 117, in <module>

    from .omnilib.util import OmniError, AMAPIError

  File "/Users/abdulnavaz/geni-lib/geni/gcf/omnilib/util/__init__.py", line 27, in <module>

    from . import handler_utils

  File "/Users/abdulnavaz/geni-lib/geni/gcf/omnilib/util/handler_utils.py", line 36, in <module>

    from . import credparsing as credutils

  File "/Users/abdulnavaz/geni-lib/geni/gcf/omnilib/util/credparsing.py", line 37, in <module>

    from ...sfa.trust.credential import Credential

  File "/Users/abdulnavaz/geni-lib/geni/gcf/sfa/trust/credential.py", line 51, in <module>

    from .credential_legacy import CredentialLegacy

  File "/Users/abdulnavaz/geni-lib/geni/gcf/sfa/trust/credential_legacy.py", line 35, in <module>

    from .certificate import Certificate

  File "/Users/abdulnavaz/geni-lib/geni/gcf/sfa/trust/certificate.py", line 47, in <module>

    import M2Crypto

ImportError: No module named M2Crypto

Abduls-MacBook-Pro:samples abdulnavaz$ 





Thanks & Regards,

Abdul Navaz
Research Assistant
University of Houston Main Campus, Houston TX

vts_test_L2MAC.py

Xuan Liu

unread,
Jul 31, 2014, 9:35:11 PM7/31/14
to geni-...@googlegroups.com
I think you may need to install the module m2crypto. If you are using MacPort, can you run the following and try it again?

sudo port install py27-m2crypto

I may have this module installed on my system already when I tested geni-lib set up. 

Thanks,

Xuan

--
GENI Users is a community supported mailing list, so please help by responding to questions you know the answer to.
 
If this is your first time posting a question to this list, please review http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList
---
You received this message because you are subscribed to the Google Groups "GENI Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geni-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abdul Navaz

unread,
Aug 1, 2014, 1:21:34 AM8/1/14
to geni-...@googlegroups.com, Gurkan, Deniz

Hello ,

Issue is fixed now.  Thank you professor. The problem was with missing module “m2crypto”.  Installing pcre , swig  then  m2crypto using “pip install m2crypto” fix the issue. Sorry for the trouble.


Thanks & Regards,

Abdul Navaz
Research Assistant
University of Houston Main Campus, Houston TX


From: "Gurkan, Deniz" <dgu...@Central.UH.EDU>
Date: Thursday, July 31, 2014 at 8:48 PM
To: Abdul Navaz <nava...@gmail.com>
Subject: Re: Error when running VTS script using GENI-lib

Abdul,

Can you pull the repo one more time? I think you are missing some modules. 

Best,
Deniz
<vts_test_L2MAC.py>

Abdul Navaz

unread,
Aug 1, 2014, 1:27:17 AM8/1/14
to geni-...@googlegroups.com
Thank you Xuan. Yes That was the problem . Fixed now. 

Regards,
Navaz

Xuan Liu

unread,
Aug 1, 2014, 9:24:21 AM8/1/14
to geni-...@googlegroups.com
Thank you for your report. I have updated the HowTo page. 

- Xuan
Reply all
Reply to author
Forward
0 new messages