import pypsa error

282 views
Skip to first unread message

김토피아

unread,
Nov 20, 2023, 1:04:25 AM11/20/23
to pypsa
Hello,

 can you please help me about following?
when import pypsa in Jupyter, there is a following error.

ImportError: cannot import name 'Coordinates' from 'xarray' (C:\Users\jskim\AppData\Local\anaconda3\Lib\site-packages\xarray\__init__.py)

Fabian Neumann

unread,
Nov 20, 2023, 1:37:30 PM11/20/23
to pypsa
Hi,

This looks like a versioning problem. Try installing an up-to-date xarray version and/or upgrade PyPSA to the latest version. You may have to try a few combinations.

Best wishes,

Fabian N

RIzky Rahmani

unread,
Nov 20, 2023, 4:09:18 PM11/20/23
to pypsa
Hi,

I have same problem before when I installed using conda install pypsa. I recommend you to install using master branch

Regards

Alex Risch

unread,
Dec 6, 2023, 4:34:23 AM12/6/23
to pypsa
i had the same Problem after updating xarray and pypsa it was "solved" but now i get " AttributeError: module 'xarray' has no attribute 'core' "

what can i do?

Fabian Hofmann

unread,
Dec 6, 2023, 5:53:04 AM12/6/23
to py...@googlegroups.com

Hey Alex,

can you confirm that you are using the latest pypsa version?

Best

Fabian Hofmann

--
You received this message because you are subscribed to the Google Groups "pypsa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypsa+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/f923015c-3344-4051-9d5d-f2db0e35056fn%40googlegroups.com.
-- 
Fabian Hofmann 

Postdoctoral Researcher
Institute of Energy Technology
Technische Universität Berlin
http://fabianhofmann.org/

Group website: https://www.tu.berlin/ensys

Joe Shull

unread,
Dec 8, 2023, 11:12:09 PM12/8/23
to pypsa
I had the same issue when installing pyPSA 0.26. 

This was fixed by uninstalling xarray and installing the latest xarray version (2023.11.0)
Reply all
Reply to author
Forward
0 new messages