Dxf2Gcode

More
22 Jul 2016 05:20 #77807 by Marfil
Dxf2Gcode was created by Marfil
Hi every one.
Recently I installed Debian Wheezy with Linuxcnc (ones again) and I've tried integrate this app. with Dxf2Gcode.
Regarding the last one, I discovered the following. I can open the app, make a personal configuration, open my dxf files, but I can't export Gcodes or shapes, suddenly it close and that's all.
This is the 2015 release.
All of this in LXDE desktop (in KDE desktop, dxf2gcode does not appear)

On the other hand (meanwhile) I installed Dxf2gcode 2010, This app. runs ok in both desktops
The question is. What I need change in Debian in order to solve this issue? I prefer the 2015 release.
Could you help me?
Thank in advance
Marfil

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 11:28 #77825 by tommylight
Replied by tommylight on topic Dxf2Gcode
Check if you have "write" permissions for the folder you are trying to save files in.
Or start a terminal and start dxf2gcode from the terminal so you can check what the errors are while writing the file.

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 17:11 #77845 by Marfil
Replied by Marfil on topic Dxf2Gcode

Check if you have "write" permissions for the folder you are trying to save files in.
Or start a terminal and start dxf2gcode from the terminal so you can check what the errors are while writing the file.


Hi tommylight. Thanks for you answer.
I've changed the permissions; Nothing change.

I did a new launcher in my desktop, and I've used the following line:
Command. sudo python /opt/source/dxg2gcode.py
path: /opt/source
I did a mark in pickbox: execute in terminal.

[Desktop Entry]
Version=1.0
Type=Application
Name=R15_Dxf2Gcode
Comment=Conversor
Exec=sudo python /opt/source/dxf2gcode.py
Icon=/opt/source/images/dxf2gcode_logo.png
Path=/opt/source
Terminal=true
StartupNotify=false

I launched the app.
A couple of times: In a terminal (I need put the pass) it wrote the gcode (in terminal).
Right now, this not happen any more. ¿? The terminal closed.
That's all......

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 18:44 #77848 by tommylight
Replied by tommylight on topic Dxf2Gcode
I do not have a wheezy installation for now, so i can not check, but in the meantime check the python version since you mentioned that 2010 works on that same computer.
Also remove the sudo from the startup link, start a terminal, navigate to where the dxf2gcode is located and type : "./dxf2gcode.py
then try to save something.
If it brakes, you will have the error messages in the terminal so just copy and paste that here in the forum.

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 18:55 #77849 by tommylight
Replied by tommylight on topic Dxf2Gcode
Well i just gave it a try on my Linux Mint box, and this is what i get with both versions on 2015 and 2016:
cnc@cnc2 ~/Downloads/linuxcnc/source $ python dxf2gcode.py
Traceback (most recent call last):
File "dxf2gcode.py", line 1051, in <module>
window = MainWindow(app)
File "dxf2gcode.py", line 105, in __init__
self.ui.setupUi(self)
File "/home/cnc/Downloads/linuxcnc/source/dxf2gcode_ui4.py", line 451, in setupUi
self.messageBox = MessageBox(self.centralwidget)
File "/home/cnc/Downloads/linuxcnc/source/gui/messagebox.py", line 53, in __init__
self.append(self.tr("Version %s (%s)") % (c.VERSION, c.DATE))
TypeError: unsupported operand type(s) for %: 'QString' and 'tuple'

2014 runs just fine.
Strange, need to do more research.

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 19:22 #77850 by tommylight
Replied by tommylight on topic Dxf2Gcode
So, when i run them from terminal, version 2016 works all good, 2015 version needs removing line 53 from /gui/messagebox.py and it also works without issues.
I do not have wheezy, so i do not have a way of testing it.

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 21:43 #77855 by Marfil
Replied by Marfil on topic Dxf2Gcode
I I've Installed the 2014 release In a temporary folder and it doesn't work.

cnc@Marfil:~/Imágenes/source$ python dxf2gcode.py

Traceback (most recent call last):
File "dxf2gcode.py", line 968, in <module>
g.config = MyConfig()
File "/home/cnc/Imágenes/source/Core/Config.py", line 201, in __init__
self.load_config()
File "/home/cnc/Imágenes/source/Core/Config.py", line 290, in load_config
logger.debug(self.tr("created default varspace '%s'") % (self.filename))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128)

And this is the 2016.

cnc@Marfil:~/Imágenes$ ls
2010-05-04-dxf2gcode_b02_source_linux 2014_source mozicon128.png source

cnc@Marfil:~/Imágenes/source$ ls
COPYING dxf2gcode.py globals make_py_uic.py
core dxf2gcode.ui gui make_tr.py
dxf2gcode_images4_rc.py dxf2gcode_ui4.py i18n postpro
dxf2gcode_images5_rc.py dxf2gcode_ui5.py images setup.py
dxf2gcode_images.qrc dxfimport make_exe.py

cnc@Marfil:~/Imágenes/source$ python dxf2gcode.py
Traceback (most recent call last):
File "dxf2gcode.py", line 1081, in <module>
g.config = MyConfig()
File "/home/cnc/Imágenes/source/globals/config.py", line 315, in __init__
self.load_config()
File "/home/cnc/Imágenes/source/globals/config.py", line 420, in load_config
logger.debug(self.tr("created default varspace '%s'") % self.filename)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128)

cnc@Marfil:~/Imágenes/source$
That's all.
Any suggestion? :(
Thanks a lot

Please Log in or Create an account to join the conversation.

More
22 Jul 2016 22:36 #77860 by tommylight
Replied by tommylight on topic Dxf2Gcode
It looks like you are not using UTF8 so here is the possible solution:

stackoverflow.com/questions/21393758/uni...n-position-0-ordinal

stackoverflow.com/questions/10406135/uni...n-position-2-ordinal

Regards,
Tom

Please Log in or Create an account to join the conversation.

More
24 Jul 2016 23:16 - 24 Jul 2016 23:22 #77947 by Marfil
Replied by Marfil on topic Dxf2Gcode
Hi tommylight. Just for your information I send you this.:
groups.google.com/forum/#!topic/dxf2gcode-users/IJZHAk_tPBo
Felipe C. had the same problem than me... And he solved it using the 2010 release. (just like me..)
According Christian K the problem is in ascii code. But he doesn't said how solve this issue... currently my knowledge are not enough to get a solution so I'm still in the same place.
Regards.
PD: may be Felipe C. is from Argentina like me.
Last edit: 24 Jul 2016 23:22 by Marfil.

Please Log in or Create an account to join the conversation.

More
25 Jul 2016 00:07 #77949 by tommylight
Replied by tommylight on topic Dxf2Gcode
I used those same links and made 2016 version work yesterday, so you give it a try.
Also i did read that and skipped as it had no solution.
On the first link you have the solution, just change the decoding to UTF8 if you are using UTF8 or to whatever you are using, most probably Latin.
Regards,
Tom
The following user(s) said Thank You: Marfil

Please Log in or Create an account to join the conversation.

Moderators: Skullworks
Time to create page: 0.305 seconds
Powered by Kunena Forum