Python XML SAX Error while execution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manu4387
    New Member
    • Sep 2013
    • 5

    Python XML SAX Error while execution

    I am new to the Python, i have written one code in python that read the
    data from the XML file and based on the input from the xml file it gives
    the output.
    Later i converted the Python script to .exe file to run on the multiple
    windows server.
    The Python file is running fine when i execute script.py from the machine
    where the python installed, but it gives an error when i ran the script.exe
    file on the machine. Below is the error :
    "AttributeError : module object has no attribute sax"


    I am using Python2.7 and python 2.7 py2exe.
    Please assist me to resolve this error.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    It sounds like xml.sax does not exist and py2exe did not include xml.sax as a dependancy.

    Comment

    • manu4387
      New Member
      • Sep 2013
      • 5

      #3
      Thanks for replying.

      Could you please assist me how can i resolve this issue.

      How can xml.sax can be included into the py2exe for the windows executeable script.

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        I suggest customizing the setup.py with the includes option so you can specify which modules to include. See the py2exe WIKI.

        Comment

        • manu4387
          New Member
          • Sep 2013
          • 5

          #5
          Thanks it got resolved ..

          Comment

          Working...