#1785 TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType

78.99* Posted at: 3 days ago 👁28

Traceback (most recent call last):
File "videotrans\task\job.py", line 342, in run
File "shutil.py", line 740, in rmtree
File "shutil.py", line 576, in _rmtree_islink
TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType


=
system:Windows-10-10.0.26200-SP0
version:v3.87
frozen:True
language:en
root_dir:C:/Users/bandu/OneDrive/Počítač/win-pyvideotrans-v3.87

1 Replies

The error indicates the software is trying to delete a folder (rmtree) but the provided path is None. This is almost certainly caused by a file path containing non-ASCII characters (like "Počítač").

Solution:

  1. Move the entire software folder to a location with a simple, English-only path.

    • For example: D:\videotrans or C:\Users\bandu\Desktop\videotrans.
  2. Do not place it in system-protected folders like C:\Program Files or OneDrive synced folders.
  3. After moving, run sp.exe from the new location.

This is the primary installation rule. If the error persists after moving to a clean path, please provide the full log file from the logs directory inside the new software folder.

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions