Skip to content

rcvtool TypeError: version() takes 0 positional arguments but 1 was given #26

@AlistJa

Description

@AlistJa

I installed rcv3tool according to the instructions in the RVC3-python github.

When trying to launch the rvctool I got the following error:

Traceback (most recent call last):
File "/home/xx/anaconda3/envs/RVC3/bin/rvctool", line 8, in
sys.exit(main())
File "/home/xx/anaconda3/envs/RVC3/lib/python3.10/site-packages/RVC3/bin/rvctool.py", line 284, in main
banner = make_banner(args)
File "/home/xx/anaconda3/envs/RVC3/lib/python3.10/site-packages/RVC3/bin/rvctool.py", line 186, in make_banner
versions.append(f"RTB=={version('roboticstoolbox-python')}")
TypeError: version() takes 0 positional arguments but 1 was given

My Linux is Ubuntu 22.04
I've tried this with two different terminals: terminator and Ubuntu distro standard terminal.
I've tied clean slate ubuntu 22.04 installation in Qemu.
I run the seem to be problematic code in python terminal

f"RTB=={version('roboticstoolbox-python')}")

and it works as expected.

I finally got it working by using --no-banner command line option.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions