---------- Forwarded message ---------
From: Monika Prakash <[email protected]>
Date: Tue, Feb 19, 2019 at 12:41 AM
Subject: Re: [emane-users] error starting emane in core emulator
To: Dr. Ronny L. Bull <[email protected]>
Hi Dr.Ronny,
Thanks for your suggestion.
I did try to create a file
/usr/lib/python2.7/dist-packages/site-packages.pth
with the following content
../site-packages
I also checked with python interpreter
root@osboxes:~# python
Python 2.7.12 (default, Nov 12 2018, 14:36:49)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import emane
>>> emane
<module 'emane' from '/usr/lib/python2.7/dist-packages/emane/__init__.pyc'>
>>>
But still the issue is not fixed.
Please see below the complete log for your reference
ESSION 44409 STATE 3: INSTANTIATION at Mon Feb 18 22:19:21 2019
Setup EMANE with master=True.
error platform.xml: No declaration for attribute id of element
platform, line 4, column 35
error running emanegentransportxml: Command '['emanegentransportxml',
'platform.xml']' returned non-zero exit status 1
exception: emane (None) Warning: EMANE events will not be generated
because the emaneeventservice
binding was unable to load (install the python-emaneeventservice bindings)
Warning: EMANE events will not be generated because the emaneeventservice
binding was unable to load (install the python-emaneeventservice bindings)
setting user-defined EMANE log level: 2
/tmp/pycore.44409/platform.xml:4: element platform: validity error :
No declaration for attribute id of element platform
<platform id="1" name="Platform 1">
^
22:19:21.697340 ABORT ValidateException: Failed to parse document in
/tmp/pycore.44409/platform.xml.
Possible reason(s):
* file:///usr/share/emane/dtd/platform.dtd is missing'
* file:///usr/share/emane/dtd/platform.dtd inaccessible (network
unreachable/http down).
* file:///usr/share/emane/dtd/platform.dtd is incorrect (run xmllint
to validate).
exception: emane (None) error starting emane: Command '['emane', '-d',
'--logl', '2', '-f', '/tmp/pycore.44409/emane.log', '-r',
'/tmp/pycore.44409/platform.xml']' returned non-zero exit status 1
error starting emane: Command '['emane', '-d', '--logl', '2', '-f',
'/tmp/pycore.44409/emane.log', '-r',
'/tmp/pycore.44409/platform.xml']' returned non-zero exit status 1
Thread-5: exception while handling msg:
CoreEventMessage <msgtype = CORE_API_EVENT_MSG, flags = 0x0 <>>
CORE_TLV_EVENT_TYPE: 3
Traceback (most recent call last):
File "/usr/local/sbin/core-daemon", line 292, in handlemsg
replies = msghandler(msg)
File "/usr/local/sbin/core-daemon", line 1112, in handleeventmsg
self.session.instantiate(handler=self)
File "/usr/local/lib/python2.7/dist-packages/core/session.py", line
625, in instantiate
if self.emane.startup() == self.emane.NOT_READY:
File "/usr/local/lib/python2.7/dist-packages/core/emane/emane.py",
line 337, in startup
self.installnetifs()
File "/usr/local/lib/python2.7/dist-packages/core/emane/emane.py",
line 966, in installnetifs
emanenode.installnetifs(do_netns)
File "/usr/local/lib/python2.7/dist-packages/core/emane/nodes.py",
line 219, in installnetifs
netif.install()
File "/usr/local/lib/python2.7/dist-packages/core/netns/vif.py",
line 127, in install
self.waitfordevicelocal()
File "/usr/local/lib/python2.7/dist-packages/core/netns/vif.py",
line 109, in waitfordevicelocal
self.waitfor(localdevexists)
File "/usr/local/lib/python2.7/dist-packages/core/netns/vif.py",
line 99, in waitfor
raise RuntimeError, 'command failed after %s attempts' % attempts
RuntimeError: command failed after 10 attempts
Thanks for the help.
Regards
Monika
Research Associate
UAE University
I
On Tue, Feb 19, 2019 at 3:15 AM Dr. Ronny L. Bull <[email protected]>
wrote:
> Monika,
>
> I ran into this issue a few months ago as well and we solved it over on
> the core-users list here:
>
> https://publists.nrl.navy.mil/pipermail/core-users/2019-January/002399.html
>
> Hope this helps,
>
> Ronny
>
> On Mon, Feb 18, 2019, 2:28 PM Monika Prakash <[email protected]
> wrote:
>
>> Hi all,
>>
>> I want to use emane with core emulator. I have installed core 4.8 and
>> emane 1.2.3 in Ubuntu 16.4 LTS.
>>
>> I followed
>>
>> https://github.com/adjacentlink/emane/wiki/Install#ubuntu-1604-lts-amd64
>>
>> for installation of emane. And followed core manual for emane
>> configuration in /etc/core/core.conf.
>>
>> Emane is installed successfully, but it is not working with core.
>>
>> I get the following errors
>>
>> *-error starting emane: Command '['emane', '-d', '--logl', '3', '-f',
>> '/tmp/pycore.41291/emane.log', '-r', '/tmp/pycore.41291/platform.xml']'
>> returned non-zero exit status 1*
>>
>> *-Unable to publish EMANE events because eventservice python bindings
>> failed to load*
>>
>> Any insights will be highly appreciated.
>>
>> Thanks
>>
>> Monika
>>
>> Research Associate
>>
>> UAE University
>>
>>
>>
>>
>> _______________________________________________
>> emane-users mailing list
>> [email protected]
>> https://publists.nrl.navy.mil/mailman/listinfo/emane-users
>>
>
_______________________________________________
emane-users mailing list
[email protected]
https://publists.nrl.navy.mil/mailman/listinfo/emane-users