Comments (9)
@menacher https://adamj.eu/tech/2019/03/11/pip-install-from-a-git-repository/
from pyx12.
Maybe related to Python 3 support, but when I tried running the validator against the example file, I got an error:
$ x12valid ~/Projects/pyx12/pyx12/examples/example834_5010.txt
Traceback (most recent call last):
File "/home/jbauer/.virtualenvs/salsa/bin/x12valid", line 8, in <module>
sys.exit(main())
File "/home/jbauer/.virtualenvs/salsa/lib/python3.7/site-packages/pyx12/scripts/x12valid.py", line 90, in main
if args.verbose > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'
from pyx12.
I merged a pull request a few days ago that begins python 3 support. Unit tests are passing under both python 2 and 3. Included scripts are failing.
See https://github.com/azoner/pyx12/tree/py3-fix-scripts
from pyx12.
I will publish a new release to pypi when python 3 support is complete.
from pyx12.
Is Python 3 support still in the works, or is it something I would need to take on myself? Thanks!
from pyx12.
I had the same problem - changing the following starting at line 90 in x12valid.py solved it for me:
+ if args.verbose is not None and type(args.verbose).__name__ == 'int':
- if args.verbose > 0:
- logger.setLevel(logging.DEBUG)
+ if args.verbose > 0:
+ logger.setLevel(logging.DEBUG)
Python 3 has changes regarding to None and ordering comparisons, basically any None types are no longer equivalent to 0. See: Python 3 - What's new - Ordering Comparisons
@azoner @rubic
I have created a pull request #69 addressing the reported error. This fix has resolved it for me. Let me know if any questions.
from pyx12.
Is this still open? Giving a first pass on this but don't see much documentation. I made the change mentioned by @ddw360 but getting a different error. Would love to contribute to this project.
from pyx12.
The py3-port branch includes my PR #54 that fixed a bunch of compatibility issues. I've been using that branch on python 3.6 and 3.7 with no issues. It would be good to ship that to pypi, but it's usable as-is: https://github.com/azoner/pyx12/tree/py3-port
from pyx12.
@lucaswiman is there a way to do pip install for this python 3? Or do you copy over the source code and use it with python 3?
from pyx12.
Related Issues (20)
- JSON error and parsing output HOT 2
- Convert from setuptools resource loading to pkgtools HOT 2
- x12xml_idtag.py location or is it deprecated?
- x12xml crashing in dataele.py
- Help - Parse EDI file into XML HOT 2
- XML map for 837D claim HOT 2
- pyx12 usage issue HOT 1
- Tabs not being treated as invalid
- Add map file for 5010 279A1
- 834 5010 LX sequence # collisions? HOT 4
- Error when parsing a 271 file HOT 1
- Help - Parse data in multiple files (not really an issue, a question) HOT 1
- 835 - missing Adjustment Reason Code HOT 5
- Feature Request: Remove validation of external defined code sets HOT 4
- ERROR Failed to create 999 response- X12 file validation HOT 4
- Error parsing 277 file HOT 1
- can it convert to a tabular data format excel or tab delimited file ? HOT 1
- x12valid throwing TypeError: 'NoneType' object is not iterable
- Is this project alive or dead? HOT 1
- Can we please update the pyx12/map/codes.xml
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 pyx12.