Menu

#141 dxf2gcode not working Ubuntu 22.04

Fixed
chrisko
None
High
Ubuntu 22.04
Defect
2023-11-23
2022-09-11
No

dxf2gcode failes to optimize or export gcode on Ubuntu 22.04.
Program just hangs, mouse icon keeps spinning.
Attached output from console plus simple dxf Box file.

==================================
python3 Version used: Python 3.10.4

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

Version:
Py3.10.4 PyQt5.15.6: $Revision: b6983e9e9c3df532b2f621ab4e89dc813b521bd7 $
Last change: $Date: 2022-02-26 15:29 CET $
Changed by: $Author: Christian Kohloeffel $

2 Attachments

Related

Tickets: #141

Discussion

<< < 1 2 3 (Page 3 of 3)
  • Adam Jedynak

    Adam Jedynak - 2022-11-05

    This is dead end.
    The dxf2gcode WORKS with Python 3.10 !!!
    But "Optimize Paths" NOT works with Python 3.
    I have tested many versions of dxf2gcode and Pythons.
    This is "optimized" project in newest dxf2gcode and Python 3.10 on Xubuntu 22.04 :
    https://imgbox.com/MeUvKnjS
    This is the same, but in old version of dxf2gcode and Python 2.7 on Xubuntu 18.04 :
    https://imgbox.com/vVuD55E3
    So, the newest dxf2gcode is unusable for complex projects.

     
  • spicer

    spicer - 2022-11-05

    Does it only work correctly on Python2.7?
    Have I understood that correctly?

     
  • Adam Jedynak

    Adam Jedynak - 2022-11-05

    I used Xubuntu 18.04 LTS, All Versions of Dxf2Gcode worked properly.
    In April this year I switched to Xubuntu 22.04 LTS, and so far I was not able to force dxf2gcode to work properly.
    At first it did not work at all and hung up.
    In the end I managed to lead to the opening of DXF files and saves NGC files, but the optimization of the path does not work.
    It just doesn't work, there are no error messages, just clicking the button does not change anything.
    Today, after reading the entries in this thread, I tried on Xubuntu 20.04.
    There is Python 3.8 and everything happens the same.
    To sum up, the optimization works with Python 2.7 and does not work with 3.x.

     
  • spicer

    spicer - 2022-11-05

    Can you send me your DXF file for testing?
    I think, the error is from between 392 and 469.
    But we have to hope for Christian...

     

    Last edit: spicer 2022-11-05
    • Adam Jedynak

      Adam Jedynak - 2022-11-06

      I made example for you.
      I used Librecad v. 2.2.0-rc4
      https://imgbox.com/uiejc25x
      https://imgbox.com/kKv2gGPd
      Look at "Layers" window.
      With Python 2.7 shapes are moved when you use "Optimize Paths".
      With Python 3.x you can move shapes by mouse, but "Optimize Paths" do nothing.

       
      ❤️
      1
  • spicer

    spicer - 2022-11-06

    I think, the strategy from Python is shit.
    The newest thing is, that the float variables not be automaticaly translated to integer (before was auto).
    I understand not this strategy.
    I understand, that many people says, that's is a F* CK language.

     

    Last edit: spicer 2022-11-06
  • spicer

    spicer - 2022-11-06

    Sorry for my terrible english.
    I miss my old C64 Basic ;)
    That was everytime the same. It was in the ROM.
    No changes :D

    PS:
    Why change the syntax of many commands...

    That's not a good idea.
    The standard will be C (or sub C's)
    But a interpreter language is very cool.

     

    Last edit: spicer 2022-11-06
    • Adam Jedynak

      Adam Jedynak - 2022-11-06

      Python is not an ordinary brothel, it is a brothel in which every customer moves furniture in their own way ...
      Nobody is able to clean up this Stables of the Augean ...
      But maybe dxf2gcode can be repaired ...

       
  • spicer

    spicer - 2022-11-06

    I hope so.
    But not only dxf2gcode is affected!
    So many good projects on the ass.

     
  • spicer

    spicer - 2022-11-06

    I will change to C and Arduino.
    For me is Python death.
    Hmm. I have projects like https://github.com/ltspicer/GALAXIS.electronic
    is 100% written in Python by my self ...

     

    Last edit: spicer 2022-11-06
  • spicer

    spicer - 2022-11-06

    Ich habe nach den 80er/90er Jahren nach einer neuen modernen Interpreter Programmiersprache gesucht.
    Da kam ich auf Python.
    Ich bin mir das langsam reuig....

    I was looking for a new modern interpreter programming language after the 80s/90s.
    That's when I came across Python...
    I'm sorry....

    PS:
    Lernte REXX,
    und konnte Assembler und Basic.
    Ist alles besser Heute?

    PS:
    I learned REXX (by IBM on 4381),
    and knew Assembler and Basic.
    Is everything better today?

     

    Last edit: spicer 2022-11-06
  • chrisko

    chrisko - 2022-11-06

    HI, just to add this. I don't think this is linked to python at all. I checked your picture you send (https://imgbox.com/uiejc25x) Left in the listbox, no shape is selected to be optimized and therefore there will be not optimization. You can select them all by hand or just change it in the options (And this was done from later versions of dxf2gcode till now) Some other developer thought it would be better not to have it enabled at standard. Please find the two options descirbed in the attached pictures.
    Please check and give feedback (you should also see them all checked in the listbox then).
    regards
    christian

     

    Last edit: chrisko 2022-11-06
  • Adam Jedynak

    Adam Jedynak - 2022-11-06

    My fault.
    I have used old config files on some machines, but new on some.
    Important is line with "default_TSP = True" or "default_TSP = False" in ~/.config/ dxf2gcode/config/config.cfg
    You can use Options/Configuration/Output settings/By default enable the TSP optimization ...
    Now works as expected.

    The summary.

    You can install and use newest dxf2gcode on Xubuntu 22.04 computer.
    (This is not script, but description what to do)

    wget https://altushost-swe.dl.sourceforge.net/project/dxf2gcode/dxf2gcode-20220226_RC1.zip
    unzip dxf2gcode-20220226_RC1.zip 
    mv source dxf2gcode
    cd dxf2gcode
    apt update
    apt install dos2unix
    find . -type f -print0 | xargs -0 dos2unix
    cd dxf2gcode/gui
    /usr/bin/editor routetext.py
    # --- QFont("Arial", 10/self.sc)
    # +++ QFont("Arial", int(10/self.sc))
    /usr/bin/editor messagebox.py
    # --- self.verticalScrollBar().setValue(1e9)
    # +++ self.verticalScrollBar().setValue(1000000000)
    cd ../..
    chmod +x dxf2gcode.py
    # dxf2gcode refuses start with version mismatched configuration files
    mv ~/.config/dxf2gcode ~/.config/dxf2gcode~
    apt install python3-pip
    apt install qtbase5-dev qt5-qmake
    pip3 install pyqt5
    pip3 install configobj
    ./dxf2gcode
    
     

    Last edit: Adam Jedynak 2022-11-06
  • chrisko

    chrisko - 2023-02-02
    • status: New --> Fixed
    • assigned_to: chrisko
     
  • Egil Kvaleberg

    Egil Kvaleberg - 2023-11-23

    I just want to add that the fix shown here by Adam Jedynak fixes everything for my Ubuntu also. So please fix this in source code, I see it has been around a year now.

     
<< < 1 2 3 (Page 3 of 3)

Log in to post a comment.

MongoDB Logo MongoDB