2020年4月7日 星期二

[Ubuntu] Install Cura 14

主要參考這篇

1. 先下載 cura_14.07-debian_amd64.deb,或是 cura_14.09-1.18.8-608ef_amd64.deb/

2. 直接安裝 sudo dpkg -i cura_14.07-debian_amd64.deb 會出現錯誤訊息
```
Package python-wxgtk2.8 is not installed.
```

3.安裝  python-wxgtk2.8 和修復相依性
```
sudo add-apt-repository ppa:codeblocks-devs/release
sudo apt-get update
sudo apt-get install -f
```

4. 再安裝一次就可以啦
```
sudo dpkg -i cura_14.07-debian_amd64.deb
```

5. 打開 cur
```
cura
```

6. 如果遇到轉成 GCode 失敗,錯誤訊息
```
Traceback (most recent call last):
  File "/usr/share/cura/Cura/gui/sceneView.py", line 553, in _onRunEngine
    self._engine.runEngine(self._scene)
  File "/usr/share/cura/Cura/util/sliceEngine.py", line 320, in runEngine
    pos += (objMin + objMax) / 2.0 * 1000
TypeError: Cannot cast ufunc add output from dtype('float64') to dtype('int64') with casting rule 'same_kind'
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/cura/Cura/gui/sceneView.py", line 318, in _saveGCode
    data = self._engine.getResult().getGCode()
AttributeError: 'NoneType' object has no attribute 'getGCode'
```

就修改 /usr/share/cura/Cura/util/sliceEngine.py (參考)
```
320             #pos += (objMin + objMax) / 2.0 * 1000
321             pos = numpy.add(pos,(objMin + objMax) / 2.0 * 1000, out=pos, casting="unsafe")           
```

=> 更新一下,後來使用的是 Cura-13.12-debian

沒有留言: