No parsers found python

SAXReaderNotAvailble: No parsers found

I am trying to use Python SAX API to parse XML files. I do see expat.py
somewhere underneath my Python 2.1.1 installation (on Solaris).
But I got this error when invoking the xml.sax.make_parser() call. Any
tip/help much appreciated.

You should install Expat before building Python. Best, you edit
Modules/Setup to build pyexpat explicitly.

Regards,
Martin Fast-forward to 2008

I installed Python 3.0b2 on a Windows Vista laptop (after having
previously installed Python 2.5), and I am getting this same error:

Traceback (most recent call last):
File «Programming\Python\monkeys.py», line 24, in
test_parse(sys.argv[1])
File «Programming\Python\monkeys.py», line 21, in test_parse
xml.sax.parse(f, handler)
File «C:\Python30\lib\xml\sax\__init__.py», line 30, in parse
parser = make_parser()
File «C:\Python30\lib\xml\sax\__init__.py», line 90, in make_parser
raise SAXReaderNotAvailable(«No parsers found», None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

I see a pyexpat.lib in the C:\Python30\libs folder.
I also see a pyexpat.pyd in the C:\Python30\DLLs folder.

It works in Python 2.5. I installed Python 3.0b2 as admin.
Does anyone know what is wrong and how to fix it?

Vincent Yau somewhere underneath my Python 2.1.1 installation (on Solaris).
But I got this error when invoking the xml.sax.make_parser() call. *Any
tip/help much appreciated.

You should install Expat before building Python. Best, you edit
Modules/Setup to build pyexpat explicitly.

I installed Python 3.0b2 on a Windows Vista laptop (after having
previously installed Python 2.5), and I am getting this same error:

Traceback (most recent call last):
* File «Programming\Python\monkeys.py», line 24, in
* * test_parse(sys.argv[1])
* File «Programming\Python\monkeys.py», line 21, in test_parse
* * xml.sax.parse(f, handler)
* File «C:\Python30\lib\xml\sax\__init__.py», line 30, in parse
* * parser = make_parser()
* File «C:\Python30\lib\xml\sax\__init__.py», line 90, in make_parser
* * raise SAXReaderNotAvailable(«No parsers found», None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

I see a pyexpat.lib in the C:\Python30\libs folder.
I also see a pyexpat.pyd in the C:\Python30\DLLs folder.

It works in Python 2.5. I installed Python 3.0b2 as admin.
Does anyone know what is wrong and how to fix it? Does anyone have an answer for this?

I uninstalled both Python 2.5 and Python 3.0b2 and then re-installed
3.0b2, thinking that the installer was confusing 2.5 and 3.0b2 on
Windows Vista. Still have the same issue.
I had to use my XP machine, since the Vista installation seems broken
for Python 3.0b2. How do I fix this? How do I get Python to notice the
pyexpat.lib in the C:\Python30\DLLs folder in Vista?

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml.sax.make_parser() returns «No parsers found» #59044

xml.sax.make_parser() returns «No parsers found» #59044

Comments

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

assignee = None closed_at = Date 2012-05-17.16:31:05.364> created_at = Date 2012-05-17.08:42:52.702> labels = ['expert-XML', 'type-bug', 'invalid'] title = 'xml.sax.make_parser() returns "No parsers found"' updated_at = Date 2012-05-17.16:31:05.362> user = 'https://bugs.python.org/rkoziol7'
activity = Date 2012-05-17.16:31:05.362> actor = 'Arfrever' assignee = 'none' closed = True closed_date = Date 2012-05-17.16:31:05.364> closer = 'Arfrever' components = ['XML'] creation = Date 2012-05-17.08:42:52.702> creator = 'rkoziol7' dependencies = [] files = [] hgrepos = [] issue_num = 14839 keywords = [] message_count = 2.0 messages = ['160954', '160978'] nosy_count = 2.0 nosy_names = ['Arfrever', 'rkoziol7'] pr_nums = [] priority = 'normal' resolution = 'not a bug' stage = None status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue14839' versions = ['Python 2.7']

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml.sax._exceptions.SAXReaderNotAvailable: No parsers found #48

xml.sax._exceptions.SAXReaderNotAvailable: No parsers found #48

Comments

I am unable to convert a plist to yaml using your plugin. ‘Convert to YAML and Rearrange Syntax Definition’ outputs the following:

Input type not specified, auto-detecting. Property List Parsing Property List. (/home/matt/.config/sublime-text-2/Packages/Fruity/Fruity.tmLanguage) 

No other messages appear anywhere, nothing happens.

The text was updated successfully, but these errors were encountered:

Oddly enough I just tested and it works fine on ST3. On ST2 it does not work on any .tmLanguage files (also doesn’t work on the one .tmSnippet file I tried). Possibly just some weird issue with my ST2 setup, I’ll take this as a reason to finally make the switch 😛

Hm. I am still curious on why there was no error message though. Did you check the console?

There was no output in the system console, apart from the occasional GTK warning (which appear regardless of if I’m using your plugin). It works fine in ST2 on my other computer, so it’s possible I have a conflicting package installed or something.

Well, turns out I don’t know how to use sublime. I was checking stdout, I forgot about the ctrl-` thing.

[AAAPackageDev] Using plist_parser
Traceback (most recent call last):
File «/home/matt/.config/sublime-text-2/Packages/AAAPackageDev/Lib/sublime_lib/init.py», line 62, in run_
self.typ.run_(self, *args)
File «./sublime_plugin.py», line 356, in run_
File «./file_conversion.py», line 213, in run
File «./fileconv/loaders.py», line 278, in load
File «./fileconv/loaders.py», line 358, in parse
File «/home/matt/.config/sublime-text-2/Packages/AAAPackageDev/Lib/plist_parser.py», line 303, in parse_string
return XmlPropertyListParser().parse(io_or_string)
File «/home/matt/.config/sublime-text-2/Packages/AAAPackageDev/Lib/plist_parser.py», line 297, in parse
return self.parse_using_sax_parser(xml_input)
File «/home/matt/.config/sublime-text-2/Packages/AAAPackageDev/Lib/plist_parser.py», line 274, in parse_using_sax_parser
reader = make_parser()
File «.\xml\sax__init
.py», line 93, in make_parser
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

Okay, I see. That’s something I can work with but I’m not sure if it’s something I can or want to fix because it appears there are no compatible XML parsers on your machine.

Reopening so I can check this some time later.

What OS are you on and which (if any) Python version do you have installed?

Ubuntu 14.04. I have Python 2.7.6 and 3.4.0 installed, although ST2 is running version 2.6.6. ST3 is running 3.3.3. ST2 on my MacBook Air is running 2.6.8. The plugin works on both ST3 on my main computer and ST2 on my Air.

I’ll declare this as an issue with your machine setup, notably involving:

  • ST2 (because that refers to the system Python on UNIX, ST3 does not)
  • Ubuntu with an incomplete Python setup

In fact, this seems to be an exact duplicate of #34 and reinstalling Python 2.6 seems to be able to solve this. But ST3 works anyway and everyone should be using it.

You can’t perform that action at this time.

Источник

SAXReaderNotAvailble: No parsers found

You should install Expat before building Python. Best, you edit
Modules/Setup to build pyexpat explicitly.

I installed Python 3.0b2 on a Windows Vista laptop (after having
previously installed Python 2.5), and I am getting this same error:

Traceback (most recent call last):
File «Programming\Python\monkeys.py», line 24, in
test_parse(sys.argv[1])
File «Programming\Python\monkeys.py», line 21, in test_parse
xml.sax.parse(f, handler)
File «C:\Python30\lib\xml\sax\__init__.py», line 30, in parse
parser = make_parser()
File «C:\Python30\lib\xml\sax\__init__.py», line 90, in make_parser
raise SAXReaderNotAvailable(«No parsers found», None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

I see a pyexpat.lib in the C:\Python30\libs folder.
I also see a pyexpat.pyd in the C:\Python30\DLLs folder.

It works in Python 2.5. I installed Python 3.0b2 as admin.
Does anyone know what is wrong and how to fix it?

Advertisements

josh logan

You should install Expat before building Python. Best, you edit
Modules/Setup to build pyexpat explicitly.

I installed Python 3.0b2 on a Windows Vista laptop (after having
previously installed Python 2.5), and I am getting this same error:

Traceback (most recent call last):
File «Programming\Python\monkeys.py», line 24, in
test_parse(sys.argv[1])
File «Programming\Python\monkeys.py», line 21, in test_parse
xml.sax.parse(f, handler)
File «C:\Python30\lib\xml\sax\__init__.py», line 30, in parse
parser = make_parser()
File «C:\Python30\lib\xml\sax\__init__.py», line 90, in make_parser
raise SAXReaderNotAvailable(«No parsers found», None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

I see a pyexpat.lib in the C:\Python30\libs folder.
I also see a pyexpat.pyd in the C:\Python30\DLLs folder.

It works in Python 2.5. I installed Python 3.0b2 as admin.
Does anyone know what is wrong and how to fix it?

Does anyone have an answer for this?

I uninstalled both Python 2.5 and Python 3.0b2 and then re-installed
3.0b2, thinking that the installer was confusing 2.5 and 3.0b2 on
Windows Vista. Still have the same issue.
I had to use my XP machine, since the Vista installation seems broken
for Python 3.0b2. How do I fix this? How do I get Python to notice the
pyexpat.lib in the C:\Python30\DLLs folder in Vista?

Источник

Читайте также:  Java символы только буквы
Оцените статью