paulhammond / webkit2png

png screenshots of webpages
http://www.paulhammond.org/webkit2png/
1.44k stars 196 forks source link

AttributeError: protocols #89

Open lordlycastle opened 8 years ago

lordlycastle commented 8 years ago

I'm getting this error when I run the command.

Traceback (most recent call last):
  File "/usr/local/bin/webkit2png", line 78, in <module>
    class WebkitLoad (Foundation.NSObject, WebKit.protocols.WebFrameLoadDelegate):
  File "/Library/Python/2.7/site-packages/objc/_lazyimport.py", line 163, in __getattr__
    raise AttributeError(name)
AttributeError: protocols

Any idea why this could be happening.

codingisacopingstrategy commented 8 years ago

Having the same, with the 0.7 version that is on Homebrew, under OS X 10.9.5

Kind regards,

igorbogdanov commented 7 years ago

Due to the change of rules for mapping python into obj-c in 3.0+ versions of PyObjC this command line tool could not be used with 3.0+ PyObjC, generating Error described in in Issue 89. The issue is now fixed, but nu sure if it is backwards compatible so suggest having this fix as a separate branch. See pull #102

paulhammond commented 4 years ago

This is because you've installed a non-standard version of PyObjc, and I don't know if it's possible to fix it and maintain compatibility with the version that is installed by default on a Mac. You can use the code in PR #102 while we try to work this out.