question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reference to _winreg on macOS

See original GitHub issue

butterflow fails to run on macOS due to a reference to _winreg (which appears to be Windows-specific):

Traceback (most recent call last):
  File "/usr/local/bin/butterflow", line 11, in <module>
    load_entry_point('butterflow==0.2.4a4', 'console_scripts', 'butterflow')()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2434, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "build/bdist.macosx-10.14-x86_64/egg/butterflow/__init__.py", line 6, in <module>
ImportError: No module named _winreg

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

1reaction
GodloveDcommented, Dec 28, 2019

fwiw, it looks like you can checkout the last (I assume stable?) release to get around this error on Ubuntu 16. Guess it will probably work on Mac too.

$ cd butterflow && git checkout 0.2.3
1reaction
alfraisescommented, Oct 14, 2019

Unfortunately I have the same problem on Ubuntu 16.04, and the solution of @ascendant512 didn’t work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named _winreg, Installing pypiwin32==219 on ...
I have setup a virtualenv denv in which I am working. (denv) Nehas-MacBook-Pro:dash_pdf neha$ pip install -r requirements.txt. I got this ...
Read more >
No module named _winreg, Installing pypiwin32==219 on ...
I googled some and I found that _winreg required Windows. No way I can get pypiwin32==219 to work on MacOS? python · Share....
Read more >
Issue with WinReg -> Format for Mac? #2 - GitHub
ImportError: No module named _winreg. I'm running a Mac 10.13.6, Python 2.7, Pip 10.0.1. After scouring stackoverflow and other platforms ...
Read more >
ImportError: No module named _winreg, Installing ... - YouTube
ImportError: No module named _winreg, Installing pypiwin32==219 on MacOS XHelpful? Please support me on Patreon: ...
Read more >
fake-winreg - PyPI
100% code coverage, flake8 style checking ,mypy static type checking ,tested under Linux, macOS, Windows, automatic daily builds and monitoring ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found