eagle2fritzing: need help with run.py

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
sadlersr
 
Posts: 2
Joined: Tue Apr 24, 2018 12:10 am

eagle2fritzing: need help with run.py

Post by sadlersr »

Hello, I've read the "make-beautiful-fritzing-parts-with-eagle2fritzing-brd2svg" guide and the readme on GitHub, and I'm having trouble getting the run.py script to complete. Here are my specs:
  • -Windows 7 64-bit on a fairly new machine
    -python 2.7
    -Eagle 9.0.0
    -no spaces in any names in the path to the "FritzingTest" WORKING directory
    -no spaces in any names in the path to Eagle 9.0.0
    -I have a "brds" directory within the "FritzingTest" working directory, and I have a .brd file in the "brds" directory
    -I am running the Adafruit pre-compiled brd2svg.exe in a command prompt that I opened as an administrator, and that works just fine (the output looks identical to that in the Guide)
    -I updated the run.py and run.sh scripts using Notepad++ to point to Eagle and the Working directory, and have attached both to this post for review(relabeled as .txt files so they will upload)
The problem I am having is that when I run the run.py script I get the following errors:

Code: Select all

C:\Users\Office\Documents\Fritzing\Eagle2Fritzing\eagle2fritzing\brd2svg>python run.py
['FritzingTest/brds\\RAMPS14.brd']
win32
Traceback (most recent call last):
  File "preprocess.py", line 37, in <module>
    dom = parse(sys.argv[1])    # infile
  File "C:\Python27\lib\xml\dom\minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "C:\Python27\lib\xml\dom\expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "C:\Python27\lib\xml\dom\expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0
Traceback (most recent call last):
  File "run.py", line 49, in <module>
    NEWSIZE = os.stat(FILENAME+".tmp")[6]
WindowsError: [Error 2] The system cannot find the file specified: 'FritzingTest/brds\\RAMPS14.brd.tmp'
If someone wouldn't mind looking at my run.py and run.sh scripts and tell me if I've made a silly mistake, I would appreciate it.

Thanks in advance...Sean
run-py.txt
This is the run.py script
(3.09 KiB) Downloaded 74 times
run-sh.txt
This is the run.sh script
(3.24 KiB) Downloaded 71 times

User avatar
sadlersr
 
Posts: 2
Joined: Tue Apr 24, 2018 12:10 am

Re: eagle2fritzing: need help with run.py

Post by sadlersr »

OK, so never mind.....

Apparently my .brd file is bad. I tried again with the Adafruit DRV2605L.brd file provided in the Guide, and it works just fine. So, now to figure out why why original .brd file won't.

-Sean

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”