Code Monkey home page Code Monkey logo

Comments (11)

jadeye avatar jadeye commented on August 16, 2024

Tried with another .brd file, same:

/eagle2fritzing/brd2svg$ ./brd2svg -w ./work/ -e /opt/eagle/
looking for all.packages.txt in "/home/ubuntu/Documents/BT_SB/pcb/eagle2fritzing/brd2svg/all.packages.txt" 
"unable to start LSM6DS3_Breakout_Panel_v10.brd" 
"unable to parse board xml 'LSM6DS3_Breakout_Panel_v10.xml': unexpected end of file line:1 col:1" 
generating bin 
done

from eagle2fritzing.

s-kostyuk avatar s-kostyuk commented on August 16, 2024

Try to use this fork: https://github.com/adafruit/eagle2fritzing/

from eagle2fritzing.

jadeye avatar jadeye commented on August 16, 2024

Thanx...
Sort of an issue as well....

$ ./run.sh 
Traceback (most recent call last):
  File "preprocess.py", line 37, in <module>
    dom = parse(sys.argv[1])    # infile
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: '/home/jadeye/Desktop/FritzingTest/brds/*.brd'
./run.sh: line 32: /home/jadeye/Desktop/FritzingTest/brds/*.brd: No such file or directory
./run.sh: line 33: /home/jadeye/Desktop/FritzingTest/brds/*.brd.tmp: No such file or directory
cp: cannot stat ‘/home/jadeye/Desktop/FritzingTest/brds/*.brd’: No such file or directory
mv: cannot stat ‘/home/jadeye/Desktop/FritzingTest/brds/*.brd.tmp’: No such file or directory
eagle executable '/Applications/EAGLE-7.3.0/EAGLE.app/Contents/MacOS/EAGLE' not found
usage: brd2svg -w <path to working folder (containing brds folder)> -e <path to eagle executable> -c <core or contrib> -g (set only for generic smd ic generation) -s <path to subparts folder> -p <path to second subparts folder> -a <path to 'and' folder> 
cp: cannot stat ‘/home/jadeye/Desktop/FritzingTest/parts’: No such file or directory
jadeye@jadeye-desktop:/opt/eagle2fritzing/brd2svg$ ./brd2svg -w /opt/eagle2fritzing/brd2svg/work -e /opt/eagle
looking for all.packages.txt in "/opt/eagle2fritzing/brd2svg/all.packages.txt" 
"unable to start LSM6DS3_Breakout_Panel_v10.brd" 
"unable to start SparkFun-LSM9DS1-Breakout.brd" 
unable to parse board xml 'LSM6DS3_Breakout_Panel_v10.xml': unexpected end of file line:1 col:1 unable to parse board xml 'SparkFun-LSM9DS1-Breakout.xml': unexpected end of file line:1 col:1
generating bin 
done

Any ideas??

from eagle2fritzing.

s-kostyuk avatar s-kostyuk commented on August 16, 2024

Looks like it failed on stage 'run .ulp file in Eagle'. To fix that, modify original run.sh file:

  • on line 4 of run.sh file set an EXEC variable value to the full path to Eagle executable file; for example for my computer this line will look like this: EXEC=/home/srgk/.local_apps/eagle/bin/eagle;
  • on line 14 of run.sh you may want to change a value of TESTPATH variable; but keep in mind that the specified directory must exist before run.sh script will be ran.

After doing that, I managed to get the following results: https://www.dropbox.com/s/d8vmpqrp9ty3coi/FritzingTest_e2f_issue21.tar.gz?dl=0

from eagle2fritzing.

jadeye avatar jadeye commented on August 16, 2024

Thank you!
Edited the run.sh as you mentioned...worx like a charm!

$ ./run.sh 
looking for all.packages.txt in "/opt/eagle2fritzing/brd2svg/and/all.packages.txt" 
"wrote LSM6DS3_Breakout_Panel_v10.brd xml" 
"wrote SparkFun-LSM9DS1-Breakout.brd xml" 
parsing "LSM6DS3_Breakout_Panel_v10.xml" 
generating params 
parsing "SparkFun-LSM9DS1-Breakout.xml" 
generating params 
generating bin 
done 
looking for all.packages.txt in "/opt/eagle2fritzing/brd2svg/and/all.packages.txt" 
parsing "LSM6DS3_Breakout_Panel_v10.xml" 
parsing "SparkFun-LSM9DS1-Breakout.xml" 
generating bin 
done

Resolved....
Thanx a million...

from eagle2fritzing.

s-kostyuk avatar s-kostyuk commented on August 16, 2024

You are welcome :)

Please, mark this issue as resolved. I'm not a member of this project and I can't change statuses of another's issues. Just a guy who sent several lines of code long time ago

from eagle2fritzing.

el-j avatar el-j commented on August 16, 2024

thanks for your support and code!
can you make a pull-request as well. would be nice having the fix in this original repo as well.
thank you in advance

from eagle2fritzing.

s-kostyuk avatar s-kostyuk commented on August 16, 2024

Well, original (this) repository doesn't have a corresponding run.sh script, to which my pull request was originally related. So, to implement similar behavior in the original repository, it's required to make changes in brd2svg source code itself. It can be tricky

from eagle2fritzing.

s-kostyuk avatar s-kostyuk commented on August 16, 2024

@el-j, pull request is ready (for a while): #22

from eagle2fritzing.

el-j avatar el-j commented on August 16, 2024

sorry for the delay. thank you. merged now

from eagle2fritzing.

s-kostyuk avatar s-kostyuk commented on August 16, 2024

Glad to see it, thank you :)

from eagle2fritzing.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.