That was it, changing map_path for my specific path (especially Windows =
users) fixed the problem.
-D
-----Original Message-----
From: John Holland [mailto:jo...@zo...]
Sent: Wednesday, April 14, 2004 9:57 AM
To: pyx...@li...
Subject: [Pyx12-developer] Re: test data - install problem?
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!
>=20
> 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.
>=20
> =3D=3Derror=3D=3D
> 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 =3D 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 =3D 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
> =3D=3Dend error=3D=3D
--=20
John Holland=20
jo...@zo...
http://www.zoner.org
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli=
ck
_______________________________________________
Pyx12-developer mailing list
Pyx...@li...
https://lists.sourceforge.net/lists/listinfo/pyx12-developer
|