swar / Swar-Chia-Plot-Manager

This is a Cross-Platform Plot Manager for Chia Plotting that is simple, easy-to-use, and reliable.
GNU General Public License v3.0
1.26k stars 389 forks source link

Network disk is not supported #707

Open BryanXBY opened 3 years ago

BryanXBY commented 3 years ago

Can you support network mapped disks? [ERROR]: Failed to get disk_usage of drive None.

Zipties commented 3 years ago

Works for me

star250 commented 3 years ago

Me too.

2021-05-22 02:18:21 [ERROR]: Failed to get disk_usage of drive None. Traceback (most recent call last): File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\plotmanager\library\utilities\jobs.py", line 173, in monitor_jobs_to_start free_space = psutil.disk_usage(drive).free File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\venv\lib\site-packages\psutil__init__.py", line 1995, in disk_usage return _psplatform.disk_usage(path) File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\venv\lib\site-packages\psutil_pswindows.py", line 265, in disk_usage total, free = cext.disk_usage(path) TypeError: argument 1 must be str, not None Traceback (most recent call last): File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\stateless-manager.py", line 94, in jobs, running_work, next_job_work, next_log_check = monitor_jobs_to_start( File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\plotmanager\library\utilities\jobs.py", line 258, in monitor_jobs_to_start job, work = start_work( File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\plotmanager\library\utilities\jobs.py", line 284, in start_work get_target_directories(job, drives_free_space=drives_free_space) File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\plotmanager\library\utilities\jobs.py", line 26, in get_target_directories job = check_valid_destinations(job, drives_free_space) File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\plotmanager\library\utilities\jobs.py", line 53, in check_valid_destinations drive = identify_drive(file_path=directory, drives=drives) File "C:\Users\stars\Swar-Chia-Plot-Manager-v.0.1.0\plotmanager\library\utilities\processes.py", line 136, in identify_drive if drive not in file_path: TypeError: 'in ' requires string as left operand, not NoneType

alewir commented 3 years ago

I have same error as above under Windows. No matter if I'll use mapped drive letter, eg. L:\ or IP location of the samba share, like \\192.168.1.145\ the result is always as in comment above TypeError: 'in ' requires string as left operand, not NoneType.

onrozcn commented 3 years ago

same error for me to.

[ERROR]: Failed to get disk_usage of drive None.

fufar commented 3 years ago

same for me

star250 commented 3 years ago

I use a temporary solution. First, use the local disk, run this program. Then modify the disk character to map to the remote URL.

BryanXBY commented 3 years ago

I use a temporary solution. First, use the local disk, run this program. Then modify the disk character to map to the remote URL.

Can this display the remaining disk space?