Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7868

Re: [Python-modules-team] python-docker issue?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Richard Duivenvoorde <richard@duif.net>
Newsgroups linux.debian.maint.python
Subject Re: [Python-modules-team] python-docker issue?
Date Sun, 22 Nov 2015 10:30:01 +0100
Message-ID <qxz85-1Ly-7@gated-at.bofh.it> (permalink)
References <qxoZ4-3ci-17@gated-at.bofh.it> <qxoZ4-3ci-15@gated-at.bofh.it>
X-Original-To Brian May <brian@linuxpenguins.xyz>, debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Nov 22 09:21:39 2015
Old-Return-Path <richard@duif.net>
X-Amavis-Spam-Status No, score=-7.62 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, MDO_AUTORESP3=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .duif. - helo: .lb3-smtp-cloud3.xs4all. - helo-domain: .xs4all.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13182
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/56518911.1000903@duif.net
Approved robomod@news.nic.it
Lines 108
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 22 Nov 2015 10:21:21 +0100
X-Original-Message-ID <56518911.1000903@duif.net>
X-Original-References <5650E76A.4070800@duif.net> <87k2pbyof4.fsf@prune.linuxpenguins.xyz>
Xref csiph.com linux.debian.maint.python:7868

Show key headers only | View raw


Ah, thanks for your help Brian.

I fixed my problem thanks to your hints:
- removed docker, docker-dompose, python-docker, python-dockerpty
- updatedb;locate docker
- and found there was still a docker egg/package in
/usr/local/lib/python2.7/site-packages
- apparently I installed docker python stuff using pip some time ago...
- after removing that stuff and reinstalling all is working again.

Sorry for the noise. Me bad for using non-packaged modules :>(

Regards,

Richard Duivenvoorde

On 21-11-15 23:31, Brian May wrote:
> Hello,
> 
> Just for reference, you should perhaps send emails like this to
> debian-python@lists.debian.org - the
> python-modules-team@lists.alioth.debian.org is intended for
> automatically generated emails. I have CCed
> debian-python@lists.debian.org.
> 
> 
> Richard Duivenvoorde <richard@duif.net> writes:
> 
>> Hi,
>>
>> not sure how to add an issue for packaging.
>>
>> but I'm directed via
>>
>> https://github.com/docker/compose/issues/2433#issuecomment-158448859
>>
>> to the Debian packaging team
>>
>> Please guide me to another issue tracker system if needed.
> 
> Please see the following page on reporting bugs in Debian:
> https://www.debian.org/Bugs/Reporting
> 
> 
>> In short:
>>
>> docker-compose
>>
>> Traceback (most recent call last):
>>   File "/usr/bin/docker-compose", line 9, in
>>     load_entry_point('docker-compose==1.5.1', 'console_scripts',
>> 'docker-compose')()
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>> line 558, in load_entry_point
>>     return get_distribution(dist).load_entry_point(group, name)
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>> line 2682, in load_entry_point
>>     return ep.load()
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>> line 2355, in load
>>     return self.resolve()
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py",
>> line 2361, in resolve
>>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>>   File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 16, in
>>     from ..config import ConfigurationError
>>   File "/usr/lib/python2.7/dist-packages/compose/config/__init__.py",
>> line 2, in
>>     from .config import ConfigurationError
>>   File "/usr/lib/python2.7/dist-packages/compose/config/config.py", line
>> 14, in
>>     from .validation import validate_against_fields_schema
>>   File "/usr/lib/python2.7/dist-packages/compose/config/validation.py",
>> line 7, in
>>     from docker.utils.ports import split_port
>> ImportError: No module named ports
> 
> This works for me...
> 
> (sid-amd64)root@prune:/home/brian/tree/spud/spud# python
> Python 2.7.10+ (default, Oct 10 2015, 09:11:24) 
> [GCC 5.2.1 20151028] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from docker.utils.ports import split_port
> 
> 
> Are you sure you do have 1.5.0-1 of python-docker installed?
> 
> (sid-amd64)root@prune:/home/brian/tree/spud/spud# dpkg -l python-docker
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name                          Version             Architecture        Description
> +++-=============================-===================-===================-===============================================================
> ii  python-docker                 1.5.0-1             all                 Python wrapper to access docker.io's control socket
> 
> 
> The "apt-cache show python-docker" shows what version of python-docker
> is available, it doesn't say what version is installed.
> 
> docker-compose has a dependancy on "python-docker (>= 1.3.0)" so maybe
> you have an old version of python-docker?
> 
> 
>> Regards,
>>
>> Richard Duivenvoorde

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [Python-modules-team] python-docker issue? Brian May <brian@linuxpenguins.xyz> - 2015-11-21 23:40 +0100
  Re: [Python-modules-team] python-docker issue? Richard Duivenvoorde <richard@duif.net> - 2015-11-22 10:30 +0100

csiph-web