From barry at barryduggan.info Sat May 28 15:43:58 2016 From: barry at barryduggan.info (Barry Duggan) Date: Sat, 28 May 2016 14:43:58 -0500 Subject: [XML-sig] Problems installing Message-ID: I am new to PyXML. I am using Ubuntu 16.04 I downloaded PyXML-0.8.4.tar.gz and unzipped it. Trying to run setup.py I have had the following problems: When using sudo python setup.py build, I get: Traceback (most recent call last): File "setup.py", line 127, in config_h_vars = parse_config_h(open(config_h)) IOError: [Errno 2] No such file or directory: '/usr/include/python2.7/pyconfig.h' When using sudo python3 setup.py build, I get: File "setup.py", line 51 sys.argv.remove(arg) TabError: inconsistent use of tabs and spaces in indentation I fixed that and got another one at line 57 I fixed that and got Traceback (most recent call last): File "setup.py", line 10, in from setupext import Data_Files, install_Data_Files, wininst_request_delete File "/home/barry/Program_Files/PyXML-0.8.4/setupext/__init__.py", line 3, in from install_data import Data_Files, install_Data_Files ImportError: No module named 'install_data' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 15, in import xml.dom, xml.dom.minidom File "/home/barry/Program_Files/PyXML-0.8.4/xml/dom/__init__.py", line 236, in import MessageSource ImportError: No module named 'MessageSource' So, where do I go from here? Thanks, Barry Duggan Duggan Computer Systems cell (256) 426-0824 http://barryduggan.info/home.php From arcriley at gmail.com Sat May 28 16:59:33 2016 From: arcriley at gmail.com (Arc Riley) Date: Sat, 28 May 2016 16:59:33 -0400 Subject: [XML-sig] Problems installing In-Reply-To: References: Message-ID: Py-XML has been replaced by built in modules that you already have with Python 2.7 There's also lxml and nodetree for more advanced uses On May 28, 2016 2:44 PM, "Barry Duggan" wrote: > I am new to PyXML. I am using Ubuntu 16.04 > I downloaded PyXML-0.8.4.tar.gz and unzipped it. > Trying to run setup.py I have had the following problems: > > When using sudo python setup.py build, I get: > Traceback (most recent call last): > File "setup.py", line 127, in > config_h_vars = parse_config_h(open(config_h)) > IOError: [Errno 2] No such file or directory: > '/usr/include/python2.7/pyconfig.h' > > When using sudo python3 setup.py build, I get: > File "setup.py", line 51 > sys.argv.remove(arg) > TabError: inconsistent use of tabs and spaces in indentation > I fixed that and got another one at line 57 > I fixed that and got > Traceback (most recent call last): > File "setup.py", line 10, in > from setupext import Data_Files, install_Data_Files, > wininst_request_delete > File "/home/barry/Program_Files/PyXML-0.8.4/setupext/__init__.py", line > 3, in > from install_data import Data_Files, install_Data_Files > ImportError: No module named 'install_data' > Error in sys.excepthook: > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in > apport_excepthook > from apport.fileutils import likely_packaged, get_recent_crashes > File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in > > from apport.report import Report > File "/usr/lib/python3/dist-packages/apport/report.py", line 15, in > > import xml.dom, xml.dom.minidom > File "/home/barry/Program_Files/PyXML-0.8.4/xml/dom/__init__.py", line > 236, in > import MessageSource > ImportError: No module named 'MessageSource' > > So, where do I go from here? > > Thanks, > > Barry Duggan > Duggan Computer Systems > cell (256) 426-0824 > > http://barryduggan.info/home.php > > > _______________________________________________ > xml-sig mailing list > xml-sig at python.org > https://mail.python.org/mailman/listinfo/xml-sig > -------------- next part -------------- An HTML attachment was scrubbed... URL: