Jump to content

Language problem


johank

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

self._slicer.runSlicer(self._scene)

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

 

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...