Install DXF2GCode on MAC Os X

355 views
Skip to first unread message

Aleksandar

unread,
Nov 22, 2019, 6:57:22 PM11/22/19
to dxf2gcode-users

Hi,


when I try to install DXF2GCode with the follow command:


$ python3 ./make_tr.py


then I received the Error Message:


ERROR: Cannot file lrelease tool.

Please consider to install lrelease tool - to use this script.


How can I install and use DXF2Gcode on a MAC?


I Installed


python3 --version

Python 3.7.5


PyQt5

PyOpenGL

pdftops, and

pstoedit

Can anybody help me with this issue. 

Thank you in advance for your help!!!

Christian Kohlöffel

unread,
Nov 23, 2019, 3:06:20 AM11/23/19
to 'Timo Birnschein' via dxf2gcode-users
This is a python specific question. Did you check if it's installed on another path or try to search with Google
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/fe8a107e-6e86-431b-9365-86700dde3d41%40googlegroups.com.

Bernhard Klein

unread,
Nov 23, 2019, 5:31:26 AM11/23/19
to dxf2gco...@googlegroups.com
Hi,

I’m a MacUser too.

I had huge problems with Python 3.7.x and got dxf2gcode not to run.
In general : I downgraded to Python 3.6.x and than I had success !


Package lrelease
During my work on a docker container for dxf2gcode to run it on my LinuxCNC machine, I struggled with this missing „lrelease“ lib.
Problem behind is, that you didn't install all neccessary QT-Tools on your Mac.

My solution on this docker container was(is) to 
(Docker syntax !!! - and for debian linux
RUN apt-get install -y qttools5-dev-tools  qt5-default
RUN  apt-get install -y pyqt5-dev-tools

(I remember qttools5-dev-tools were responsible to install lrelease(I think so ;-) ))

However on my Mac (Catalina 10.15.x)
lrelease is a part of QT

On my mac I get following output, if I start from a terminal lrelease:

"lrelease 
Usage:
    lrelease [options] project-file
    lrelease [options] ts-files [-qm qm-file]

lrelease is part of Qt's Linguist tool chain. It can be used as a
stand-alone tool to convert XML-based translations files in the TS
format into the 'compiled' QM format used by QTranslator objects.
"

Honestly I can’t really remember as I installed dxf2gcode on my mac - but I know it was a little bit frustrating. Because the latest versions are based on QT5 and that was a challenge to install QT5 on my system.

On termial do this: brew list
Around Python & QT I have following packages installed:
  • py2cairo
  • pygobject
  • pygtk
  • pygt
  • python
  • python3
  • qt

Do not forget to install poppler and pstoedit to export and save files


BTW: my docker container is not finished, I have problems to start dxf2gcode and populate the QT outside the container

Regards
Bernd

Reply all
Reply to author
Forward
0 new messages