Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error working with ei object #43

Open
FWJK1 opened this issue Jan 7, 2025 · 0 comments
Open

Error working with ei object #43

FWJK1 opened this issue Jan 7, 2025 · 0 comments

Comments

@FWJK1
Copy link

FWJK1 commented Jan 7, 2025

Windows 11
interface version: 3.0 (from pip). Errors with 2.7 as well, though.

If I instantiate an ei object:

from ecoinvent_interface import EcoinventRelease, Settings, ReleaseType
my_settings = Settings(username='user_place', password='password_place')
ei = EcoinventRelease(my_settings)

I seem to connect properly: login raises no error, and if I use a fake password, I get an HTTP unauthorized error. The username/pass are licensed properly and all that.

However, if I then try do anything with the ei object:
ei.list_versions()
Then I get an error: string indices must be integers, not 'str' stemming from for obj in self._get_files_for_version(version)["releases"]

That is, anything that tries to get files fails here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant