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 #383

Open
tharindudh opened this issue Jan 4, 2023 · 1 comment
Open

FileNotFoundError #383

tharindudh opened this issue Jan 4, 2023 · 1 comment

Comments

@tharindudh
Copy link

Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/osrframework/utils/configuration.py", line 119, in get_configuration_values_for
with open(defaultConfigPath) as iF:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu12/.config/OSRFramework/default/general.cfg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/osrf", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/osrframework/launcher.py", line 136, in main
parser = get_parser()
File "/usr/local/lib/python3.8/dist-packages/osrframework/launcher.py", line 80, in get_parser
parents=[checkfy.get_parser()]
File "/usr/local/lib/python3.8/dist-packages/osrframework/checkfy.py", line 84, in get_parser
DEFAULT_VALUES = configuration.get_configuration_values_for("checkfy")
File "/usr/local/lib/python3.8/dist-packages/osrframework/utils/configuration.py", line 125, in get_configuration_values_for
raise errors.DefaultConfigurationFileNotFoundError(configPath, defaultConfigPath);
osrframework.utils.errors.DefaultConfigurationFileNotFoundError:
- Oh! What's happening? > The configuration file /home/ubuntu12/.config/OSRFramework/general.cfg could not be found. The system tried to get the files provided by default with OSRFramework but they were not found either.
- How can I solve this? > Check if the configuration path exists or if it is accesible by the current user. You should be able to find the default configuration files at '/home/ubuntu12/.config/OSRFramework/default/general.cfg'. If they are not there, try to solve this by reinstalling OSRFramework again for this user.
- This is not enough... > If you need more information on how to solve this, copy this information and ask us by placing an issue at https://github.com/i3visio/osrframework/issues.

@mumu257
Copy link

mumu257 commented Mar 31, 2023

i am also facing the same problem. Did you find a fix for the issue?

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