492 views
in GUI Development by

Hello Everyone
I Am trying to import a Figma Design into my embedded wizard project

This is the command I'm trying to use to import the design into Embedded Wizard :
python "C:\Scripts\FigmaDesignImporter.py" --path_ewx  embedded_wizard_import.ewx

But all I get is this : 


I tried to move the .ewx file to the unit's folder but i get the same errors.
The provided documentation is not clear about what to do in these situations, so I Asked here.

Thanks, 
Dario

1 Answer

0 votes
by

Hi Dario,

I'm sorry to hear you're encountering this error. As you suspected, it usually indicates that a required path couldn't be found.

You can extend the import script with a logging level to get more insights. Could you please add --log_level 4 to your script call? This option enables more detailed logging, which might help us identify the root cause.

What does the log window show then?

Best regards,

Tim

by

Hello Tim,
I tried your solution but the Log window does not show anything different.

The command I used is the following : python "C:\Scripts\FigmaDesignImporter.py" --log_level 4 --path_ewx embedded_wizard_import.ewx

And the embedded_wizard_import.ewx file is in the same folder of the .ewp project file.
Just to be clear this is what i get in the Log window.

Thanks.
Dario

by

Hi Dartio,

Thank you for trying it out! I just attempted to reproduce the error on my end, but couldn’t trigger the same issue.

Could I ask you for a bit more detail to help pinpoint where things might be going wrong?

  • Could you please share the path to your Embedded Wizard project? It's possible that an invalid character is causing trouble.
  • Did you attempt to import any other design into a newly created Embedded Wizard project? Does it work then?
  • And could you also provide the design file (.ewx) you tried to import? That would help me evaluate whether the issue originates from the Figma export or during the Embedded Wizard import.

Looking forward to your feedback!

Best regards,
Tim

by

Hi Tim,

Here's the path to the project : "C:\Devel\au2-riverdi\EmWi"
I tried moving the python script from "C:\Scripts\" to the same folder, and now the path issue no longer arises, but now the script seems to take an enormous amount of time to run, even if I'm importing in an otherwise empty project that I made just to try.
I also tried importing a simpler design in a blank project and the process never came to an end too.

Here's the file I'm Trying to import :
https://ask.embedded-wizard.de/?qa=blob&qa_blobid=17979823874145834385

Kind Regards, 
Dario

by

Hi Dario,

Thank you very much for providing the .ewx file. Based on its content, I was able to pinpoint the issue: it’s related to the naming of an object in your Figma project.

There’s an object located at: Figma path: Page 1 → Frame 1 → -10

As you can see, the object name begins with a minus sign, which is problematic during the import process. To resolve this, I recommend renaming the object (without changing its textual content) to something like "Minus 10". This is a confirmed bug and definitely should not occur. We’ll address this export issue in the next release to ensure it doesn’t happen again.

Regarding your note about being unable to import even an empty Figma design: That might be a separate issue unrelated to the object naming.

If possible, could you also share the .ewx file for the empty design? I'd like to double-check whether the file itself is causing the problem or if it might be related to your Python installation.

Best regards,

Tim

by

Hello Tim
Here's the file you asked for : https://ask.embedded-wizard.de/?qa=blob&qa_blobid=11120411957999385308
For reference, here's the file I was trying to import before, with the modification you reccommended : https://ask.embedded-wizard.de/?qa=blob&qa_blobid=9504204089411824643

The corrected file would still take forever to Import.

 

As you mentioned possible python installation issues I'll give you some information in advance : 

python --version
Python 3.13.5

where python
C:\Users\dario.benvegnu\AppData\Local\Programs\Python\Python313\python.exe
C:\Users\dario.benvegnu\AppData\Local\Microsoft\WindowsApps\python.exe

pip list
Package                   Version
------------------------- -----------
altgraph                  0.17.4
beautifulsoup4            4.13.4
Brotli                    1.1.0
bs4                       0.0.2
cffi                      1.17.1
contourpy                 1.3.2
cssselect2                0.8.0
cycler                    0.12.1
fonttools                 4.58.1
Jinja2                    3.1.6
jsonpath-ng               1.7.0
kiwisolver                1.4.8
lxml                      5.4.0
MarkupSafe                3.0.2
matplotlib                3.10.3
numpy                     2.3.0
packaging                 25.0
pdfkit                    1.0.0
pefile                    2023.2.7
pillow                    11.2.1
pip                       25.1.1
ply                       3.11
pycparser                 2.22
pydyf                     0.11.0
pyinstaller               6.13.0
pyinstaller-hooks-contrib 2025.4
pyparsing                 3.2.3
pyphen                    0.17.2
python-dateutil           2.9.0.post0
python-docx               1.1.2
pywin32-ctypes            0.2.3
PyYAML                    6.0.2
sarif-tools               3.0.4
setuptools                80.9.0
six                       1.17.0
soupsieve                 2.7
tinycss2                  1.4.0
tinyhtml5                 2.0.0
typing_extensions         4.13.2
weasyprint                65.1
webencodings              0.5.1
zopfli                    0.2.3.post1

Does Embedded Wizard add environment variables? Are these needed for the import procedure?

Best Regards,
Dario
 

by

Hi Dario,

Thank you very much for the excellent cooperation, I truly appreciate it!

I've tested both of the provided files on my machine, so it seems unlikely that EWX is causing the issue.

As you correctly pointed out, the export process requires temporary environment variables to be set. These variables should only exist within the scope of the Python script execution. Could it be that your system restricts this behavior? If so, the import process might be timing out as a result.

I believe I’ve identified the issue:
In the importer script, the error message triggered by missing environment variables is currently output via a standard print statement, rather than being forwarded to the Embedded Wizard console. This would explain why no error appears on your end, even though the script halts execution due to the missing variables.

I've created a ticket for this, and the issue will be resolved in the next Embedded Wizard release. Thank you for helping us uncover it!

That said, while this explains the missing error message, it doesn’t clarify why the environment variables aren’t being set correctly...

Best regards,

Tim

by
Hi Tim,
Thank you too for your help!

I'm glad we've identified the problem, but now, how do I know if my system actually restricts the creation of temporary environment variables?

I've never had a problem like this before.

Thank you again,

Kind Regards,
Dario
by

Hi Dario,

Yes, that does sound quite strange to me as well. Typically, Python-based scripts, especially when they're relatively simple and rely only on standard libraries, rarely cause issues like this.

That said, we haven’t yet confirmed whether the problem is actually related to environment variables. Could you please try replacing your current Python import script with the version available here?

The modified script should now log a message in the Embedded Wizard log window if an environment variable is missing. If no such message appears, then the root cause likely lies elsewhere.

In cases like this, I usually test with a completely fresh Python installation to rule out any version-related conflicts. On my system, I’m using Python 3.11.4, and with that version, everything works as expected.

Best regards,

Tim

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...