Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#54948 - [cura] [Patch] Default materials not in package

Attached to Project: Community Packages
Opened by Jade (lf) - Thursday, 27 July 2017, 22:16 GMT
Last edited by Jelle van der Waa (jelly) - Friday, 11 August 2017, 20:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description: The default materials collection isn't included in the cura package, making it impossible to create a new material.


Additional info:
* package version(s): 2.6.0 (also built a 2.6.1 and repro on there)
* config and/or log files etc.

Log line demonstrating the problem:
2017-07-27 15:40:03,464 - DEBUG - cura.Settings.ContainerManager.createMaterial [752]: Unable to create a new material by cloning Generic PLA, because it cannot be found for the material diameter for this machine.


Steps to reproduce:
Open cura
Create a new printer based on the Prusa i3 Mk2 (for example, it seems to happen for every single one)
Settings>Material>Manage Materials...
Create

Expected behaviour: A material is created

Actual behaviour: No material is created and the above line is found in ~/.local/share/cura/master/cura.log.

Upstream bug report indicating that this is a packaging bug: https://github.com/Ultimaker/Cura/issues/2157

I made a patch to fix this and update the package to 2.6.1. It is attached.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Friday, 11 August 2017, 20:58 GMT
Reason for closing:  Implemented
Additional comments about closing:  Added cura-resources-materials package in the repos
Comment by Jelle van der Waa (jelly) - Friday, 28 July 2017, 07:35 GMT
This calls for a separate package I'd say and not yet another source in the cura package.
Comment by Jade (lf) - Friday, 28 July 2017, 15:47 GMT
I disagree. The materials are a core dependency for the functionality of cura. Without them, it is impossible to slice g-code since the user cannot create a new material or use an existing one.

Plus, excluding them would be a very poor user experience as they are effectively required, but the only indication that they are missing is a log line that the average user would never find; they'd just say "welp cura doesn't work, I'm switching to slic3r".

Finally, the package already includes /usr/share/cura/resources/definitions with all the default printers since they're in the cura repo, despite being extra "resources". The reason (I suspect) that the materials are separate is because the machine definitions are fairly simple and unlikely to change, however the materials can always be tweaked more, so Ultimaker moved them into a separate repository to reduce code churn. That being said, they are versioned along with the main cura anyway. If they weren't, I'd be with you on making another package.

I just checked on Windows and Cura comes with all the materials.
Comment by Uffe Jakobsen (uffe) - Wednesday, 02 August 2017, 09:50 GMT
+1 I agree without the materials file - this cura package is pretty useless.
Comment by Uffe Jakobsen (uffe) - Wednesday, 02 August 2017, 12:40 GMT
but ofcourse: a "cura" package with a (optional or strict) dependency to a separate "cura-materials" package will do the job as well - if that is the way that you prefer :-)
Comment by Jeremy (jkuhl) - Wednesday, 02 August 2017, 18:09 GMT
I installed Cura on my Ubuntu box (ppa:thopiekar/cura for reference) at work because I was experiencing the issue described in this bug report. The PPA maintainer packages the materials separately as, 'cura-resources-materials'.
Comment by Uffe Jakobsen (uffe) - Wednesday, 09 August 2017, 12:55 GMT
Ok, I got impatient as I cannot use Cura in its current shape...
So I made an AUR package called "cura-resources-materials" based on the patch from @lf
The package needs to be synced with the cura version but is seems to work :-)

https://aur.archlinux.org/packages/cura-resources-materials/

Loading...