dipc-cc / hubbard

Python tools for mean-field Hubbard models
https://dipc-cc.github.io/hubbard/
GNU Lesser General Public License v3.0
21 stars 8 forks source link

'Spin' object has no attribute 'spinor' #104

Closed fran96r closed 3 years ago

fran96r commented 3 years ago

Hi!

While running any example I'm getting

AttributeError: 'Spin' object has no attribute 'spinor'

I guess it has something to do with the installation. Any idea how to solve it? Thanks.

sofiasanz commented 3 years ago

Hi, can you tell me which version of sisl do you have?

fran96r commented 3 years ago

The latest one, sisl v0.11.0

sofiasanz commented 3 years ago

Yes but in between versions the sisl repository has several minor changes that are stored in different commits. Maybe you have a version of this repository that you need to upgrade. Can you run these lines and show me the result?

>>> import sisl
>>> print(sisl.__git_revision__)
fran96r commented 3 years ago

Here is the result

ad878e687045793c53d0c628c5345832beb60695

zerothi commented 3 years ago

I think the problem is that the spinor stuff was added after the 0.11.0 release. Just try and upgrade the sisl installation (using the development version: https://zerothi.github.io/sisl/installation.html#development-version)

fran96r commented 3 years ago

Okey, now is working properly.

Thanks!

PG13s commented 2 years ago

Hi, I'm also facing this 'Spin' object has no attribute 'spinor' problem, the link of development version sisl is 404 now, could you give me the new link, thank you a lot! @zerothi

zerothi commented 2 years ago

Hi, I'm also facing this 'Spin' object has no attribute 'spinor' problem, the link of development version sisl is 404 now, could you give me the new link, thank you a lot! @zerothi

Thanks, link updated.

PG13s commented 2 years ago

Thank you, it works!