Git Product home page Git Product logo

Comments (13)

vinniejames avatar vinniejames commented on August 24, 2024 3

Installing PyObjC via pip got things working with the Homebrew Python version:

python2.7 -m pip install -U pyobjc-core
python2.7 -m pip install -U pyobjc

from imagealpha.

kornelski avatar kornelski commented on August 24, 2024 1

I'm afraid you can't have homebrew python. The app requires PyObjC, which is very system-dependent and I wouldn't be surprised if it only worked with python shipped with the OS.

from imagealpha.

kornelski avatar kornelski commented on August 24, 2024

There are no errors appearing in Console.app when this occurs.

:( that makes it difficult.

Please try running it from Terminal:

/Applications/ImageAlpha.app/Contents/MacOS/ImageAlpha

from imagealpha.

jhuebsch avatar jhuebsch commented on August 24, 2024

That gives me the following error message:

Traceback (most recent call last):
  File "main.py", line 10, in <module>
    import objc
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/__init__.py", line 28, in <module>
    from objc._bridgesupport import *
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py", line 13, in <module>
    import pkg_resources
ImportError: No module named pkg_resources

from imagealpha.

kornelski avatar kornelski commented on August 24, 2024

Sorry, I don't know what pkg_resources is. It's not used by the app directly. It seems that your system's installation of Python is broken.

from imagealpha.

jhuebsch avatar jhuebsch commented on August 24, 2024

I'll look into repairing python. I do not recall ever messing with the install but now I have a direction to investigate. Thank you.

from imagealpha.

jhuebsch avatar jhuebsch commented on August 24, 2024

Just posting this here incase someone else has this problem. I made sure I didn't have any other versions of python installed (via home-brew etc) and then manually reinstalled pip https://pip.pypa.io/en/latest/installing.html

from imagealpha.

vinniejames avatar vinniejames commented on August 24, 2024

Having the same trouble on MacOS 10.12.1, Python 2.7.12 (Homebrew)

$ /Applications/ImageAlpha.app/Contents/MacOS/ImageAlpha
Traceback (most recent call last):
  File "main.py", line 20, in <module>
    import ImageAlphaDocument
  File "/Applications/ImageAlpha.app/Contents/Resources/ImageAlphaDocument.py", line 7, in <module>
    import IAImageView
  File "/Applications/ImageAlpha.app/Contents/Resources/IAImageView.py", line 7, in <module>
    from Quartz.CoreGraphics import *
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Quartz/__init__.py", line 82, in <module>
    _load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Quartz/__init__.py", line 20, in _load
    from Quartz import CoreGraphics as m
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Quartz/CoreGraphics/__init__.py", line 108, in <module>
    _load(mod)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Quartz/CoreGraphics/__init__.py", line 41, in _load
    import Quartz.CoreGraphics._callbacks as m
RuntimeError: Wrong version of PyObjC C API

from imagealpha.

vinniejames avatar vinniejames commented on August 24, 2024

That's unfortunate because macOS python is having its own trouble which is
why I was forced to use homebrew

from imagealpha.

kornelski avatar kornelski commented on August 24, 2024

If all else fails, you can use pngquant from command line.

from imagealpha.

vinniejames avatar vinniejames commented on August 24, 2024

Awesome, ill check it out :D

from imagealpha.

benjigreig avatar benjigreig commented on August 24, 2024

@vinniejames, doing that worked for me too. ImageAlpha hasn't been working in a while. Thanks for the tip.

from imagealpha.

kornelski avatar kornelski commented on August 24, 2024

If all else fails, you can compress images with pngquant using this: https://imageoptim.com/online

from imagealpha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.