fury-gl / fury

FURY - Free Unified Rendering in pYthon.
https://fury.gl
Other
241 stars 181 forks source link

TypeError: vector_text() got an unexpected keyword argument 'direction' #856

Open chiuhoward opened 9 months ago

chiuhoward commented 9 months ago

Description

When trying to provide the direction argument in actor.vector_text following https://fury.gl/latest/reference/fury.actor.html#vector-text, I get an unexpected keyword argument.

I am running fury from within a miniconda environment with jupyter notebook.

Code below (which is the example provided in the documentation) works perfectly fine without the direction argument.

Way to reproduce

[If reporting a bug, please include the following important information:]

from dipy.io.streamline import load_trk from dipy.tracking.streamline import transform_streamlines

from fury import actor, window from fury.colormap import create_colormap

from PIL import Image

scene = window.Scene() l = actor.vector_text(text='Hello', direction=(0,1,1)) scene.add(l) window.show(scene)


TypeError Traceback (most recent call last)

in 1 scene = window.Scene() ----> 2 l = actor.vector_text(text='Hello', direction=(0,1,1)) 3 scene.add(l) 4 window.show(scene) TypeError: vector_text() got an unexpected keyword argument 'direction' ``` - [ ] Relevant images (if any) image
chiuhoward commented 9 months ago

Screenshot didn’t get uploaded properly but it’s the same as the code and traceback

image
m-agour commented 9 months ago

Hello @chiuhoward ,

The Fury version you're using (0.8.0) does not support the direction in vector_text(). Try updating Fury to version 0.9.0 .