adjacentlink / emane

Distributed wireless network emulation framework
Other
127 stars 37 forks source link

emanegentransportxml not found in metadata #226

Open Lithimlin opened 1 year ago

Lithimlin commented 1 year ago

I'm trying to get the emane-tutorial running. I have installed EMANE 1.4.1 via CORE in a Ubuntu 22.04 VM. To achieve this, I followed the installation listed in CORE's dockerfile for Ubuntu.

When I try to set up the tutorial, I get the following:

~/emane-tutorial$ make
make[1]: Entering directory '/home/jeuler/emane-tutorial/0'
touch NO-host-emaneeventservice
touch NO-node-emane
touch NO-node-emaneeventd
touch NO-node-emanetransportd
touch NO-node-gpsd
touch NO-node-routing
basename: missing operand
Try 'basename --help' for more information.
if test -f platform1.xml; then chmod u+w platform1.xml; fi
sed -e 's|@NEMID[@]|1|g' -e 's|@NODEID[@]|1|g' -e 's|@NODEIDHEX[@]|01|g' -e 's|@DEMOID[@]|0|g' -e 's|@NEMXML[@]|bypassnem.xml|g ' -e 's|@TOPDIR[@]|/home/jeuler/emane-tutorial|g' -e 's|@OLSRTXTINFO[@]||g' -e 's|@NODECOUNT[@]|2|g' ../templates/platform.xml.template > platform1.xml
chmod g-w,u-w platform1.xml
mkdir .emanegentransportxml && \
 cd .emanegentransportxml &&   \
 emanegentransportxml ../platform1.xml && \
 for i in $(ls *.xml); do chmod g-w,u-w $i; cp -f $i ..; done && \
 cd .. && \
 rm -rf .emanegentransportxml
Traceback (most recent call last):
  File "/usr/bin/emanegentransportxml", line 4, in <module>
    __import__('pkg_resources').run_script('emane==1.4.1', 'emanegentransportxml')
  File "/opt/core/venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 656, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/opt/core/venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1441, in run_script
    raise ResolutionError(
pkg_resources.ResolutionError: Script 'scripts/emanegentransportxml' not found in metadata at '/opt/core/venv/lib/python3.10/site-packages/emane-1.4.1.dist-info'
make[1]: *** [../rules.mk:73: .platform1.xml-dep] Error 1
make[1]: Leaving directory '/home/jeuler/emane-tutorial/0'

The ResolutionError makes me believe that EMANE is not installed properly. However, when I go to emane/.debbuild and run apt install -f as written in the installation guide for Ubuntu, apt says that nothing needed to be updated or upgraded:

~/emane/.debbuild$ sudo apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

I have already asked in the CORE Discord server and there was redirected to this project instead. Does anyone have an idea what could be going wrong here?