Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11090
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Adam Cécile <acecile@le-vert.net> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) |
| Date | Fri, 09 Nov 2018 23:30:01 +0100 |
| Message-ID | <wSnrP-6o1-1@gated-at.bofh.it> (permalink) |
| References | <wRNRn-17G-1@gated-at.bofh.it> <wRSHn-40q-9@gated-at.bofh.it> <wSj4T-3xC-25@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Nov 9 22:21:35 2018 |
| Old-Return-Path | <acecile@le-vert.net> |
| X-Amavis-Spam-Status | No, score=-1.8 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, EMPTY_BODY=3, HTML_MESSAGE=2, LDO_WHITELIST=-5] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -6.1 |
| Dkim-Signature | v=1; a=rsa-sha1; c=simple; d=vpn.levert; h=subject:from :to:references:cc:message-id:date:mime-version:in-reply-to :content-type; s=dedibox-le-vert-net; bh=HxTxGIIrYTk5sCsSRT1AITu BbYs=; b=L3OnMctmLcFwmImQatlSHT2tXOMWj4P7GSwaq4rdP1kYFVBkGvDzC6L NyL1UKiRGFObWcDxB7ilD9S+oaYNy0kdqPTbMc+fv5VvcQvzeWECMdIE+DswPZEh SV1W8bmU005J8nDFBg5L8Rx0zK2K8vQwzZ1oljxiIaBw0fLAEbIw= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="------------FC539A33E6C4346B644608FC" |
| Content-Language | en-US |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/16526 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/c2e12858-25c8-5908-b2fa-77bd0cc4dbcf@le-vert.net |
| Approved | robomod@news.nic.it |
| Lines | 171 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Nicolas Dandrimont <olasd@debian.org> |
| X-Original-Date | Fri, 9 Nov 2018 23:21:15 +0100 |
| X-Original-Message-ID | <c2e12858-25c8-5908-b2fa-77bd0cc4dbcf@le-vert.net> |
| X-Original-References | <774a47d71fa3fcf88b0ab6d17cfd4cd9@le-vert.net> <20181108132607.snjar3ygz5pyfuln@werner.olasd.eu> <7B797F7B-405F-466B-8C46-C07883FB9C5A@le-vert.net> |
| Xref | csiph.com linux.debian.maint.python:11090 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Just tried but it's not working:
I wrote:
dir|3.7-|/usr/lib/python3/dist-packages/tensorflow/
But installing the package gives:
Traceback (most recent call last):
File "/usr/bin/py3compile", line 290, in <module>
main()
File "/usr/bin/py3compile", line 266, in main
e_patterns = get_exclude_patterns()
File "/usr/bin/py3compile", line 93, in get_exclude_patterns
for type_, vers, dname, pattern in get_exclude_patterns_from_dir():
File "/usr/share/python3/debpython/__init__.py", line 22, in __call__
self.cache[key] = self.func(*args, **kwargs)
File "/usr/bin/py3compile", line 68, in get_exclude_patterns_from_dir
type_, vrange, dname, pattern = line.split('|', 3)
ValueError: not enough values to unpack (expected 4, got 3)
I'm wondering if the "dir" type is actually supported: "re" type
contains the appropriate number of fields.
Regards, Adam.
On 11/9/18 6:43 PM, Adam Cecile wrote:
> Thanks a lot Nicolas !
>
> It looks perfect, I made the modification but haven't been able to
> test it yet.
>
> Le 8 novembre 2018 14:26:07 GMT+01:00, Nicolas Dandrimont
> <olasd@debian.org> a écrit :
>
> Hi!
>
> * Adam Cécile <acecile@le-vert.net> [2018-11-08 09:15:59 +0100]:
>
> Hello list, I have a package working perfectly fine on Pyrhon
> 3.6 but using async/await methods so it cannot work on python
> 3.7 at the moment. During package compilation, I popd 3.7 from
> supported version returned by py3version and it allows me to
> build the package just fine: Problem: I cannot install it.
> Despite 3.7 was not "enabled" during build, when installing
> debian helpers try to compile bytecode for both 3.6 and 3.7
> and fails. Is there any way to workaround that ?
>
>
> You can use the bcep (bytecompile exception pattern) mechanism. The
> documentation can be found in dh_python3(1)[1] and
> /usr/share/doc/dh-python/README.PyDist, and you can find some examples in
> codesearch.
>
> [1]https://manpages.debian.org/unstable/dh-python/dh_python3.1.en.html#bcep_files
>
> HTH,
>
>
> --
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez
> excuser ma brièveté.
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) Adam Cécile <acecile@le-vert.net> - 2018-11-08 09:30 +0100
Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) Nicolas Dandrimont <olasd@debian.org> - 2018-11-08 14:40 +0100
Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) Adam Cecile <acecile@le-vert.net> - 2018-11-09 18:50 +0100
Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) Adam Cécile <acecile@le-vert.net> - 2018-11-09 23:30 +0100
Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) Thomas Goirand <zigo@debian.org> - 2018-11-19 22:40 +0100
csiph-web