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

Comments

@kozlovsky
Copy link
Contributor

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

@drew2a drew2a self-assigned this Dec 5, 2023
@drew2a drew2a added this to the 7.14.0 milestone Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants