DanChianucci / Eagle2Kicad

Converts an Eagle 6.0+ .brd into a kicad .brd
MIT License
92 stars 30 forks source link

Script not working #14

Closed ajgallegog closed 10 years ago

ajgallegog commented 11 years ago

Hi! I'm trying to use this, what seems to be a very powerful tool but is not working:

~/Eagle2Kicad$ python Start.py Traceback (most recent call last): File "Start.py", line 16, in from tkinter import Tk,Frame,Label,Button,RIDGE,BOTH,X ImportError: No module named tkinter

besides that, any attempt to run it in a different way does not work either:

Board$ python Board.py Input Filename: input Output Filename: output.brd Traceback (most recent call last): File "Board.py", line 180, in outFileName=input("Output Filename: ") File "", line 1, in NameError: name 'output' is not defined

DanChianucci commented 11 years ago

What version of python are you running. Tkinter is the GUI library and is built into the default python 3.2 interpreter. Can you try using the command line options on start.py? On Apr 8, 2013 8:45 PM, "ajgallegog" notifications@github.com wrote:

Hi! I'm trying to use this, what seems to be a very powerful tool but is not working:

~/Eagle2Kicad$ python Start.py Traceback (most recent call last): File "Start.py", line 16, in from tkinter import Tk,Frame,Label,Button,RIDGE,BOTH,X ImportError: No module named tkinter

besides that, any attempt to run it in a different way does not work either:

Board$ python Board.py Input Filename: input Output Filename: output.brd Traceback (most recent call last): File "Board.py", line 180, in outFileName=input("Output Filename: ") File "", line 1, in NameError: name 'output' is not defined

— Reply to this email directly or view it on GitHubhttps://github.com/Trump211/Eagle2Kicad/issues/14 .

DanChianucci commented 11 years ago

I think you may be running python 2.#. These scripts will only work with python 3.0+.

ajgallegog commented 11 years ago

Thanks :D ... it did launch the program but even though I already updated python, now is giving me some other errors:

Conversion Failed

Traceback (most recent call last): File "Start.py", line 76, in convertBoard brd=Board(node) File "/home/andres/Eagle2Kicad/Board/Board.py", line 25, in init converter=Converter(node) File "/home/andres/Eagle2Kicad/Common/Converter.py", line 19, in init self.getBorder(node) File "/home/andres/Eagle2Kicad/Common/Converter.py", line 56, in getBorder cX,cY=self.convertCoordinate(cX,cY,True) File "/home/andres/Eagle2Kicad/Common/Converter.py", line 93, in convertCoordinate x=xTranspose+int(float(x)*self.factor) OverflowError: cannot convert float infinity to integer


I already checked the input file format as the new one for eagle v6.

DanChianucci commented 11 years ago

I think I fixed this issue in the latest version, can you try again?

ajgallegog commented 11 years ago

Thanks for the answer :D I already tried the latest version, now is giving me a different error in the log file:

Conversion Failed

Traceback (most recent call last): File "Start.py", line 76, in convertBoard brd=Board(node) File "/home/andres/Eagle2Kicad/Board/Board.py", line 41, in init self.getModules(elements,libraryDict,converter) File "/home/andres/Eagle2Kicad/Board/Board.py", line 105, in getModules module=Module(libNode,converter,element,modContacts) File "/home/andres/Eagle2Kicad/Common/Module.py", line 39, in init self.description = str(description.text).split('\n')[0] UnicodeEncodeError: 'ascii' codec can't encode character u'\xf7' in position 26: ordinal not in range(128

DanChianucci commented 11 years ago

This Looks like the same error as in issue #6 . However since his fix was to update and you have already done that i added some code which I think will fix the issue. Can you check ou the newest version and confirm?

dreamalligator commented 11 years ago

From a fresh install on Ubuntu Studio I had the original issue ajgallegog mentions, but that is just because I didn't have tkinter. My solution was to doublecheck I had python3, which I already did with sudo apt-get install python3 and then sudo apt-get install python3-tk and gui popped up fine after that.