Need help with dxf2gcode [solved]

More
13 Jul 2014 15:57 - 13 Jul 2014 20:32 #48712 by Lc1975
Hello.

Once again i need your help...

:)

After a fresh install of Ubuntu 12.04 and of linuxcnc 2.6 now everything works fine...

But after reading here some G Code generators i tried to use dxf2gcode, i think that i have everyhing installed from python to run the program...

But when i open linuxcnc and open the (dxf2gcode.py) i have this error:

filipe@Vaio-VPCEH3K1E:~/Transferências/source$ ./dxf2gcode.py
(PyQt4.QtCore.QString(u'dxf2gcode_pt_PT'), './i18n')
Traceback (most recent call last):
File "./dxf2gcode.py", line 980, in <module>
window = Main(app)
File "./dxf2gcode.py", line 89, in __init__
self.MyPostProcessor = MyPostProcessor()
File "/home/filipe/Transferências/source/PostPro/PostProcessor.py", line 100, in __init__
self.get_output_vars()
File "/home/filipe/Transferências/source/PostPro/PostProcessor.py", line 123, in get_output_vars
PostProConfig.load_config()
File "/home/filipe/Transferências/source/PostPro/PostProcessorConfig.py", line 187, in load_config
logger.debug(self.tr("read existing varspace '%s'") % (self.filename))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
filipe@Vaio-VPCEH3K1E:~/Transferências/source$


Help please.. :)

Thanks.
Last edit: 13 Jul 2014 20:32 by Lc1975.

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

More
13 Jul 2014 18:34 #48718 by cncbasher
Replied by cncbasher on topic Need help with dxf2gcode
not sure if this will help but , check that you do not have spaces in file names .

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

More
13 Jul 2014 18:51 - 13 Jul 2014 18:53 #48721 by Lc1975
Replied by Lc1975 on topic Need help with dxf2gcode
Thanks for the tip.

Went to all files "__init__.py"
and take off the
" _ "
Now only appear one error...

filipe@Vaio-VPCEH3K1E:~/Transferências/source$ ./dxf2gcode.py
Traceback (most recent call last):
File "./dxf2gcode.py", line 34, in <module>
from dxf2gcode_pyQt4_ui.dxf2gcode_pyQt4_ui import Ui_MainWindow
ImportError: No module named dxf2gcode_pyQt4_ui.dxf2gcode_pyQt4_ui


Try to edit that file... but no sucess...
Last edit: 13 Jul 2014 18:53 by Lc1975.

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

More
13 Jul 2014 19:02 #48722 by ArcEye
Replied by ArcEye on topic Need help with dxf2gcode

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)


ASCII charactors are from 0x00 to 0x7F

A charactor 0xc3 has been detected as per the error message.
However I am not sure if this is something you have put through it or an internal error.

Try using dxf2gcode on the commandline and make sure it works properly before trying to use it through linuxcnc

regards

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

More
13 Jul 2014 19:06 #48723 by ArcEye
Replied by ArcEye on topic Need help with dxf2gcode

Went to all files "__init__.py"
and take off the
" _ "
Now only appear one error...


You can't do that, they are system files, you only get 1 error because it did not get far enough for more of them.

What cncbasher meant was make sure you dont have spaces in your file names, also ensure they were not created with a windows editor.

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

More
13 Jul 2014 19:28 - 13 Jul 2014 19:42 #48724 by Lc1975
Replied by Lc1975 on topic Need help with dxf2gcode
My mistake on erasing ( _ ) :whistle: :whistle:

Tried to do from begining..
But no luck..
The same errors...

Did like this:

Download the source: 2014-02-12-DXF2GCODE_PyQt4_beta_source.rar 2014-02-12 348.5 kB

Put the folder in:
/home/filipe/Downloads

Then follow the instalation from wiki all the steps (1,2,3)
[code.google.com/p/dxf2gcode/wiki/Installation

Reboot Pc...
Tried on terminal:

./dxf2gcode.py

But no luck....
Last edit: 13 Jul 2014 19:42 by BigJohnT. Reason: don't use code tags for links

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

More
13 Jul 2014 19:45 #48725 by BigJohnT
Replied by BigJohnT on topic Need help with dxf2gcode
Python is not a compiled language so re-booting is not needed. I assume the directory where you put the .py file is not the same one that you issued the command in so nothing happened. The directions on the wiki say to put the files where ever you want. Your using 12.04 so I can offer no more help on trying to run the .py file other than you have to be in the same directory when you do ./filename.py in a terminal.

JT

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

More
13 Jul 2014 19:58 - 13 Jul 2014 19:58 #48727 by Lc1975
Replied by Lc1975 on topic Need help with dxf2gcode
In the terminal i go to the folder where the is the dxf2gcode..

Go to folder "source" then execute the command..

Terminal:

filipe@Vaio-VPCEH3K1E:~/Transferências/source$ ls

config
d2gexceptions.py
dxf2gcode.py
DxfImport
i18n

make_exe.py
PostPro
Core
d2gexceptions.pyc
dxf2gcode_pyQt4_ui
Gui
images

make
_pylupdate4_dxf2gcode.py
postpro_config

filipe@Vaio-VPCEH3K1E:~/Transferências/source$ ./dxf2gcode.py


This is correct right?

After the command appears the error..
Last edit: 13 Jul 2014 19:58 by Lc1975.

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

More
13 Jul 2014 20:01 #48728 by BigJohnT
Replied by BigJohnT on topic Need help with dxf2gcode
Yes, that is correct and from the highlighting the file looks to be executable.

What happened after this command?
filipe@Vaio-VPCEH3K1E:~/Transferências/source$ ./dxf2gcode.py

JT

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

More
13 Jul 2014 20:08 #48729 by Lc1975
Replied by Lc1975 on topic Need help with dxf2gcode
This:
filipe@Vaio-VPCEH3K1E:~/Transferências/source$ ./dxf2gcode.py
(PyQt4.QtCore.QString(u'dxf2gcode_pt_PT'), './i18n')
Traceback (most recent call last):
File "./dxf2gcode.py", line 980, in <module>
window = Main(app)
File "./dxf2gcode.py", line 89, in __init__
self.MyPostProcessor = MyPostProcessor()
File "/home/filipe/Transferências/source/PostPro/PostProcessor.py", line 100, in __init__
self.get_output_vars()
File "/home/filipe/Transferências/source/PostPro/PostProcessor.py", line 123, in get_output_vars
PostProConfig.load_config()
File "/home/filipe/Transferências/source/PostPro/PostProcessorConfig.py", line 187, in load_config
logger.debug(self.tr("read existing varspace '%s'") % (self.filename))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
filipe@Vaio-VPCEH3K1E:~/Transferências/source$

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

Time to create page: 0.188 seconds
Powered by Kunena Forum