Jump to content
Sign in to follow this  

Language problem

Recommended Posts

Posted · Language problem

Hi Daid,

I'm one of the Swedish users of Cura, and I have some problems. Using the standard settings of Cura, the program wont slice anything 3 days a week. All I get is a Ubuntu crash report, however Cura keeps running, and creating more crash reports.

I have located the source of this error to the fact that my Ubuntu is set to use the Swedish language. The problem is that 3 weekdays in Swedish contains special characters (Måndag,Lördag,Söndag), and when Cura generates ascii string from "{day}" in start.gcode these days are represented with ("mån","lör","sön"), which gets a representation containing something like 0xC3A5. If I start Cura with "LANG=en_us; cura", all is well, and my model slice.

the error is reported like:

Traceback (most recent call last):

File "/usr/share/cura/Cura/gui/sceneView.py", line 420, in _onRunSlicer


File "/usr/share/cura/Cura/util/sliceEngine.py", line 116, in runSlicer

for k, v in self._engineSettings(extruderCount).iteritems():

File "/usr/share/cura/Cura/util/sliceEngine.py", line 259, in _engineSettings

'startCode': profile.getAlterationFileContents('start.gcode', extruderCount),

File "/usr/share/cura/Cura/util/profile.py", line 797, in getAlterationFileContents

return unicode(prefix + re.sub("(.)\{([^\}]*)\}", replaceTagMatch, alterationContents).rstrip() + '\n' + postfix).strip().encode('utf-8') + '\n'

File "/usr/lib/python2.7/re.py", line 151, in sub

return _compile(pattern, flags).sub(repl, string, count)

File "/usr/share/cura/Cura/util/profile.py", line 685, in replaceTagMatch

return pre + time.strftime('%a').encode('utf-8', 'replace')

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)


I'm not a python guy and I don't know how to fix this, but the problem is as described above.

On a related note, I really must say I appreciate the new slicing engine. The only question I have so far is if Cura isn't a little to eager to slice the models. I know you don't like unnecessary stages in the printing process but I find the ever appearing slice process indicator a little annoying. The fact that Cura is eager to slice resulted in quite a few error reports as well.

best regards,

Johan K


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Our picks

    • Ultimaker Cura | a new interface
      We're not only trying to always make Ultimaker Cura better with the usual new features and improvements we build, but we're also trying to make it more pleasant to operate. The interface was the focus for the upcoming release, from which we would already like to present you the first glance. 
        • Like
      • 182 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!