Coder Social home page Coder Social logo

Comments (3)

pgawlowicz avatar pgawlowicz commented on July 17, 2024 1

Hi,

Thank you for pointing out this issue.

The readme file was simply wrong, and I have already fixed it (swapped points 3 and 4).
First, you have to run:
./waf configure
that generates both C++ and Python Protocol Buffer messages and only then you can install python module using:
pip3 install ./src/opengym/model/ns3gym

In addition, I have added some more checks to prevent installing python module without messages_pb2.py file as well as forcing to use protoc compiler in version 3.

Best,
Piotr

from ns3-gym.

pgawlowicz avatar pgawlowicz commented on July 17, 2024 1

Hi,
Probably ns3 project is being built during this long time. You should build the project before using:
./waf build

If you install the ns3gym python module inside a virtual environment, you have to build ns3 in the same virtual env, using ./waf build

However, the build is done only once and then examples should run immediately.

BR,
Piotr

from ns3-gym.

huckiyang avatar huckiyang commented on July 17, 2024

Dear Piotr

thanks for the kind reply, I will try your solution.
I manually added the messages_pb2.py a few hours ago.
in the path

python3.6/site-packages/ns3gym/

the error message seems to disappear.
btw, does it take a long while to initiate the gym.make('ns3-v0'), more than 10min?

from ns3-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.