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

JsonLD error when using IPC "put" method #421

Open
davide-fiorito opened this issue Oct 25, 2024 · 2 comments
Open

JsonLD error when using IPC "put" method #421

davide-fiorito opened this issue Oct 25, 2024 · 2 comments

Comments

@davide-fiorito
Copy link

davide-fiorito commented Oct 25, 2024

From openLCA log:
19:20:52 ERROR org.openlca.jsonld.Json failed to parse date / time: 2024-10-25T17:10:42.085894+00:00Z

The code I was using was from the tutorial at https://greendelta.github.io/openLCA-ApiDoc/data/put.html

ipc.client(8080).put(o.Source(name="Inter-process communication with openLCA"))

OS: Arch Linux
Python version: 3.12.7

@francoislerall
Copy link
Member

Hi,

  1. Did you start an IPC server?
  2. Just to be sure, could you run this?
from olca_ipc import Client
import olca_schema as o

client = Client()
ref = client.put(o.Source(name="Inter-process communication with openLCA"))
print(ref)

@msrocka
Copy link
Member

msrocka commented Dec 3, 2024

It is the same issue as this one

GreenDelta/olca-schema#10 (comment)

If you install the latest schema version, e.g. via pip install -U olca-schema it should work.

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

No branches or pull requests

3 participants