Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create appImage locally for linux #20100

Open
tonyh1988 opened this issue Jan 6, 2025 · 0 comments
Open

Unable to create appImage locally for linux #20100

tonyh1988 opened this issue Jan 6, 2025 · 0 comments
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.

Comments

@tonyh1988
Copy link

Cura Version

main branch

Operating System

Linux Fedora

Printer

Sovol SV06 klipper

Reproduction steps

Hi,

I cloned and followed the instructions to build cura from source from the main branch of the git repository.

https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source

That worked fine I can now launch it as expected.

I needed to build from source as the printer I wanted to use is not included in the latest linux AppImage.

Now that I added the required profiles it works as expected.

I would now simply like to build a new appImage with the modified sources to use on my machine. I tried following the steps described in the documentation here :

https://github.com/Ultimaker/Cura/wiki/Building-Cura-from-Source/7f61da9954f5d78fbd1206ea2681a21b76245940

Actual results

l am stuck on step 4 when running the following command I get the following error :

 (cura_venv) xxx@fedora:~/Applications/Cura$ pyinstaller `UltiMaker-Cura.spec

61 INFO: PyInstaller: 6.11.1, contrib hooks: 2024.11
61 INFO: Python: 3.12.7
62 INFO: Platform: Linux-6.12.5-100.fc40.x86_64-x86_64-with-glibc2.39
62 INFO: Python environment: /home/xxxl/Applications/Cura/cura_venv
64 INFO: Module search paths (PYTHONPATH):
['/usr/lib64/python312.zip',
 '/usr/lib64/python3.12',
 '/usr/lib64/python3.12/lib-dynload',
 '/home/xxx/Applications/Cura/cura_venv/lib64/python3.12/site-packages',
 '/home/xxx/Applications/Cura/cura_venv/lib/python3.12/site-packages',
 '/home/xxx/Applications/Cura/cura_venv/lib64/python3.12/site-packages/setuptools/_vendor',
 '/home/xxx/Applications/Cura']
202 INFO: checking Analysis
202 INFO: Building Analysis because Analysis-00.toc is non existent
202 INFO: Running Analysis Analysis-00.toc
202 INFO: Target bytecode optimization level: 0
202 INFO: Initializing module dependency graph...
202 INFO: Initializing module graph hook caches...
208 INFO: Analyzing base_library.zip ...
785 INFO: Processing standard module hook 'hook-heapq.py' from '/home/xxx/Applications/Cura/cura_venv/lib64/python3.12/site-packages/PyInstaller/hooks'
857 INFO: Processing standard module hook 'hook-encodings.py' from '/home/xxx/Applications/Cura/cura_venv/lib64/python3.12/site-packages/PyInstaller/hooks'
2188 INFO: Processing standard module hook 'hook-pickle.py' from '/home/xxx/Applications/Cura/cura_venv/lib64/python3.12/site-packages/PyInstaller/hooks'
3162 INFO: Caching module dependency graph...
3221 INFO: Looking for Python shared library...
3226 INFO: Using Python shared library: /lib64/libpython3.12.so.1.0
3227 INFO: Analyzing /home/xxx/Applications/Cura/UltiMaker-Cura.spec.jinja

Syntax error in /home/xxx/Applications/Cura/UltiMaker-Cura.spec.jinja
  File "/home/xxx/Applications/Cura/UltiMaker-Cura.spec.jinja", line 12
     {% for value in collect_all %}tmp_ret = collect_all('{{ value }}')
      ^
 SyntaxError: invalid syntax

Documentation to build an AppImage seems a bit old so am I missing something simple and there is a newer version of the script or a new procedure. I saw that it is possible to create installers via github action so is this what I should do instead?

Expected results

creation of the dist folder as mentionned in the wiki to be able to bundle an AppImage

Add your .zip and screenshots here ⬇️

none

@tonyh1988 tonyh1988 added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

1 participant