polca / premise

Coupling Integrated Assessment Models output with Life Cycle Assessment.
BSD 3-Clause "New" or "Revised" License
101 stars 45 forks source link

Unable to import premise #72

Closed ar-ali closed 2 years ago

ar-ali commented 2 years ago

Hi,

I am unable to import premise. Please find the screenshot attached. Can someone please help?

Abdur Capture

tngTUDOR commented 2 years ago

Hi @ar-ali , can you please provide a bit more information of your environment. For example, python version, premise version. Since it appears that you might be using Anaconda, maybe you could provide the output of: (in your LCALAB environment)

conda info
conda list
tngTUDOR commented 2 years ago

I can see that there was an issue with the same error message. It used to arrive with python 3.8 and premise < 1.0

ar-ali commented 2 years ago

I have python 3.9.12 and premise 1.0.8 1 2

tngTUDOR commented 2 years ago

I'm unable to reproduce the error you get (because I don't have a windows machine available at the moment to test). On a Linux install, it works fine for me with both, premise 1.0.8 and 1.1.8 .

Have you tried to update premise ? for example with:

pip install -U premise

also, you might want to update pip and conda.

pip install -U pip
conda update -n base -c defaults conda
ar-ali commented 2 years ago

Thank you, I created a new environment, and it seems to be working.