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

Running the Simulation for the first time generates error #9

Open
meirshad opened this issue Oct 12, 2020 · 5 comments
Open

Running the Simulation for the first time generates error #9

meirshad opened this issue Oct 12, 2020 · 5 comments

Comments

@meirshad
Copy link

Hello,
I want to run the FlyNetSim and as i try to run the simulation for the first time i get this error as bellow.

Traceback (most recent call last):
File "FlyNetSim.py", line 84, in
tree.write(xml_path + "/config.xml")
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 802, in write
file = open(file_or_filename, "wb")
IOError: [Errno 2] No such file or directory: '/home/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27/config.xml'

Regards
Irshad Ullah

@jpsgill
Copy link

jpsgill commented Oct 25, 2020

Give Absolute Path
Open FlyNetSim.py using gedit and change the
->tree.write(xml_path + "/config.xml") TO
->tree.write(xml_path + "Give absolute path here")

Hope this helps.

Best
Gill

@meirshad
Copy link
Author

meirshad commented Nov 2, 2020

Give Absolute Path
Open FlyNetSim.py using gedit and change the
->tree.write(xml_path + "/config.xml") TO
->tree.write(xml_path + "Give absolute path here")

Hope this helps.

Best
Gill

Thank you so much for the reply, even after providing the absolute path , i still get the error as bellow

File "FlyNetSim.py", line 85, in
tree.write(xml_path + "/home/irshad/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27/config.xml")
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 802, in write
file = open(file_or_filename, "wb")
IOError: [Errno 2] No such file or directory: '/home/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27/home/irshad/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27/config.xml'

@pj220iw
Copy link

pj220iw commented Dec 8, 2020

Having same issue. Any fix ?

@meirshad
Copy link
Author

Thanks for the reply,
I still got the same issue, is it possible if you can send me the screen shot in order to fix it, as i provided the absolute path but get the same error.
Thanks once again for sparing time.

@Wanjoo
Copy link

Wanjoo commented Mar 24, 2021

Thanks for the reply,
I still got the same issue, is it possible if you can send me the screen shot in order to fix it, as i provided the absolute path but get the same error.
Thanks once again for sparing time.

delete xml_path and Input your absolute path
like tree.write("/home/irshad/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27/config.xml")

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

4 participants