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

FileNotFoundError: top_info_1.json #15

Open
ManojiLogaraj opened this issue Aug 1, 2023 · 2 comments
Open

FileNotFoundError: top_info_1.json #15

ManojiLogaraj opened this issue Aug 1, 2023 · 2 comments

Comments

@ManojiLogaraj
Copy link

Hi,

When I run this AutoPentest-DRL its pointing an error on topo_proc.py code which is trying to open the top_info_1.json file.

When I check the AutoPentest-DRL.py, its triggering the topo_proc.py using os.system('python3 topo_proc.py -c ../topo-gen-config -o top_info') methods.

As per my understanding once this topo_proc.py executed, the expected output from that file is top_info. So I am not understanding how this top_info_1.json is generated.

Please help me with this.

Error:
Traceback (most recent call last):
File "/home/parrot/Workspace/AutoPentest-DRL/Topology_generator/topo_proc.py", line 86, in
deJsonTop()
File "/home/parrot/Workspace/AutoPentest-DRL/Topology_generator/topo_proc.py", line 34, in deJsonTop
with open('./topology-generator/top_info_1.json', 'r') as top_file:
FileNotFoundError: [Errno 2] No such file or directory: './topology-generator/c'

image

Thanks,
Manoji

@MRColorR
Copy link

hello,

  • how did you manage to run the previous command python2 topo-gen.py -c ../topo-gen-config -o top_info as i cannot find the topo-gen.py inside this repository? its result is then consumed by python3 topo_proc.py.
  • also the folder topology-generator is not present too and its not created i edited the code to check if its present and if not create it prior of running topo-gen.py -c ../topo-gen-config -o top_info and python3 topo_proc.py

@ManojiLogaraj
Copy link
Author

Hi @MRColorR ,

There is a repository for generating tropology.

Repo link : https://github.com/crond-jaist/topology-generator.

Thanks,
Manoji

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