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 2 of 3)
  • spicer

    spicer - 2022-09-20

    Ja. Aber für Python 3.10 muss erst der dxf2gcode angepasst werden.
    Ist ein float/int Problem.

     
  • spicer

    spicer - 2022-09-20

    Bitte mal testen und Feedback geben:
    https://github.com/ltspicer/dxf2gcode

     
  • chrisko

    chrisko - 2022-09-21

    Hi Spicer,
    hab gerade versucht das unter Windows zu testen. Aber ich denke du meintest unter Ubuntu (was ich nicht kann). Den das scheint speziell für Linux, oder? Hast du die Änderungen im generellen Quellcode gemacht oder "nur" hier?

     
  • spicer

    spicer - 2022-09-21

    Nur im hier genannten.
    Am Haupt-Code mache ich nichts ;)
    Wenn Du Python 3.10 auf Windows installierst und dann dxf2gcode auf die 3.10 installierst, sollte das doch eigentlich das gleiche sein. oder?

    Könntest ja eine VM mit einer Linux Dist machen......

     

    Last edit: spicer 2022-09-21
  • chrisko

    chrisko - 2022-09-21

    Ich komme irgendwie nicht mit den bereits "vor kompilierten" Dateien zurecht. Ich wüsste nicht wie ich es installieren könnte. Ich denke das geht nur mit linux. Hast du die Dateien auch noch als reine python Dateien ( *.py meine ich)?

     
  • Wilhelm Bald

    Wilhelm Bald - 2022-09-22

    In gui/routetext.py habe ich die Zeile 59 geändert.
    Von:
    QFont("Arial", 10/self.sc),
    Zu:
    QFont("Arial", int(10/self.sc)),

    Damit scheint es zu funktionieren. Würde zu den Fehlermeldungen passen, daß kein overloaded QFont call gefunden werden konnte.

     
  • spicer

    spicer - 2022-09-22

    Ich habe noch in einer anderen Datei eine Anpassung gemacht!

     
  • Adam Jedynak

    Adam Jedynak - 2022-11-02

    After edit gui/routetext.py no hungs, but no optimise too.

    BTW. I found another error:
    File "/opt/dxf2gcode/source/dxf2gcode/gui/messagebox.py", line 80, in write
    self.verticalScrollBar().setValue(1e9)
    TypeError: setValue(self, int): argument 1 has unexpected type 'float'
    In fact, this is a bad variable type (1e9 is not int), after change to 1000 there is no error, but I dont know what value should be...

     
  • chrisko

    chrisko - 2022-11-03

    Hi Adam, the value should just put the scrollbar to it's very end line. So any big value (bigger then expected lines shown in messageobox) is sufficient. So i guess 1000 is good for a start. but i propose to make it as big as possible. My system can handle 1e9 without any issues. Can you pleas try what value your system can do e.g. 10000000 (1e7), which is guess should be sufficient for most use cases.
    I also checked the optimise function too. In standard it's not choosen to optimise the geometries and you need to select the ones which should be optimized. Also check the options (something with TSP needs to be enabled ...). Did you do so?

     
    • Wilhelm Bald

      Wilhelm Bald - 2022-11-03

      Are you sure that 1e9 is an integer from python points of view ?

      Am 03.11.22 um 17:47 schrieb chrisko:

      Hi Adam, the value should just put the scrollbar to it's very end
      line. So any big value (bigger then expected lines shown in
      messageobox) is sufficient. So i guess 1000 is good for a start. but i
      propose to make it as big as possible. My system can handle 1e9
      without any issues. Can you pleas try what value your system can do
      e.g. 10000000 (1e7), which is guess should be sufficient for most use
      cases.
      I also checked the optimise function too. In standard it's not choosen
      to optimise the geometries and you need to select the ones which
      should be optimized. Also check the options (something with TSP needs
      to be enabled ...). Did you do so?


      [tickets:#141] https://sourceforge.net/p/dxf2gcode/tickets/141/
      dxf2gcode not working Ubuntu 22.04

      Status: New
      Created: Sun Sep 11, 2022 02:22 PM UTC by Wilhelm Bald
      Last Updated: Wed Nov 02, 2022 05:51 PM UTC
      Owner: nobody
      Attachments:

      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 $


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/141/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #141

  • chrisko

    chrisko - 2022-11-04

    Hi Wilhelm, 1e9 is not really an typical integer for all operating systems. But for 64bit (as mine) its OK. For other systems it may be less. Thats why i proposed to try 1e7 which sould be OK for all systems. Did you try it already ?

     
  • spicer

    spicer - 2022-11-04

    https://en.primo.wiki/2022/146/202205262255012416.html

    Python has been upgraded from version 3.9 to 3.10, there are some changes that may impact script authors.

    Python 3.10 no longer implicitly converts floats to int's. This means functions that previously accepted float typed values will raise a type error.

    Floating point arguments must now be explicitly converted to integers

     

    Last edit: spicer 2022-11-04
    • Wilhelm Bald

      Wilhelm Bald - 2022-11-04

      @trekki, thank you for making the point.
      I'am not into python but all other prog languages i know are sensitive to unprecise var declarations.

      Am 4. November 2022 17:45:51 MEZ schrieb spicer treki@users.sourceforge.net:

      https://en.primo.wiki/2022/146/202205262255012416.html

      Python has been upgraded from version 3.9 to 3.10, there are some
      changes that may impact script authors.

      Python 3.10 no longer implicitly converts floats to int's (issue
      linked). This means functions that previously accepted float typed
      values will raise a type error.

      Floating point arguments must now be explicitly converted to integers


      [tickets:#141] dxf2gcode not working Ubuntu 22.04

      Status: New
      Created: Sun Sep 11, 2022 02:22 PM UTC by Wilhelm Bald
      Last Updated: Fri Nov 04, 2022 04:41 PM UTC
      Owner: nobody
      Attachments:

      -
      box.dxf
      (15.9 kB; image/vnd.dxf)
      -
      dxf2gcode_error.txt
      (17.9 kB; text/plain)

      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 $


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/141/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #141

  • spicer

    spicer - 2022-11-04

    Does it work for you now?

     
    • Wilhelm Bald

      Wilhelm Bald - 2022-11-05

      The following works for me:

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

      Py 3.10.6 and dxf2gcode do not work out of the box.

      Did i overlook new patches for 3.10.x ?

      Am 04.11.22 um 18:03 schrieb spicer:

      Does it work for you now?


      [tickets:#141] https://sourceforge.net/p/dxf2gcode/tickets/141/
      dxf2gcode not working Ubuntu 22.04

      Status: New Created: Sun Sep 11, 2022 02:22 PM UTC by Wilhelm Bald
      Last Updated: Fri Nov 04, 2022 04:45 PM UTC Owner: nobody
      Attachments:

      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 $


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/141/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #141

  • Adam Jedynak

    Adam Jedynak - 2022-11-04

    Well...
    This is not value, but syntax...
    1e0 is bad, but 1000000000 is good...

     
  • spicer

    spicer - 2022-11-05

    @Wilhelm
    And you tested with this version?
    https://github.com/ltspicer/dxf2gcode
    This should work on Python 3.10.
    I thought line 80 was the problem.
    Otherwise, can you tell me exactly what the error is? If possible in German ;)

     
    • Adam Jedynak

      Adam Jedynak - 2022-11-05

      "Optimize Paths" not works.

       
    • Wilhelm Bald

      Wilhelm Bald - 2022-11-05

      Ich habe den empfohlenen dxfgcode Installer benutzt. Der installiert
      Python 3.9.7 und das dxfgcode Paket.
      Damit läuft es. Aber auch nur damit.
      Mit Python 3.10 egal welcher subversion gibt es Probleme.
      IMHO sind einige Deklarationen nötig im Source Code, so wie @treki
      geschrieben hat.
      Es sieht nicht nach großen Bugs aus, es sind wohl eher fehlende VAR Typ
      Deklarationen, die jetzte in Py3.10.x stringenter gehandhabt werden.

      Gruß
      W

      Am 05.11.22 um 09:50 schrieb spicer:

      @Wilhelm
      And you tested with this version?
      https://github.com/ltspicer/dxf2gcode
      This should work on Python 3.10.
      I thought line 80 was the problem.
      Otherwise, can you tell me exactly what the error is? If possible in
      German ;)


      [tickets:#141] https://sourceforge.net/p/dxf2gcode/tickets/141/
      dxf2gcode not working Ubuntu 22.04

      Status: New
      Created: Sun Sep 11, 2022 02:22 PM UTC by Wilhelm Bald
      Last Updated: Fri Nov 04, 2022 06:43 PM UTC
      Owner: nobody
      Attachments:

      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 $


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/141/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #141

  • spicer

    spicer - 2022-11-05

    Bei mir läuft es unter Python 3.10.6 (Xubuntu) ohne Fehler.
    Habe dem Installer gesagt, er solle Python 3.10 brauchen und automatisch die Developper Version runterladen.
    Ich finde nur die 2 genannten Zeilen, welche angepasst werden müssen.

     

    Last edit: spicer 2022-11-05
    • Wilhelm Bald

      Wilhelm Bald - 2022-11-05

      Dann wäre es m.E. nach günstig das Paket auf die 3.10.x Version
      zuzuschneidern, quasi als default.
      Sonst wird die gesamte zu dxf2gcode "alte/neue/passende" Python Version
      runtergeladen. Immerhin ein paar hundert Megabyte.

      Am 05.11.22 um 13:26 schrieb spicer:

      Bei mir läuft es unter Python 3.10.6 (Xubuntu) ohne Fehler.
      Habe den Installer gesagt, er solle Python 3.10 brauchen und
      automatisch die Developper Version runterladen.


      [tickets:#141] https://sourceforge.net/p/dxf2gcode/tickets/141/
      dxf2gcode not working Ubuntu 22.04

      Status: New
      Created: Sun Sep 11, 2022 02:22 PM UTC by Wilhelm Bald
      Last Updated: Sat Nov 05, 2022 11:09 AM UTC
      Owner: nobody
      Attachments:

      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 $


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/141/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #141

  • spicer

    spicer - 2022-11-05

    Die angepasste Version ist bei Sourceforge momentan noch unter der Developper ( https://sourceforge.net/p/dxf2gcode/sourcecode/ci/develop/tree/ ) . Bis sie als 100% lauffähig bestätigt ist.
    Aus diesem Grund habe ich meinen Installer so geschrieben, dass er bei Python 3.10 Wahl auf github geht und meine angepasste Version holt.

     

    Last edit: spicer 2022-11-05
    • Wilhelm Bald

      Wilhelm Bald - 2022-11-05

      Ok. Danke für den Hinweis.

      Am 05.11.22 um 14:49 schrieb spicer:

      Die angepasste Version ist bei Sourceforge momentan noch unter der
      Developper. Bis sie als 100% lauffähig bestätigt ist.
      Aus diesem Grund habe ich meinen Installer so geschrieben, dass er bei
      Python 3.10 Wahl auf github geht und meine angepasste Version holt.


      [tickets:#141] https://sourceforge.net/p/dxf2gcode/tickets/141/
      dxf2gcode not working Ubuntu 22.04

      Status: New
      Created: Sun Sep 11, 2022 02:22 PM UTC by Wilhelm Bald
      Last Updated: Sat Nov 05, 2022 12:26 PM UTC
      Owner: nobody
      Attachments:

      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 $


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/141/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #141

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

Log in to post a comment.