Self-hosted 8.13 connector - error on 'make run'

I am trying to run a self-hosted GitHub connector for elastic 8.13. I've had success running 8.11 on the same VM, with the same setup.

I'm running it on Ubuntu 20.04, cloned the repository, checkout out branch 8.13, updated config with the API keys and connector IDs and other info, and when I run

make install
make run

I get the following error:

vmadmin@anna-ubuntu2004:~/connectors$ make run
cp -n config.yml.example config.yml
python3.10 -m venv .
bin/pip install --upgrade pip
Requirement already satisfied: pip in ./lib/python3.10/site-packages (24.0)
bin/pip install --upgrade setuptools
Requirement already satisfied: setuptools in ./lib/python3.10/site-packages (70.0.0)
bin/elastic-ingest
Traceback (most recent call last):
  File "/home/vmadmin/connectors/bin/elastic-ingest", line 33, in <module>
    sys.exit(load_entry_point('elasticsearch-connectors', 'console_scripts', 'elastic-ingest')())
  File "/home/vmadmin/connectors/bin/elastic-ingest", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.10/importlib/metadata/__init__.py", line 164, in load
    return functools.reduce(getattr, attrs, module)
AttributeError: module 'connectors.cli' has no attribute 'main'
make: *** [Makefile:72: run] Error 1

Is there an issue with python or pip installation? I have no idea how to troubleshoot this :frowning:

Hi Anna Safonov,

Running make clean when upgrading to new version before doing make run can help with such errors.

If that does not help, can you share the SHA of the commit that you're running?

Hi @Artem_Shelkovnikov,

It did help, thank you for such a prompt response!

Anna

1 Like

Happy to help!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.