Giter VIP home page Giter VIP logo

cimage's People

Contributors

bnmnetp avatar jadrian avatar max-hailperin avatar zerotau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cimage's Issues

cImage is not compatible with the anaconda distribution

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.

getPixel error in Python 3.4

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.

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.