Documentation??

784 views
Skip to first unread message

BambiB

unread,
Jul 28, 2013, 8:36:28 AM7/28/13
to dxf2gco...@googlegroups.com
I've never used Python, but I'm interested in using dxf2gcode.

Are there any examples of output?
Is there any more installation/use documentation?

I found the installation page http://code.google.com/p/dxf2gcode/wiki/Installation and followed the installation instructions (I'm on a Mac).

I installed wxPython and Numpy.  The current version of python on my system is 2.7.  The installation page shows v 2.5 as a dependency, and says dxf2gcode won't work with python v3.0.  But what about 2.7?  Is the dependency v2.5? or v2.5 - v2.999?

After installation (to that point) I tried:

/usr/bin/dxf2gcode.py
Traceback (most recent call last):
  File "/usr/bin/dxf2gcode.py", line 31, in <module>
    from PyQt4 import QtGui, QtCore
ImportError: No module named PyQt4

I don't know what PyQt4 is, but apparently it's necessary for the GUI.  Is this another dependency (one that's not listed?) or Is is a file dxf2gcode cannot find (perhaps in another directory)?

While we're talking dependencies, the wxPython version installed was newer than the specified dependencies:
Is this a potential problem?

Are there any examples (screen shots) of the dxf2gcode GUI?  Can you identify a dxf file and convert it without Eagle integration?

TIA for any help provided!

BB

Christian Kohlöffel

unread,
Jul 28, 2013, 2:53:50 PM7/28/13
to dxf2gco...@googlegroups.com
Hello BB,

see my answers below


Am 28.07.2013 14:36, schrieb BambiB:
I've never used Python, but I'm interested in using dxf2gcode.

Are there any examples of output?
No sorry no examples for now, since i never thought somebody would need it :-). For you i attached one ...
Is there any more installation/use documentation?
I found the installation page http://code.google.com/p/dxf2gcode/wiki/Installation and followed the installation instructions (I'm on a Mac).
I installed wxPython and Numpy.  The current version of python on my system is 2.7.  The installation page shows v 2.5 as a dependency, and says dxf2gcode won't work with python v3.0.  But what about 2.7?  Is the dependency v2.5? or v2.5 - v2.999?
Sorry all documentation is old and i didnt update it until now. Foget about wx, numpy etc.
python 3.0 is a new syntax, so you need to use any version between 2.5 and 2.99

After installation (to that point) I tried:
/usr/bin/dxf2gcode.py
Traceback (most recent call last):
  File "/usr/bin/dxf2gcode.py", line 31, in <module>
    from PyQt4 import QtGui, QtCore
ImportError: No module named PyQt4

I don't know what PyQt4 is, but apparently it's necessary for the GUI.  Is this another dependency (one that's not listed?) or Is is a file dxf2gcode cannot find (perhaps in another directory)?
in former times i tried to use wx as gui but i switched over to pyQt4. So you need to install pyQt4 package now.

While we're talking dependencies, the wxPython version installed was newer than the specified dependencies:
Is this a potential problem?
you dont need wx anymore so just deinstall if possible.


Are there any examples (screen shots) of the dxf2gcode GUI?  Can you identify a dxf file and convert it without Eagle integration?
Just attached one. Hope this helps.

dxf2gcode_screenshot.jpg
Frontplatte_Texte_aufgebrochen.ngx.ngx

BambiB

unread,
Jul 29, 2013, 10:41:30 AM7/29/13
to dxf2gco...@googlegroups.com
Thanks for the reply.  Nice to know that I've been chasing a completely obsolete and pointless install procedure.

Have begun the install using your notes.  Installing PyQt introduced dependencies and had me chasing (and downloading) sip and PyQt tarballs before I stumbled across the Mac install package at http://www.riverbankcomputing.com/software/pyqt/download5.

Unfortunately, that's not an end to the install problems.

python configure.py
Error: Make sure you have a working Qt qmake on your PATH or use the --qmake
argument to explicitly specify a working Qt qmake.

Of course, never having worked with python before, I have no idea what qmake is, or why the PyQt5 install doesn't include Qt.  (Isn't that they point?  To install Qt for python?)

I downloaded and installed Qt (.2GB!) and went searching for qmake - finding it buried in the bowels of the folder hierarchy under something called "Clang64".  Using the --qmake option:

