dxf2gcode crashes at startup: ModuleNotFoundError: No module named 'validate'

359 views
Skip to first unread message

Uli Schrey

unread,
Jan 17, 2021, 1:02:14 PM1/17/21
to dxf2gcode-users
Hello,
I tried to install dxf2gcode according to the description. Everything works, however dxf2gcode crashes at startup with error:

[uli@Libra source]$ python3 ./dxf2gcode.py
Traceback (most recent call last):
  File "/home/uli/dxf2gcode-sourcecode/source/./dxf2gcode.py", line 49, in <module>
    from dxf2gcode.globals.config import MyConfig
  File "/home/uli/dxf2gcode-sourcecode/source/dxf2gcode/globals/config.py", line 36, in <module>
    from validate import Validator
ModuleNotFoundError: No module named 'validate'


I tried to install module 'validate' with pip3 install validate which crashes with a syntax error.
I am running on Manjaro with Python 3.9.1 - maybe a compatibility issue? Thanks for any hint how to solve it

Christian Kohlöffel

unread,
Jan 19, 2021, 1:38:02 AM1/19/21
to dxf2gco...@googlegroups.com

Hi, please check the README file there you will see, that python 3.6 (please verify, I am not 100% sure)  should be used. Newer versions may not work.

 

Regards

Christian

--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-users".
To post a message, send mail to dxf2gco...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-use...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-users?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dxf2gcode-users/d4925f32-613e-4ee0-b70d-3073a5b25937n%40googlegroups.com.

Uli Schrey

unread,
Jan 19, 2021, 5:29:59 AM1/19/21
to dxf2gcode-users
Thanks for your response. Readme says:

Prerequisites
-------------
- Unix machines:
  - Build dependencies:
  - /usr/bin/python3 and development package (>=3.5),

so, acording to the readme it should work with Python >= 3.5 (fullfilled with Python 3.9.1; 3.5 is obsolete and 3.6 is EoL in 12/2021)

Regards, Uli

Christian Kohlöffel

unread,
Jan 19, 2021, 6:01:02 AM1/19/21
to dxf2gco...@googlegroups.com

Also in the README:

 

    Note: Please do not install python3 version 3.7.x as at the time of writing

    there is no pyqt5-tools package available for this version of the python.

 

J ….

Try to use 3.6 then.

 

ð  We need to find someone who will work on updating the code  the work with python 3.9 (3.8 reason see below).

 

 

However your failure is coming from  the validate library which is missing.

https://pypi.org/project/validator/

 

Seems to work up to version 3.8 (3.9) not supported up to now. Therefore the newest version we could update to is 3.8.

Reply all
Reply to author
Forward
0 new messages