Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10101 > unrolled thread
| Started by | Lumin <cdluminate@gmail.com> |
|---|---|
| First post | 2018-02-06 16:40 +0100 |
| Last post | 2018-02-07 16:00 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.maint.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Bug#777089: Preconditions for python-moto finished - help needed to build package itself Lumin <cdluminate@gmail.com> - 2018-02-06 16:40 +0100
Bug#777089: Preconditions for python-moto finished - help needed to build package itself Andreas Tille <andreas@fam-tille.de> - 2018-02-06 17:10 +0100
Bug#777089: Preconditions for python-moto finished - help needed to build package itself Lumin <cdluminate@gmail.com> - 2018-02-06 17:20 +0100
Bug#777089: Preconditions for python-moto finished - help needed to build package itself Andreas Tille <andreas@an3as.eu> - 2018-02-07 16:00 +0100
| From | Lumin <cdluminate@gmail.com> |
|---|---|
| Date | 2018-02-06 16:40 +0100 |
| Subject | Bug#777089: Preconditions for python-moto finished - help needed to build package itself |
| Message-ID | <vgdvI-it-7@gated-at.bofh.it> |
Hi Andreas,
I checked the packaging, and my debuild ended up with an
error different from
> AttributeError: 'module' object has no attribute 'backport_assert_raises'
According to a quick investigation on this problem, I'm sure there
are still some missing B-Ds in control file.
With patch [1] dpkg-buildpackage can go a bit further while building
this package.
See requirements-dev.txt. And new problems arose:
1. $ make test # python2
ImportError: No module named vendored
2. $ make test_server # python2
ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max
retries exceeded with url:
3. $ nosetests3 -sv --with-coverage --cover-html ./tests/
ModuleNotFoundError: No module named 'botocore.vendored'
AttributeError: module 'botocore' has no attribute 'vendored'
It seems that the "vendored" is from botocore package. I'm not
sure which package or script to blame. Further investigation needed.
4. $ debuild
A bunch of errors. e.g.
error: [Errno 111] Connection refused
I don't know whether it helps to add all the dependencies specified by
requirements-dev.txt to control.
[1] as follows.
diff --git a/debian/control b/debian/control
index d950b12..5418dd3 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Section: python
Priority: optional
Build-Depends: debhelper (>= 11),
dh-python,
+ flake8,
python-all,
python-setuptools,
python-aws-xray-sdk,
@@ -15,11 +16,14 @@ Build-Depends: debhelper (>= 11),
python-botocore (>= 1.7.12),
python-cookies,
python-cryptography (>= 2.0.0),
+ python-freezegun,
python-jinja2,
python-jsondiff,
+ python-nose,
python-requests,
python-xmltodict,
python-six,
+ python-sure,
python-werkzeug,
python-dateutil,
python-mock,
@@ -36,11 +40,14 @@ Build-Depends: debhelper (>= 11),
python3-botocore (>= 1.7.12),
python3-cookies,
python3-cryptography (>= 2.0.0),
+ python3-freezegun,
python3-jinja2,
python3-jsondiff,
+ python3-nose,
python3-requests,
python3-xmltodict,
python3-six,
+ python3-sure,
python3-werkzeug,
python3-dateutil,
python3-mock,
--
Best,
[toc] | [next] | [standalone]
| From | Andreas Tille <andreas@fam-tille.de> |
|---|---|
| Date | 2018-02-06 17:10 +0100 |
| Message-ID | <vgdYK-IP-7@gated-at.bofh.it> |
| In reply to | #10101 |
Hi Lumin,
On Tue, Feb 06, 2018 at 03:27:22PM +0000, Lumin wrote:
> I checked the packaging,
Thanks a lot!
> and my debuild ended up with an
> error different from
>
> > AttributeError: 'module' object has no attribute 'backport_assert_raises'
>
> According to a quick investigation on this problem, I'm sure there
> are still some missing B-Ds in control file.
>
> With patch [1] dpkg-buildpackage can go a bit further while building
> this package.
Would you mind pushing your patch directly? I do not see any advantage
if I would proxy your patch. ;-)
> See requirements-dev.txt. And new problems arose:
>
> 1. $ make test # python2
>
> ImportError: No module named vendored
>
> 2. $ make test_server # python2
>
> ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max
> retries exceeded with url:
Seems there is some service needed at port 5000. But which one???
> 3. $ nosetests3 -sv --with-coverage --cover-html ./tests/
>
> ModuleNotFoundError: No module named 'botocore.vendored'
> AttributeError: module 'botocore' has no attribute 'vendored'
>
> It seems that the "vendored" is from botocore package. I'm not
> sure which package or script to blame. Further investigation needed.
May be if somebody has a solution for this one also 1. (No module named
vendored) might be related.
> 4. $ debuild
>
> A bunch of errors. e.g.
> error: [Errno 111] Connection refused
>
>
> I don't know whether it helps to add all the dependencies specified by
> requirements-dev.txt to control.
I admit up to know I have not checked this file but probably having
these will help.
Kind regards
Andreas.
> [1] as follows.
>
> diff --git a/debian/control b/debian/control
> index d950b12..5418dd3 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -5,6 +5,7 @@ Section: python
> Priority: optional
> Build-Depends: debhelper (>= 11),
> dh-python,
> + flake8,
> python-all,
> python-setuptools,
> python-aws-xray-sdk,
> @@ -15,11 +16,14 @@ Build-Depends: debhelper (>= 11),
> python-botocore (>= 1.7.12),
> python-cookies,
> python-cryptography (>= 2.0.0),
> + python-freezegun,
> python-jinja2,
> python-jsondiff,
> + python-nose,
> python-requests,
> python-xmltodict,
> python-six,
> + python-sure,
> python-werkzeug,
> python-dateutil,
> python-mock,
> @@ -36,11 +40,14 @@ Build-Depends: debhelper (>= 11),
> python3-botocore (>= 1.7.12),
> python3-cookies,
> python3-cryptography (>= 2.0.0),
> + python3-freezegun,
> python3-jinja2,
> python3-jsondiff,
> + python3-nose,
> python3-requests,
> python3-xmltodict,
> python3-six,
> + python3-sure,
> python3-werkzeug,
> python3-dateutil,
> python3-mock,
>
>
> --
> Best,
>
--
http://fam-tille.de
[toc] | [prev] | [next] | [standalone]
| From | Lumin <cdluminate@gmail.com> |
|---|---|
| Date | 2018-02-06 17:20 +0100 |
| Message-ID | <vge8q-Mr-11@gated-at.bofh.it> |
| In reply to | #10102 |
Hi, On 6 February 2018 at 15:56, Andreas Tille <andreas@fam-tille.de> wrote: > Would you mind pushing your patch directly? I do not see any advantage > if I would proxy your patch. ;-) Done. > I admit up to know I have not checked this file but probably having > these will help. Then I believe it worth a try and will help. Flask is required by that *-dev.txt file, and the default listening port of flask is exactly 5000. I have to sleep now. :-) Have a good day. -- Best,
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2018-02-07 16:00 +0100 |
| Message-ID | <vgzmy-6wm-7@gated-at.bofh.it> |
| In reply to | #10101 |
Hi Lumin,
On Tue, Feb 06, 2018 at 03:27:22PM +0000, Lumin wrote:
> With patch [1] dpkg-buildpackage can go a bit further while building
> this package.
> See requirements-dev.txt. And new problems arose:
I've added python-flask to Build-Depends and can reproduce this issue:
> 1. $ make test # python2
>
> ImportError: No module named vendored
I've found a hint to this issue here
https://github.com/boto/boto/issues/3222
but it claims that the issue was dealt with in version python-boto-2.38.0.
Since we have 2.44.0 I assume we are facing a different problem.
> 2. $ make test_server # python2
>
> ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max
> retries exceeded with url:
Hope thas is fixed by python-flask Build-Depends.
> 3. $ nosetests3 -sv --with-coverage --cover-html ./tests/
>
> ModuleNotFoundError: No module named 'botocore.vendored'
> AttributeError: module 'botocore' has no attribute 'vendored'
>
> It seems that the "vendored" is from botocore package. I'm not
> sure which package or script to blame. Further investigation needed.
Yes. Unfortunately I can not spent any time on this for the next couple
of days.
> I don't know whether it helps to add all the dependencies specified by
> requirements-dev.txt to control.
I guess its promising to check this list. I'd be happy if somebody
would beat me in doing so. ;-)
Kind regards
Andreas.
--
http://fam-tille.de
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web