PyQt-gpl-5.0 kurt$ pythoconfigure.py --qmake /Volumes/SnowLeopard/Users/kurt/___Development/_python/5.1.0/clang_64/bin/qmake-bash: pythoconfigure.py: command not found
PyQt-gpl-5.0 python configure.py --qmake /Volumes/SnowLeopard/Users/BB/___Development/_python/5.1.0/clang_64/bin/qmake
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 5.0 (licensed under the GNU General Public
License) for Python 2.7.1 on darwin.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Error: Make sure you have a working sip on your PATH or use the --sip argument
to explicitly specify a working sip.

Apparently the Qt download I did is the developers version.  So back to the old method of installing PyQt5.  

So now I DO need the sip files I downloaded earlier.  Another dependency.    (Hopefully the last!  It's available at http://www.riverbankcomputing.com/software/sip/intro - in case future users want to know). Progress!

Install of SIP complete.

By now I've almost forgotten what it was I started out to do.  Oh yes!

/usr/bin/dxf2gcode.py
Traceback (most recent call last):
  File "/usr/bin/dxf2gcode.py", line 31, in <module>
    from PyQt4 import QtGui, QtCore
ImportError: No module named PyQt4

Oh crap.  Does this mean I'm screwed because I installed PyQt5 instead of the out-of-date PyQt4?

A little checking indicates I have to uninstall PyQt5 before I install PyQt4.

From the pyQt5 page:
Unfortunately it is not possible to use both the PyQt4 and PyQt5 installers at the same time. If you wish to have both PyQt4 and PyQt5 installed at the same time you will need to build them yourself from the source packages.

Jeez.  I hope dxf2gcode is worth all this hassle!

Okay, pyQt4 is downloaded, and here goes nothing!

 python /Users/BB/Downloads/PyQt-mac-gpl-4.10.2\ 2/configure-ng.py --qmake /Volumes/SnowLeopard/Users/BB/___Development/_python/5.1.0/clang_64/bin/qmake --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 4.10.2 (licensed under the GNU General Public
License) for Python 2.7.1 on darwin.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the QAxContainer module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the dbus support module should be built...
DBus v1 does not seem to be installed.
Qt v5.1.0 (Open Source) is being used.
The qmake executable is
/Volumes/SnowLeopard/Users/BB/___Development/_python/5.1.0/clang_64/bin/qmake.
Qt is built as a framework.
SIP 4.14.7 is being used.
The sip executable is
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip.
These PyQt4 modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg,
QtWebKit, QtXml, QtXmlPatterns, QtDesigner.
The PyQt4 Python package will be installed in
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages.
PyQt4 is being built with deprecated Qt v4 features.
PyQt4 is being built with generated docstrings.
PyQt4 is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/Volumes/SnowLeopard/Users/BB/___Development/_python//5.1.0/clang_64/plugins/designer.
The PyQt4 .sip files will be installed in
/System/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/System/Library/Frameworks/Python.framework/Versions/2.7/bin.
The interpreter used by pyuic4 is pythonw2.7.
Embedding sip flags...
Generating the .pro file for the QPy support library for QtCore...
Generating the Makefile for the QPy support library for QtCore...
Generating the C++ source for the QtCore module...
Error: Unable to create the C++ code.

Alright, I was hoping pyQt4 would just overwrite pyQt5 as necessary - but this last error has me flailing.

Insights?


BB

Christian Kohlöffel

unread,
Jul 30, 2013, 2:47:12 PM7/30/13
to dxf2gco...@googlegroups.com
Sorry BB,

i wont be any help in installing pyQt4 for Mac, i just use windows and unix and for both the installation is very easy, without any complex routines etc. I hope you will succeed or maybe you find somebody else to support you.

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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

BambiB

unread,
Jul 31, 2013, 12:08:41 AM7/31/13
to dxf2gco...@googlegroups.com
No problem, Christian.  Thought someone else on the list might have some insight.

Seems you'll probably run into the same problem if you ever upgrade pyQt… assuming this doesn't work with v5… and it appears it doesn't.   Since you can't install both v4 and v5, you get to choose whether to leave dxf2gcode behind or decline to upgrade pyQt.

Thought the information might be of use to whoever does documentation for dxf2gcode… if only for "what you need to do on a Mac"  or at the very least "here are some more dependencies, where to find them and how to install them."  Figured 10 minutes by whomever does the web site to put accurate install info up would save hours for for other users.  (Like when you told me that everything on the web site about dependencies was wrong!)

BB
Reply all
Reply to author
Forward
0 new messages