Project-GrADyS / gradys-simulations

Simulations from Project GrADyS on OMNET++ and INET framework
GNU General Public License v3.0
14 stars 10 forks source link

PyDev- Interpreter Grammar Configuration #34

Open iiha7 opened 2 months ago

iiha7 commented 2 months ago

Hi, I am currently trying to run the project. I am using an Ubuntu 20.04 OS. I completed all the steps until this part "Last but not least we have to ensure that the python installation is correctly configured and we have our simulator package properly installed. For this we have to go into the PyDev - Interpreter / Grammar Settings and select our installed python environment in which we want to install the simulator package. In our case we have set up a new python installation with pyenv.One way of doing this is shown here: https://github.com/pyenv/pyenv. Afterwards we go into the python project and can run pip install . in the root of the project." successfully.

I downloaded Python 3.11.4 using pyenv, but I am not sure how to select the python environment in the PyDev - Interpreter / Grammar Settings tab. I checked the figure in the documentation, but nothing in it was changed from the default settings. Could you provide some detailed steps about this step?

Also, it says "Afterwards we go into the python project and can run pip install . in the root of the project" After I downloaded python 3.11.4 from pyenv, I could not find any setup.py file in any directory to do this step? Could you also explain how this step could be executed?

Thanks in advance.

Thlamz commented 2 months ago

Hello! Can I recommend that you run the virtual machine available in our documentation (download)?. I agree that the documentation here is probably wrong, it was very hard for us to get OMNeT++ working properly consistently across many setups (one of the motiviations for the python simulator), so the installation process is kind of lacking.

Using a VM is not a very good developer experience, but maybe you can check out how it works and see it anything there can help you set it up on your own machine. In the meantime, we will try working on better setup instructions, but that might take a while.

iiha7 commented 2 months ago

Thanks a lot. I will try that, and also wait for any updates :). I am currently working on simulating data collection from sensors through UAVs in my research, so that is why I found your work quite interesting and valuable. I had a question to ask about the Python simulator. It is mentioned that there is an integrated mode that allows the python code written using the Gradys library be ran on OMNET++. Is there any tutorial or maybe steps to follow to achieve that? for example, how could I run the simple protocol program shared in the documentation of gradys next gen on OMNET++?

Thlamz commented 2 months ago

There is an example of this repository running a python protocol from OMNeT++: https://github.com/Project-GrADyS/gradys-simulations/tree/main/showcases/sim/python_simulation. Hope this helps!