Skip to main content

Hi everyone,

 

I'm trying to recreate code for uploading celonis user list by using Pycelonis 2.0+ version, and I've got few questions:

 

A) Do you know how to properly update packages in Jupyter Notebook/ML workbench environment? I've always used just "!pip install --upgrade pycelonis", command "!pip show pycelonis | grep Version" show me newest version isntalled (2.6.0 as for today), however when using PyCelonis I still see message about old PyCelonis version:

 

image 

Using command mentioned in the logs itself also don't change nothing (also with '!" added in front).

 

For Celonis guys: it would be good to add it to PyCelonis documentation and maybe changing message text for a working one :)

 

B) When I'm trying to upload file in simplest scenario (no config) I see that data push job is created but cannot be executed successfully, unfortunetly googling error itself doesn't help much (seems to be some old JAVA error)

 

Data push logs:

image 

Error itself:image 

Copyable: PyCelonisDataPushExecutionFailedError: Data push job execution failed. Status: ERROR.

Logs:

optional group groups (LIST) {

repeated group list {

optional int32 item;

}

} is not primitive

 

Any ideas for those two problems? For general public, now you can send request using new syntax:

 

celonis = get_celonis(permissions=False)

response = celonis.client.request(url=celonis.client.base_url + '/api/members?includeInternal=true', method='GET')

usersJson = json.loads(response.text)

usersDf = pd.DataFrame(usersJson)

 

Best Regards,

Mateusz Dudek

Hi,

 

A) It seems that method is working but with some delay / rebooting VM - next day the PyCelonis version shown was 2.6.0.

 

B) I've been able to fix it by myself - simple column convertion to string (DfD'groups'] = DfD'groups'].astype(str) solved the issue)

 

hope it'll help someone with the same issue :)

 

Best Regards,

Mateusz Dudek


Reply