Error trying to launch Tedana

Hi folks,

I am interested in using TEDANA, but I am having an issue trying to get it running, within Anaconda.

I followed the suggestions of Tsalo found in: suggested tedana conda environmentl yml · Issue #1111 · ME-ICA/tedana · GitHub
as the installation outlined in the documentation didn’t work for me (multiple dependency issues)

Anyhow, by using:

conda create -n tedenv python=3.10 pip
conda activate tedenv
pip install tedana

I didn’t get any errors.

Then I launched Python, and at the prompt typed “import tedana”, and that seemed to be fine.
However, when I typed “tedana --help”, I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: bad operand type for unary -: '_Helper'

I’m not very familiar with Python, so I don’t know how to proceed. Does anyone have suggestions?

Thanks!

Hi @Crock and welcome to neurostars!

As listed in the documentation, the tedana --help command is for the command line interface, not Python interface. If import tedana worked, then you should be good.

Best,
Steven

1 Like

Hi Steven,

Thanks for the advice, that was indeed the problem!

I started to use at the Python prompt because “tedana --help” just seemed to hang, but I guess it needed further setup when first called. Now when I repeat the command, the syntax and options show up pretty much instantly.

Thanks again!

1 Like