Stuck at "Update the disk name" when generating disk image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cubic |
Fix Released
|
Medium
|
Cubic PPA |
Bug Description
I am unable to create an ISO as it gets stuck at the "Update the disk name" stage. I am using version 2021.01.40
I have tested this on a clean project where nothing is added or changed. My source is an Ubuntu 20.04.1 live image.
The following is the output when running cubic in the terminal, (Only output for the relevant stage)
Update the disk name
• The existing file will be updated...... /home/marlind/
• Update disk name...
• Update disk note...
Update the disk information
• Reformat the time stamp..
• Try old time stamp format.
• Matched the time stamp format?......... No
• The new time stamp format is........... %Y%m%d
Exception in thread Thread-11:
Traceback (most recent call last):
File "/usr/share/
time_stamp = constructor.
File "/usr/share/
time_stamp = time.strftime(
TypeError: Tuple or struct_time argument required
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/share/
result = new_page.
File "/usr/share/
is_error = update_
File "/usr/share/
is_error = update_disk_info()
File "/usr/share/
logger.
UnboundLocalError: local variable 'file_path' referenced before assignment
Changed in cubic: | |
assignee: | nobody → Cubic PPA (cubic-wizard) |
Changed in cubic: | |
importance: | Undecided → Medium |
Changed in cubic: | |
status: | New → In Progress |
An experiment demonstrating the issue.
Even though '%x %X' is used to format the time stamp, the resulting time stamp string can not be parsed using this same format.
$ sudo apt install language-pack-nb
$ python3.8
> import locale setlocale( locale. LC_ALL, 'nb_NO.UTF-8')
> locale.
'nb_NO.UTF-8'
> import datetime datetime. now().strftime( '%x %X')
> time_stamp = datetime.
> time_stamp
'24. jan. 2021 kl. 19.48 '
> import time time_stamp, '%x %X')
> time.strptime(
Traceback (most recent call last): python3. 8/_strptime. py", line 562, in _strptime_time data_string, format)[0] python3. 8/_strptime. py", line 349, in _strptime
File "<stdin>", line 1, in <module>
File "/usr/lib/
tt = _strptime(
File "/usr/lib/
raise ValueError("time data %r does not match format %r" %
ValueError: time data '24. jan. 2021 kl. 19.48 ' does not match format '%x %X'