[Bug 438102] Re: segfaults when using non-rgb colors

Florian Diesch diesch at spamfence.net
Sun Oct 11 09:21:42 UTC 2009


I don't get a segfault but a TypeError:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from visual import *
>>> ball = sphere(pos=(0, 0, 0), color="red")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/visual/primitives.py", line 147, in __init__
    process_init_args_from_keyword_dictionary(self, keywords)
  File "/usr/lib/python2.6/dist-packages/visual/primitives.py", line 49, in process_init_args_from_keyword_dictionary
    displayobject.color =  keywords['color']
TypeError: No registered converter was able to produce a C++ rvalue of type float from this Python object of type str


Does the documentation say you can use a string here?

-- 
segfaults when using non-rgb colors
https://bugs.launchpad.net/bugs/438102
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list