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

[7.12.1, 7.13.0] FileNotFoundError in check_free_space: [WinError 3] System cannot find the specified path: '.' #7745

Closed
kozlovsky opened this issue Dec 4, 2023 · 1 comment · Fixed by #7760
Assignees
Milestone

Comments

@kozlovsky
Copy link
Collaborator

A pretty frequent error:

  File "run_tribler.py", line 100, in <module>
  File "tribler\gui\start_gui.py", line 48, in run_gui
  File "tribler\core\check_os.py", line 51, in check_free_space
  File "__init__.py", line 1995, in disk_usage
  File "psutil\_pswindows.py", line 265, in disk_usage
FileNotFoundError: [WinError 3] System cannot find the specified path: '.'  

Here:

def check_free_space():
    logger.info('Check free space')
    try:
        free_space = psutil.disk_usage(".").free / (1024 * 1024.0)

Should we specify some absolute path here?

Or at least we can catch and ignore the error, and continue without checking

Copy link

Sentry issue: TRIBLER-Z9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants