Aiven-Open / Aiven-Open/pghoard

Can't install in Ubuntu 20.04

Open
#519 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
111
Avg merge
1d 5h
Merged PRs (30d)
2

Description

Hi all.
Not sure this is a specific configuration problem on my end, but I've been facing a few problems trying to run this on a Ubuntu 20.04 machine.

Cloned the repo, `make deb` gives me a `dch` issue, so I installed `devscripts`.
Tried `make deb` again, and it seems there a bunch of dependencies missing in my end:
```
error: Unmet build dependencies:
debhelper (>= 8)
dh-python
python3-all (>= 3.3)
python3-flake8
python3-pytest
python3-paramiko
python3-snappy
```
I though a couple of them wouldn't be needed if I wasn't using some feature (`flake8`, `pytest` for example are dev dependencies). Installed all of them, run `make deb` again and I get an error while linting the project:
```
make[2]: Entering directory '/home/ubuntu/pghoard'
/usr/bin/make lint unittest
make[3]: Entering directory '/home/ubuntu/pghoard'
python3 -m pylint --rcfile .pylintrc pghoard/ test/
/usr/bin/python3: No module named pylint
make[3]: *** [Makefile:17: lint] Error 1
```

Installed `pylint` with apt, linting runs, but than the build fails:
```
-----------------------------------
Your code has been rated at 9.76/10

make[3]: *** [Makefile:17: lint] Error 18
make[3]: Leaving directory '/home/ubuntu/pghoard'
make[2]: *** [debian/rules:16: override_dh_auto_test] Error 2
make[2]: Leaving directory '/home/ubuntu/pghoard'
make[1]: *** [debian/rules:6: build-indep] Error 2
make[1]: Leaving directory '/home/ubuntu/pghoard'
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
make: *** [Makefile:49: deb] Error 2
```

Tried to disable the test suite (found somewhere: `DEB_BUILD_OPTIONS=nocheck`), also nothing.
So couldn't quite make it work.
I imagine this must be specific for Ubuntu?
Tried to checkout to latest relase `git checkout 469e75f ` same result.
Tried changing the permissions to `chmod 700` (bad), also same result.

I guess I'm probably doing something wrong, but couldn't find any hint in the documentation.
Any ideas?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.