AttributeError: 'PhyloTree' object has no attribute 'add_properties'

8 views
Skip to first unread message

Mark Blaxter

unread,
Dec 23, 2025, 2:31:56 PM (yesterday) Dec 23
to The ETE toolkit
I have just installed ete4 [I know, very late to the party] using pip and am getting the following error when trying to run a toy ncbi query which I always used to test ete3 install with:

ete4 ncbiquery --tree --search 9606 9598 10090 7707 8782

this yields:

Traceback (most recent call last):

  File "/opt/homebrew/Caskroom/miniforge/base/bin/ete4", line 8, in <module>

    sys.exit(main())

             ^^^^^^

  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/site-packages/ete4/tools/ete.py", line 64, in main

    _main(sys.argv)

  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/site-packages/ete4/tools/ete.py", line 256, in _main

    args.func(args)

  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/site-packages/ete4/tools/ete_ncbiquery.py", line 129, in run

    n.add_properties(taxid=n.name)

    ^^^^^^^^^^^^^^^^

AttributeError: 'PhyloTree' object has no attribute 'add_properties'

The same set of taxa with --info instead of tree returns the expected information.

Jordi Burguet Castell

unread,
Dec 23, 2025, 5:48:11 PM (yesterday) Dec 23
to eteto...@googlegroups.com
Hi Mark,

Thank you for reporting this. The tools really need a thorough review, they have not been tested like other areas in the transition from ete3 to ete4. But at least the problem you were having seemed easy enough to fix. It should work now if you want to try with the latest revision from the repository (pip install --force-reinstall https://github.com/etetoolkit/ete/archive/ete4.zip).

Cheers,
Jordi

--
You received this message because you are subscribed to the Google Groups "The ETE toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etetoolkit+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/etetoolkit/8bbf91cf-526b-44da-ad5d-7c5437477984n%40googlegroups.com.

Mark Blaxter

unread,
5:31 AM (16 hours ago) 5:31 AM
to eteto...@googlegroups.com, Mark Blaxter
Thanks Jordi; installed and passeed tests just finee; your help much apppreciated, and on christmas eve too. ete continues to be a core toolkit in our work!

> On 23 Dec 2025, at 22:47, Jordi Burguet Castell <jordi.burg...@gmail.com> wrote:
>
> This Message Is From an Untrusted Sender
> You have not previously corresponded with this sender.
> Report Suspicious
> Hi Mark,
>
> Thank you for reporting this. The tools really need a thorough review, they have not been tested like other areas in the transition from ete3 to ete4. But at least the problem you were having seemed easy enough to fix. It should work now if you want to try with the latest revision from the repository (pip install --force-reinstall https://github.com/etetoolkit/ete/archive/ete4.zip [github.com]).
>
> Cheers,
> Jordi
>
> On Tue, Dec 23, 2025 at 8:31 PM Mark Blaxter <mb...@sanger.ac.uk> wrote:
> I have just installed ete4 [I know, very late to the party] using pip and am getting the following error when trying to run a toy ncbi query which I always used to test ete3 install with:
>
> ete4 ncbiquery --tree --search 9606 9598 10090 7707 8782
>
> this yields:
> Traceback (most recent call last):
> File "/opt/homebrew/Caskroom/miniforge/base/bin/ete4", line 8, in <module>
> sys.exit(main())
> ^^^^^^
> File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/site-packages/ete4/tools/ete.py", line 64, in main
> _main(sys.argv)
> File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/site-packages/ete4/tools/ete.py", line 256, in _main
> args.func(args)
> File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/site-packages/ete4/tools/ete_ncbiquery.py", line 129, in run
> n.add_properties(taxid=n.name [n.name])
> ^^^^^^^^^^^^^^^^
> AttributeError: 'PhyloTree' object has no attribute 'add_properties'
> The same set of taxa with --info instead of tree returns the expected information.
>
> --
> You received this message because you are subscribed to the Google Groups "The ETE toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to etetoolkit+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/etetoolkit/8bbf91cf-526b-44da-ad5d-7c5437477984n%40googlegroups.com [groups.google.com].
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "The ETE toolkit" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/etetoolkit/r3kB65e0iAs/unsubscribe [groups.google.com].
> To unsubscribe from this group and all its topics, send an email to etetoolkit+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/etetoolkit/CAHeUoZbG%3D%3DmpAEDJWk%2B1VggWF_E%2Bk4MOf_0j3vY0aYYEG%2BjreA%40mail.gmail.com [groups.google.com].

----------------------------------------------------------------------
The Wellcome Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is Wellcome Sanger Institute, Wellcome Genome Campus, Hinxton, CB10 1SA.

Reply all
Reply to author
Forward
0 new messages