Problem using uic to convert .ui file to .py file

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
falviani
Posts: 250
Joined: Tue May 07, 2019 8:49 pm

Problem using uic to convert .ui file to .py file

Post by falviani »

Hello,
I am working on a python workbench and and creating the user interface using the designer app found in my local version of FreeCAD. When I try to use uic to convert the .ui file to a .py file I get the following error:

Code: Select all

C:\Users\frank\AppData\Roaming\FreeCAD\Mod\FC_TabbedBoxWorkbench\freecad\TabbedBoxWorkbench\resources\ui-files>uic -o ..\converted-ui-files\basicValues basicValues
File 'basicValues' is not valid
This is using the uic from the PyQt5 package installed in the Python 3.8 directory, and executed using Python 3.8.
However, designer opens the file just fine, and it has a valid length in the directory listing. Does anybody have info about what the error is and (more importantly) how to fix it?

Thanks in advance,
Frank
Attachments
basicValues.ui
problem file
(1.84 KiB) Downloaded 39 times
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Problem using uic to convert .ui file to .py file

Post by onekk »

Not an expert, but if I remeber well in the past there were some discussion about similar questions, try to search for uic in the forum and mybe you will find some answers.

If not, sorry for bothering.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply