Comments (13)
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.
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.
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.
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.
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.
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.
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.
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.
That's unfortunate because macOS python is having its own trouble which is
why I was forced to use homebrew
from imagealpha.
If all else fails, you can use pngquant
from command line.
from imagealpha.
Awesome, ill check it out :D
from imagealpha.
@vinniejames, doing that worked for me too. ImageAlpha hasn't been working in a while. Thanks for the tip.
from imagealpha.
If all else fails, you can compress images with pngquant using this: https://imageoptim.com/online
from imagealpha.
Related Issues (20)
- Closing the last open window doesn't quit the app HOT 2
- Massive memory leak HOT 2
- Unable to start ImageAlpha HOT 3
- Unique color count HOT 5
- New from pasteboard HOT 1
- Why no File → Save option? HOT 2
- Update pngquant
- Toggle Original shortcut is broken HOT 3
- Drag and drop issue. ImageAlpha is not selected, Finder is selected instead
- Batch Processing HOT 1
- image scaling in window HOT 3
- Saving directly from the application HOT 1
- Does not work on High Sierra HOT 6
- Slow startup on Sierra HOT 6
- Imagealpha not working in High Sierra HOT 1
- Preview image aligns to subpixels on non-Retina displays
- It would be good if opening multiple images opened them in tabs by default
- Python/PyObjC program failed to start. HOT 1
- Error dragging png related to launch path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagealpha.