Python API: installing celonis egg fails

#1

After getting a new work laptop I need to re-install the Celonis Python library, packages, etc. Following the instructions from https://help.celonis.de/display/CPM4/Requirements%2C+Installation%2C+Architecture I encounter some unclarities and issues, in this case with the Celonis egg.

Running
easy_install celonis-0.0.1-py3.6.egg
provides
Processing celonis-0.0.1-py3.6.egg
Removing c:\dev\anaconda\lib\site-packages\celonis-0.0.1-py3.6.egg
Copying celonis-0.0.1-py3.6.egg to c:\dev\anaconda\lib\site-packages
celonis 0.0.1 is already the active version in easy-install.pth

Installed c:\dev\anaconda\lib\site-packages\celonis-0.0.1-py3.6.egg
Processing dependencies for celonis==0.0.1
Searching for celonis==0.0.1
Reading https://pypi.org/simple/celonis/
Couldn't find index page for 'celonis' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
No local packages or working download links found for celonis==0.0.1
error: Could not find suitable distribution for Requirement.parse('celonis==0.0.1')

And the Celonis package is not installed.

Unpacking the egg file relative to the code, such that it can be found anyway, provides
from celonis_tools.api import CelonisSession
Traceback (most recent call last):

  File "<ipython-input-9-c454bc6ed3fb>", line 1, in <module>
    from celonis_tools.api import CelonisSession

  File "C:\dev\Celonis\Python\celonis_tools\api.py", line 18, in <module>
    from .model import *

  File "C:\dev\Celonis\Python\celonis_tools\model\__init__.py", line 1, in <module>
    from .folder import Folder, Project, Analysis, DataModel, Transport, Document, PublishedDocument, DraftDocument, Component, TableChart, SingleKPI, Sheet, AnalysisExport, DBConnection, FileConnection, Table, Column, Permission, UserPermission, GroupPermission, QueryExecution, ForeignKey

  File "C:\dev\Celonis\Python\celonis_tools\model\folder.py", line 17, in <module>
    from .resource import ResourceObject, SubResource, _ContainerResource, CompositeResource, ResourceCollection, ResourceIterable

  File "C:\dev\Celonis\Python\celonis_tools\model\resource.py", line 11, in <module>
    from future.moves.collections import Iterable, UserDict, UserList

ImportError: cannot import name 'Iterable' from 'future.moves.collections' (C:\dev\Anaconda\lib\site-packages\future\moves\collections.py)

Any help is appreciated :slight_smile:

Edit 19-03-22 Joos: moved to machine learning section

0 Likes

#3

Dear Joos,

thank you for reaching out and bringing this up.

The Guide in https://help.celonis.de/display/CPM4/Requirements%2C+Installation%2C+Architecture is outdated, we are currently working on a new manual.

You would need to Download the Celonis Python Package, which can be found in the lower part of https://my.celonis.de/downloads to get the Python Library running.

Please let me know, if you need further assistance.

Best,
David

2 Likes

Python API: issue with installing pyorc_loader wheel
#4

Hi David,

Thanks for the reply! It works at a first glance, thanks!

Will check the pyorc install mentioned in another topic tomorrow.

1 Like