Hi again,

> I tried installing the newest Kwant version now, using:
> 
> pip3 install git+https://gitlab.kwant-project.org/kwant/kwant.git@master
> 
> but now I get a new error message (same code):
> 
> 
>   File "/home/camilla/Kwant/Tests/conservation.py", line 91, in <module>
>     main()
>   File "/home/camilla/Kwant/Tests/conservation.py", line 68, in main
>     syst = make_system(t=1.0, W=40, L=40, lead_W = 40)
>   File "/home/camilla/Kwant/Tests/conservation.py", line 56, in make_system
>     syst.attach_lead(lead)
>   File "/home/camilla/.local/lib/python3.5/site-packages/kwant/builder.py", 
> line 1402, in attach_lead
>     self.leads.append(BuilderLead(lead_builder, tuple(interface)))
>   File "/home/camilla/.local/lib/python3.5/site-packages/kwant/builder.py", 
> line 566, in __init__
>     self.interface = tuple(sorted(interface))
> TypeError: unorderable types: tinyarray.ndarray_int() < 
> tinyarray.ndarray_int()
> [Finished in 1.4s with exit code 1]

This means that you have a not-recent-enough version of tinyarray. Are
you running the code in exactly the same environment as before?

It's possible that pip downgraded your tinyarray because we have not yet
updated Kwant's setup.py to point to the newest tinyarray because it is
not released yet (and therefore not on PyPI).

To get the latest tinyarray you should be able to just:

    pip3 install git+https://gitlab.kwant-project.org/kwant/tinyarray.git@master


> should I have installed differently. According to pip3 I have installed kwant 
> (1.3.0a0.dev123+g3961899)

That is the correct version, with the fix I pushed last night.


Hope that helps,

Joe

Attachment: signature.asc
Description: PGP signature

Reply via email to