Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyDev- Interpreter Grammar Configuration #34

Closed
iiha7 opened this issue Apr 22, 2024 · 4 comments
Closed

PyDev- Interpreter Grammar Configuration #34

iiha7 opened this issue Apr 22, 2024 · 4 comments

Comments

@iiha7
Copy link

iiha7 commented Apr 22, 2024

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
Copy link
Collaborator

Thlamz commented Apr 23, 2024

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
Copy link
Author

iiha7 commented Apr 28, 2024

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
Copy link
Collaborator

Thlamz commented Apr 30, 2024

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!

@Thlamz
Copy link
Collaborator

Thlamz commented Jan 16, 2025

Closing because of inactivity

@Thlamz Thlamz closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants