-
I have installed 9.0.1 core and 1.2.5 emane together following the wiki instructions, and I have installed the emane python bindings aswell using If I run poetry shell in .../core/daemon/ and call import emane I get no errors, if I try one step further and import emane.events I get this error: Traceback (most recent call last): I don't quite know why core ins't able to spot the emane python bindings. Running poetry show doesn't seem to list emane as a package (although I don't know if it would show up here if everything was working), although running poetry shell then pip list shows emane version of 1.2.5. Any thoughts would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
What type of install did you do exactly for CORE? For You can view the CentOS Dockerfile as a good example of what exactly needs to be done: https://github.com/coreemu/core/blob/master/dockerfiles/Dockerfile.centos Depending on the OS being used, you may also need a more recent |
Beta Was this translation helpful? Give feedback.
-
So I think it could be that I need to upgrade protobuf to at least 3.19. I followed the same steps in the docker example to install the bindings as opposed to the steps the install_emane function runs through (the main difference is the last step of /opt/core/venv/bin/python -m pip install . in the docker and poetry run pip install in the install_emane), and I made sure to make my PYTHON=/opt/core/venv/bin/python. After doing this running core-daemon yields an error about the incorrect protoc version being used to generated files: |
Beta Was this translation helpful? Give feedback.
-
So I was able to get it to run after updating to protobuf 3.19.0. For anyone who lands here in the future to install the emane bindings properly on Ubuntu 18 I did the following: a. cd <core_repo>/.. |
Beta Was this translation helpful? Give feedback.
So I was able to get it to run after updating to protobuf 3.19.0. For anyone who lands here in the future to install the emane bindings properly on Ubuntu 18 I did the following:
a. cd <core_repo>/..
b. git clone https://github.com/adjacentlink/emane.git -b <vX.X.X>
c. cd emane
d. ./autogen.sh
e. PYTHON=/opt/core/venv/bin/python ./configure --prefix=/usr
f. cd src/python
g. make
h. sudo /opt/core/venv/bin/python -m pip install .