ooflet / Mi-Create

Unofficial watchface creator for Xiaomi wearables ~2021 and above
https://ooflet.github.io/docs
GNU General Public License v3.0
50 stars 5 forks source link

Unable to create analogClock - TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType' #40

Closed gab51299 closed 2 weeks ago

gab51299 commented 2 weeks ago

Created a basic watchface for the Mi Band 9 from scratch and build was successful. Watchface contains a simple analog clock, and a digital number showing the Date today:

image_2024-11-13_001801083

Wanted to double check by running it through the unpacker and opening the project again, was greeted with the following error when opening the .fprj file:

Cannot render project! Unable to create object analogClock_00: Traceback (most recent call last): File "C:\PROGRA~1\MICREA~1\widgets\canvas.py", line 440, in createWidgetFromData File "C:\PROGRA~1\MICREA~1\widgets\canvas.py", line 331, in createAnalogDisplay File "C:\PROGRA~1\MICREA~1\ntpath.py", line 149, in join File "C:\PROGRA~1\MICREA~1\genericpath.py", line 164, in _check_arg_types TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'

ooflet commented 2 weeks ago

Could you send the .fprj file of the unpacked project?

gab51299 commented 2 weeks ago

Hermes V3 Unpacked.zip

Here's the zip of the unpacked .fprj

ooflet commented 2 weeks ago

It's been fixed on the main branch of Mi Create (commit 58297f453d20288530dd0808d55a1d32ef1707d8), try running the source code.