GreenDelta / olca-ipc.py

Mozilla Public License 2.0
29 stars 17 forks source link

Questions about installing Olca to connect to Jupyter Hub. #17

Closed BastianKoenig closed 2 months ago

BastianKoenig commented 2 years ago

Hello, I have tried to connect from OpenLCA to Python. What exactly needs to be installed? I have proceeded exactly as in 'GreenDelta/olca-ipc.py´ described. But then I always get the following error message:

grafik

Miguel-g-c commented 2 years ago

Hi @BastianKoenig,

Try to install the latest development version: pip install -U git+https://github.com/GreenDelta/olca-ipc.py.git/@master

We have recently introduced some changes. Also, be sure that the Python version you are using is 3.7 or greater.

BastianKoenig commented 2 years ago

Thanik you! I did not install pyhton with the function from the path and this led to errors.

sunderingtitan82 commented 2 years ago

Hi Miguel, when using PyCharm I do install the olca package but an I guess similar problem shows up:

`C:\Users\emper\PycharmProjects\pythonProject\venv\Scripts\python.exe C:/Users/emper/PycharmProjects/pythonProject/main.py Traceback (most recent call last): File "C:/Users/emper/PycharmProjects/pythonProject/main.py", line 1, in import olca File "C:\Users\emper\PycharmProjects\pythonProject\venv\lib\site-packages\olca__init.py", line 4, in from .ipc import * File "C:\Users\emper\PycharmProjects\pythonProject\venv\lib\site-packages\olca\ipc.py", line 5, in import olca.schema as schema File "C:\Users\emper\PycharmProjects\pythonProject\venv\lib\site-packages\olca\schema.py", line 7 from future__ import annotations ^ SyntaxError: future feature annotations is not defined

Process finished with exit code 1`

I should install olca as a package in my environment directly as previously mentioned right? The PyCharm package installer is not installing the lastest development version...

Miguel-g-c commented 2 years ago

Hi @sunderingtitan82, you can install packages from a version control system in PyCharm. Also, check that you are using Python +3.7.

PortiaMasibi commented 2 years ago

Hi @Miguel-g-c I am getting the same error from Jupyter Notebook but I followed all the steps above

Miguel-g-c commented 2 years ago

SyntaxError: future feature annotations is not defined

Hi @PortiaMasibi what error are you getting? Please, post the error log here. Also make sure you are using the latest development version and Python 3.7 or greater.