I have not tested an install on a Windows platform.
It is looking for the directory containing the xml maps. You can
specify the map source by modifying map_path parameter in params.py
On Wed, Apr 14, 2004 at 08:49:24AM -0400, Darren Hartford wrote:
> Thanks for the test file Mousami, this helps a lot!
>
> So my install does not look that good...I'm running Python 2.3 on Win2000 with the libxml2 library from http://xmlsoft.org/, and get the following error when trying to run the below test file. I also ran one of my own corrected files and got the same error.
>
> ==error==
> C:\pyx12-1.0.1b3\build\scripts-2.3>x12xml.py knowntest.dat
> Traceback (most recent call last):
> File "C:\pyx12-1.0.1b3\build\scripts-2.3\x12xml.py", line 133, in ?
> sys.exit(not main())
> File "C:\pyx12-1.0.1b3\build\scripts-2.3\x12xml.py", line 119, in main
> result = pyx12.x12n_document.x12n_document(param, fd_src, None, None, fd_xml
> )
> File "C:\Python23\Lib\site-packages\pyx12\x12n_document.py", line 88, in x12n_
> document
> control_map = map_if.map_if(os.path.join(map_path, 'x12.control.00401.xml'),
> param)
> File "C:\Python23\Lib\site-packages\pyx12\map_if.py", line 190, in __init__
> param.get_param('exclude_external_codes'))
> File "C:\Python23\Lib\site-packages\pyx12\codes.py", line 108, in __init__
> raise errors.EngineError, 'Code file not found: %s' % (code_file)
> pyx12.errors.EngineError: Code file not found: /usr/local/share/pyx12/map/codes.
> xml
> ==end error==
--
John Holland
jo...@zo...
http://www.zoner.org
|