Comments (1)
+1
I'm getting what I believe is the same error on a newer version:
$ python3 Start.py -L tmp/SparkFun-Aesthetics.lbr a b
Error Converting Library: 'SparkFun-Aesthetics'
Error: Can't convert 'NoneType' object to str implicitly
See Log.txt for more info
$ cat Log.txt
###############################################################################
#Session: 2014-12-28 17:35:17
###############################################################################
*******************************************
Converting Lib: tmp/SparkFun-Aesthetics.lbr
Module Output: b
Symbol Output: a
Lib Name: SparkFun-Aesthetics
Conversion Failed
Traceback (most recent call last):
File "Start.py", line 141, in convertLib
lib.writeLibrary(modFile, symFile)
File "/home/abe/prog/github/DanChianucci/Eagle2Kicad/Library/Library.py", line 65, in writeLibrary
self.writeSymFile(symFile)
File "/home/abe/prog/github/DanChianucci/Eagle2Kicad/Library/Library.py", line 86, in writeSymFile
devicepart.write(symFile)
File "/home/abe/prog/github/DanChianucci/Eagle2Kicad/Common/Symbol.py", line 39, in write
symFile.write("#Generated for " + self.device.fullName + " package " + self.device.package + "\n")
TypeError: Can't convert 'NoneType' object to str implicitly
*******************************************
As a temporary workaround, I've wrapped the self.device.package
in an 'xstr' function that returns the empty string if it's a None
type, but this is probably not a great solution as it does not address the underlying problem:
$ diff -b Symbol.py Symbol.py.cur
7a8,10
> def xstr(s):
> return '' if s is None else str(s)
>
39c42,46
< symFile.write("#Generated for " + self.device.fullName + " package " + self.device.package + "\n")
---
> #if self.device.package is None:
> # print( "!!!", self.device.package, self.device.fullName, self.name )
> #symFile.write("#Generated for " + self.device.fullName + " package " + xstr(self.device.package) + "\n")
>
> symFile.write("#Generated for " + xstr(self.device.fullName) + " package " + xstr(self.device.package) + "\n")
46c53
< symFile.write(" " + self.device.package + "\n")
---
> symFile.write(" " + xstr(self.device.package) + "\n")
See https://github.com/abetusk/Eagle2Kicad/blob/release/Common/Symbol.py.
from eagle2kicad.
Related Issues (20)
- Script not working HOT 7
- NameError: global name 'fileNameparser' is not defined HOT 2
- Conversion Failure HOT 1
- Error Converting Library: 'Vishay_By_element14_Batch_1' HOT 1
- Error Converting Library: 'Freescale_By_element14_Batch_1' HOT 1
- Conversion failure - Python encoding issue HOT 1
- Is this under a GPL compatible license? HOT 1
- Extraneous 'hjustify' field in TEXTPCB De? HOT 2
- Quotes around EQUIPOT Names? HOT 1
- Error Converting Sparkfun Eagle libraries HOT 1
- All files have spurious ^M at the end
- Eagle2KiCad doesn't exist as a standalone command line application
- Eeschema arcs do not render properly HOT 1
- Don't catch and hide exceptions when loading modules HOT 1
- XML parsing error HOT 1
- Error starting GUI. Could not find tkinder HOT 2
- Pins which connect to multiple pads are not handled HOT 1
- issues converting seeedstudio open parts library / pin parameters read issue
- readme outdated or wrong HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eagle2kicad.