bnmnetp / cimage Goto Github PK
View Code? Open in Web Editor NEWA simple image processing library for Python educators.
A simple image processing library for Python educators.
I have had one report from a user that cImage does not work with anaconda. Subsequently I downloaded the anaconda distribution and tried it myself. Although there are no error messages, the images are not displayed in the window. I want to emphasize that cImage continues to work fine with the standard distribution of Python, both 2.x and 3.x so it appears this is limited to anaconda.
I'm not sure what the source of the error is, although I've been told it has something to do with tkinter.
I would love to hear from someone knowledgeable about anaconda that might be able to shed some light on this.
Some students and I are encountering this sort of error with cImage and Python 3.4, but not in Python 3.2:
$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
import cImage
e = cImage.EmptyImage(300, 300)
e.getPixel(0, 0)
Traceback (most recent call last):
File "", line 1, in
File "/home/gdweber/.local/lib/python3.4/site-packages/cImage.py", line 310, in getTkPixel
p = [int(j) for j in self.im.get(x,y).split()]
AttributeError: 'tuple' object has no attribute 'split'
After looking into the source code of cImage.py a little, I thought that installing Pillow would help, but it doesn't. It seems that there is also an error importing (part of) PIL:
cImage.pilAvailable
False
from PIL import Image as PIL_Image
from PIL import ImageTk
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'ImageTk'
Those of us encountering the error are using recent versions of Ubuntu. In my case it's Lubuntu 14.04.1 LTS, Python 3.4.0, and python3-pil 2.3.0-1ubuntu3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.