need assistance with pip3 install ./model/ns3gym

13 views
Skip to first unread message

Palalani Palalani

unread,
Nov 18, 2025, 3:38:55 PM (2 days ago) Nov 18
to ns-3-users
i am trying to install ns3gym but i get an error below when i run command in the subject, i tried to run ./ns3 configure in /ns-allinone-3.42/ns-3.42  this error till persists, please assist
Screenshot from 2025-11-18 21-43-00.png

압둘하미드이드리스

unread,
Nov 18, 2025, 3:51:11 PM (2 days ago) Nov 18
to ns-3-...@googlegroups.com



Hi Palalani:

If you see something like:

File: ns3-gym/src/opengym/model/ns3gym/ns3gym/messages_pb2.py was not found

even after running ./ns3 configure, try this:

  1. Install protobufs

sudo apt update sudo apt install -y protobuf-compiler libprotobuf-dev protoc --version # should show 3.x.x
  1. Clean & rebuild ns-3

cd ns-3.42 ./waf clean ./waf configure --enable-examples --enable-tests ./waf build
  1. Generate Python protobuf manually (if needed)

cd src/opengym/model/ns3gym/ns3gym/ protoc --python_out=. messages.proto
  1. Install ns3gym

cd ../../../contrib/opengym pip install -e .

After that, messages_pb2.py should exist, and the install should work fine. (GPT: Source), although modified.


On Wed, Nov 19, 2025 at 5:39 AM Palalani Palalani <phi...@gmail.com> wrote:
i am trying to install ns3gym but i get an error below when i run command in the subject, i tried to run ./ns3 configure in /ns-allinone-3.42/ns-3.42  this error till persists, please assist
Screenshot from 2025-11-18 21-43-00.png

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-3-users/eb9ff77a-6417-4826-b6bb-0b3ef6c282c7n%40googlegroups.com.


--

Idris Adedamola Abdulhameed, M.Sc.
Ph.D. Candidate, School of Computer Science and Engineering, Kyungpook National University | Lecturer II (on Study Leave), The Polytechnic, Ibadan, Nigeria

─────────────────────────────

📧 Emails: iaabdu...@knu.ac.kr | abdulhamee...@polyibadan.edu.ng | iabdul...@pgschool.lautech.edu.ng | iaabdu...@ieee.org
🔗 LinkedIn: linkedin.com/in/idris-abdulhameed | Google Scholar: scholar.google.com/citations?user=QriU8s4AAAAJ&hl=en | GitHub: github.com/idris0001

Palalani Palalani

unread,
Nov 19, 2025, 1:15:34 AM (yesterday) Nov 19
to ns-3-...@googlegroups.com
HIdris

thank you for your quick response, i ran commands 1,3 & 4 3 failed and gave me a work sound which i did then i got the error below when running pip install -e

whats your take should i proceed with the recommendation? by the way i am looking for a mentor, i am doing msc in computing with a research topic on TCP congestion management.

image.png


압둘하미드이드리스

unread,
Nov 19, 2025, 1:21:30 AM (yesterday) Nov 19
to ns-3-...@googlegroups.com
Yes, you need to follow that instruction to create the environment virtually, 


Palalani Palalani

unread,
Nov 19, 2025, 9:02:17 AM (yesterday) Nov 19
to ns-3-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages