Skip to content
New issue

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

Python 3 plistlib error #9

Open
magnusviri opened this issue Apr 16, 2021 · 0 comments
Open

Python 3 plistlib error #9

magnusviri opened this issue Apr 16, 2021 · 0 comments

Comments

@magnusviri
Copy link

I changed the first line of the script to call python3 and when I run it this is what I get.

Traceback (most recent call last):
  File "/usr/local/bin/plistyamlplist_lib/plist_yaml.py", line 20, in <module>
	from plistlib import Data  # Python 3
ImportError: cannot import name 'Data' from 'plistlib' (/usr/local/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/plistyamlplist", line 21, in <module>
	from plistyamlplist_lib.plist_yaml import plist_yaml
  File "/usr/local/bin/plistyamlplist_lib/plist_yaml.py", line 23, in <module>
	from plistlib import Data  # Python 2
ImportError: cannot import name 'Data' from 'plistlib' (/usr/local/Cellar/[email protected]/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant