FS#55609 - [cura] Failed to start due to some missing resources

Attached to Project: Community Packages
Opened by Eugene (jdevelop) - Wednesday, 13 September 2017, 01:24 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 22 July 2018, 13:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

The most recent version of Cura doesn't start after installation. The error is related to the incorrect installation paths.

Package version: 2.7.0-1

[code]
2017-09-12 21:23:44,931 - INFO - UM.Qt.QtApplication.__init__ [112]: Command line arguments: {'external-backend': False, 'disable-textures': False, 'qmljsdebugger': None, 'file': [], 'single_instance': False}
2017-09-12 21:23:44,932 - INFO - UM.VersionUpgradeManager.upgrade [112]: Looking for old configuration files to upgrade.
2017-09-12 21:23:44,959 - CRITICAL - cura.CrashHandler.show [39]: An uncaught exception has occurred!
2017-09-12 21:23:44,960 - CRITICAL - cura.CrashHandler.show [42]: Traceback (most recent call last):
2017-09-12 21:23:44,961 - CRITICAL - cura.CrashHandler.show [42]: File "/sbin/cura", line 72, in <module>
2017-09-12 21:23:44,961 - CRITICAL - cura.CrashHandler.show [42]: app = cura.CuraApplication.CuraApplication.getInstance()
2017-09-12 21:23:44,961 - CRITICAL - cura.CrashHandler.show [42]: File "/usr/lib/python3.6/site-packages/UM/Application.py", line 316, in getInstance
2017-09-12 21:23:44,961 - CRITICAL - cura.CrashHandler.show [42]: Application._instance = cls()
2017-09-12 21:23:44,961 - CRITICAL - cura.CrashHandler.show [42]: File "/usr/lib/python3.6/site-packages/cura/CuraApplication.py", line 207, in __init__
2017-09-12 21:23:44,962 - CRITICAL - cura.CrashHandler.show [42]: self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
2017-09-12 21:23:44,962 - CRITICAL - cura.CrashHandler.show [42]: File "/usr/lib/python3.6/site-packages/UM/Resources.py", line 75, in getPath
2017-09-12 21:23:44,962 - CRITICAL - cura.CrashHandler.show [42]: raise FileNotFoundError("Could not find resource {0} in {1}".format(args, resource_type))
2017-09-12 21:23:44,962 - CRITICAL - cura.CrashHandler.show [42]: FileNotFoundError: Could not find resource ('cura-icon.png',) in 6
[code]
This task depends upon

Closed by  Jelle van der Waa (jelly)
Sunday, 22 July 2018, 13:24 GMT
Reason for closing:  Deferred
Comment by Jelle van der Waa (jelly) - Wednesday, 13 September 2017, 18:31 GMT
I can't reproduce this everything loads fine after the loading of the versionupgrademanager:

2017-09-13 20:29:10,575 - INFO - UM.VersionUpgradeManager.upgrade [112]: Looking for old configuration files to upgrade.
2017-09-13 20:29:10,579 - DEBUG - UM.Backend.Backend._logSocketState [174]: Socket state changed to Listening
2017-09-13 20:29:10,584 - INFO - UM.Backend.Backend.startEngine [75]: Started engine process: /usr/bin/CuraEngine
2017-09-13 20:29:10,585 - DEBUG - UM.Backend.Backend._backendLog [93]: [Backend] Calling engine with: ['/usr/bin/CuraEngine', 'connect', '127.0.0.1:49674', '-j', '/usr/s
Comment by Eugene (jdevelop) - Wednesday, 13 September 2017, 21:40 GMT
There is my startup log
Comment by Eugene (jdevelop) - Wednesday, 13 September 2017, 21:48 GMT
python --version
Python 3.6.2
Comment by Eugene (jdevelop) - Wednesday, 13 September 2017, 21:52 GMT
What helped me - symlink /usr/share to /share - after that everything started to work just fine. Weird, but works.

Can you please check if you have this symlink, just in case?

Or may be some custom config for cura in ~/.config/cura/master/cura.cfg
Comment by Renato Caldas (rmscaldas) - Tuesday, 19 December 2017, 15:13 GMT
I can reproduce this problem with both the community and the aur packages. The symlink does fix it in my case as well.
Comment by Jelle van der Waa (jelly) - Tuesday, 19 December 2017, 18:12 GMT
I can't reproduce it, cura works for me.
Comment by Gonçalo Pereira (G-Pereira) - Tuesday, 27 March 2018, 14:32 GMT
Just discovered the problem!
The app is confusing configs folder between this two:
~/.config/cura/3.2/cura.cfg
~/.config/cura/master/cura.cfg
If you want you can change the ownership of the package to me, I would like to mantain it :)
Comment by Oliver Jaksch (OJaksch) - Wednesday, 13 June 2018, 11:34 GMT
Is this bug fixed? I installed this today for the very first time but can't get it to run.
Last line of log states "FileNotFoundError: Could not find resource ('cura-icon-32.png',) but icon IS installed at /usr/share/cura/resources/images/cura-icon-32.png

Loading...