View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0002358 | FreeCAD | Bug | public | 2015-12-10 14:25 | 2019-08-14 12:23 | 
| Reporter | l3iggs | Assigned To | yorik | ||
| Priority | high | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| OS | Linux | ||||
| Product Version | 0.15 | ||||
| Fixed in Version | 0.16 | ||||
| Summary | 0002358: can not import .csg file | ||||
| Description | When I attempt to import my .csg file, I get the following error message: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/share/freecad/Mod/OpenSCAD/importCSG.py", line 100, in insert if workaroundforissue128needed(): File "/usr/share/freecad/Mod/OpenSCAD/OpenSCADUtils.py", line 91, in workaroundforissue128needed year,mon=int(vdate[0]),int(vdate[1]) <type 'exceptions.ValueError'>: invalid literal for int() with base 10: '03-2' | ||||
| Steps To Reproduce | Attempt to import a .csg file generated by OpenSCAD | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|  | My mistake: This happens when I attempt to import or open my .scad file, not my .csg file | 
|  | I'm quite sure this error is due to the fact that running 'openscad -v' on my system (Arch Linux) returns 'OpenSCAD version 2015.03-2' and the workaroundforissue128needed function in Mod/OpenSCAD/OpenSCADUtils.py can't handle the '-2'. | 
|  | https://github.com/FreeCAD/FreeCAD/pull/68 fixes this. | 
| FreeCAD: master 4901553a 2015-12-10 15:50:01Details Diff | fix for 0002358 This strips off any trailing '-' text reported by openscad when asking it for its version. | Affected Issues 0002358 | |
| mod - src/Mod/OpenSCAD/OpenSCADUtils.py | Diff File | ||
| FreeCAD: master b7a9bf95 2015-12-10 16:23:11Details Diff | Merge pull request 0000068 from l3iggs/patch-1 fixes 0002358 | Affected Issues 0002358 | |
| mod - src/Mod/OpenSCAD/OpenSCADUtils.py | Diff File | ||
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2015-12-10 14:25 | l3iggs | New Issue | |
| 2015-12-10 14:29 | l3iggs | Note Added: 0006585 | |
| 2015-12-10 14:37 | l3iggs | Note Added: 0006586 | |
| 2015-12-10 14:50 | l3iggs | Note Added: 0006587 | |
| 2015-12-10 15:23 | yorik | Changeset attached | => FreeCAD Master master b7a9bf95 | 
| 2015-12-10 15:23 | yorik | Assigned To | => yorik | 
| 2015-12-10 15:23 | yorik | Status | new => closed | 
| 2015-12-10 15:23 | yorik | Resolution | open => fixed | 
| 2015-12-15 13:15 | yorik | Fixed in Version | => 0.16 | 
| 2019-08-14 12:23 | Kunda1 | Changeset attached | => FreeCAD master 4901553a | 
 FreeCAD
 FreeCAD