Aiven-Open / Aiven-Open/pghoard

Can't install in Ubuntu 20.04

未關閉
#519 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
1.4k
分支
111
平均合併
1 天 5 小時
30 天內合併 PR
2

描述

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!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。