Skip to content

Instantly share code, notes, and snippets.

@bazbt3
Created January 31, 2018 14:31
Show Gist options
  • Save bazbt3/8848d2d645452b9c2a9f815f38eb4f3f to your computer and use it in GitHub Desktop.
Save bazbt3/8848d2d645452b9c2a9f815f38eb4f3f to your computer and use it in GitHub Desktop.
PNUTpy 0.2.2 breaks at `import pnutpy` - traceback attached
```
Traceback (most recent call last):
File "/var/containers/Bundle/Application/6C68ED93-06A2-4F12-AF56-3B398F5CC8A4/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 127, in __getattr__
_module = self._resolve()
File "/var/containers/Bundle/Application/6C68ED93-06A2-4F12-AF56-3B398F5CC8A4/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 111, in _resolve
return _import_module(self.mod)
File "/var/containers/Bundle/Application/6C68ED93-06A2-4F12-AF56-3B398F5CC8A4/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 78, in _import_module
__import__(name)
ModuleNotFoundError: No module named 'winreg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/PigPen/PigPen.py", line 15, in <module>
import pnutpy
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/site-packages/pnutpy/__init__.py", line 12, in <module>
from .models import User, Post, Interaction, Token
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/site-packages/pnutpy/models.py", line 7, in <module>
from dateutil.parser import parse
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/site-packages/dateutil/parser.py", line 17, in <module>
from . import tz
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/site-packages/dateutil/tz.py", line 19, in <module>
from dateutil.tzwin import tzwin, tzwinlocal
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/site-packages/dateutil/tzwin.py", line 26, in <module>
TZKEYNAME = _settzkeyname()
File "/private/var/mobile/Containers/Shared/AppGroup/2E8F2965-6C07-47A1-ADCC-3C4E194E359D/Pythonista3/Documents/site-packages/dateutil/tzwin.py", line 17, in _settzkeyname
handle = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
File "/var/containers/Bundle/Application/6C68ED93-06A2-4F12-AF56-3B398F5CC8A4/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 129, in __getattr__
raise AttributeError(attr)
AttributeError: ConnectRegistry
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment