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

./scripts/sim.py report error because logs directory not exists #62

Closed
frontw opened this issue Jul 8, 2024 · 1 comment
Closed

./scripts/sim.py report error because logs directory not exists #62

frontw opened this issue Jul 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@frontw
Copy link
Contributor

frontw commented Jul 8, 2024

./scripts/sim.py needs logs directory to exist. Error gone after creating directory, but better to check it in code

roman@RG5:~/Projects/UAVCAN/innopolis_vtol_dynamics$ ./scripts/sim.py 
Traceback (most recent call last):
  File "./scripts/sim.py", line 164, in <module>
    main()
  File "./scripts/sim.py", line 110, in main
    logging.basicConfig(level=logging.DEBUG,
  File "/usr/lib/python3.8/logging/__init__.py", line 1988, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib/python3.8/logging/__init__.py", line 1147, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.8/logging/__init__.py", line 1176, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/roman/Projects/UAVCAN/innopolis_vtol_dynamics/logs/log_2024-07-08_15-01-56.log'

@PonomarevDA PonomarevDA added the bug Something isn't working label Jul 31, 2024
@PonomarevDA
Copy link
Collaborator

fixed #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants