You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ /usr/local/bin/woeusbgui
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/dist-packages/WoeUSB/gui.py", line 403, in run
core.main(source_fs_mountpoint, target_fs_mountpoint, self.source, self.target, "device", temp_directory,
File "/usr/local/lib/python3.8/dist-packages/WoeUSB/core.py", line 155, in main
if utils.check_source_and_target_not_busy(install_mode, source_media, target_device, target_partition):
File "/usr/local/lib/python3.8/dist-packages/WoeUSB/utils.py", line 151, in check_source_and_target_not_busy
if check_is_target_device_busy(source_media):
File "/usr/local/lib/python3.8/dist-packages/WoeUSB/utils.py", line 134, in check_is_target_device_busy
if re.findall(device, mount) != []:
File "/usr/lib/python3.8/re.py", line 241, in findall
return _compile(pattern, flags).findall(string)
File "/usr/lib/python3.8/re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.8/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.8/sre_parse.py", line 948, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib/python3.8/sre_parse.py", line 443, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.8/sre_parse.py", line 598, in _parse
raise source.error(msg, len(this) + 1 + len(that))
re.error: bad character range 1-0 at position 55
The text was updated successfully, but these errors were encountered:
From a quick glance, it looks like it might be using the raw filename string as a regex in re.findall(). You're gonna run into some pain doing that, if the filename contains any special regex characters (there's a lot). If you're just trying to find it in the output of mount, that doesn't require regex at all. You could just do a simple substring in string search.
It looks like this has a similar issue to slacka/WoeUSB#206: The USB creation failed, then after I renamed the iso file, it succeeded.
Good Habit Checklist for Issue Reporting
Issue Reproduce Instructions
/usr/local/bin/woeusbgui
Windows 10 [bits 64] [down 2021-07-14] [name Win10_21H1_English_x64].iso
Then I renamed the iso to its original filename (
Win10_21H1_English_x64.iso
) and tried again. It succeeded this time.Expected Behavior
It actually installs the iso onto the USB drive
Current Behavior
It returns instantly with an installation succeeded message. But in the console it gives the traceback I pasted below.
Info of My Environment
WoeUSB Version
v0.2.10
WoeUSB Source
Installed from the release .tar.gz according to the README
sudo python3 -m pip install .
Information about the Operating System
Ubuntu 20.04.3 LTS
Information about the Source Media
Windows 10 version 21H1
Information about the Target Device
Kanguru Flashblu 30 8GB
Traceback
The text was updated successfully, but these errors were encountered: