IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
235 stars 120 forks source link

Invalid properties of AR6 database #693

Closed Rlamboll closed 2 years ago

Rlamboll commented 2 years ago

Running pyam.iiasa.Connection("ar6-public").properties() produces "ValueError: Protocol not known: []", rather than returning a sensible set of info.

danielhuppmann commented 2 years ago

If you are using the latest from GitHub, maybe you didn’t install

httpx[http2]

which was added as a requirement?

https://github.com/IAMconsortium/pyam/blob/e7f0c3a2e8ba618e1b621333064657e38db898c4/setup.cfg#L33

Rlamboll commented 2 years ago

You're right that I hadn't installed them (and also needed to install fsspc to get anything sensible at all) but doing so doesn't seem to resolve this problem. It works fine for iamc15 with or without httpx[http2].

danielhuppmann commented 2 years ago

I cannot replicate this error, having tried version 1.5 and the latest from GitHub as well as registered vs. anonymous login. Please provide more details on the issue.

Rlamboll commented 2 years ago

I've done a clean install of everything on a fresh env and this problem now doesn't occur for ar6, so presumably it's some weird version incompatibility. However the database netzero2040 doesn't seem to return a valid properties in either environment.

danielhuppmann commented 2 years ago

The netzero2040 database does not (yet) have any scenarios, so this is a remainder of an issue when the returned data is empty. Should have been fixed with #691, but wasn't...

Rlamboll commented 2 years ago

Thanks, I think this doesn't need a new issue if that's an already-established bug