Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620112 - dev-python/phonenumbers-7.2.8 fails to compile with python-3.6
Summary: dev-python/phonenumbers-7.2.8 fails to compile with python-3.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johann Schmitz (ercpe) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-29 12:55 UTC by Pacho Ramos
Modified: 2017-07-15 09:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (phonenumbers-7.2.8:20170529-125341.log.gz,24.07 KB, application/gzip)
2017-05-29 12:55 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2017-05-29 12:55:29 UTC
Created attachment 474636 [details]
build.log.gz

* python3_6: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.6 setup.py build
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    from phonenumbers import __version__
  File "python/phonenumbers/__init__.py", line 132, in <module>
    from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
  File "python/phonenumbers/phonenumbermatcher.py", line 160, in <module>
    re.compile(u("(?u)(?:\\p{Z}-|-\\s)\\s*(.+)")),
  File "/usr/lib64/python3.6/re.py", line 233, in compile
    return _compile(pattern, flags)
  File "/usr/lib64/python3.6/re.py", line 301, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/usr/lib64/python3.6/sre_compile.py", line 562, in compile
    p = sre_parse.parse(p, flags)
  File "/usr/lib64/python3.6/sre_parse.py", line 856, in parse
    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, False)
  File "/usr/lib64/python3.6/sre_parse.py", line 415, in _parse_sub
    itemsappend(_parse(source, state, verbose))
  File "/usr/lib64/python3.6/sre_parse.py", line 763, in _parse
    p = _parse_sub(source, state, sub_verbose)
  File "/usr/lib64/python3.6/sre_parse.py", line 415, in _parse_sub
    itemsappend(_parse(source, state, verbose))
  File "/usr/lib64/python3.6/sre_parse.py", line 501, in _parse
    code = _escape(source, this, state)
  File "/usr/lib64/python3.6/sre_parse.py", line 401, in _escape
    raise source.error("bad escape %s" % escape, len(escape))
sre_constants.error: bad escape \p at position 7
Comment 1 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2017-07-15 06:02:38 UTC
> dev-python/phonenumbers: bump to latest 7.x version to support python 3.5 and 3.6 properly (#620112)

Bumped to latest 7.x and added 8.3.1
Comment 2 Pacho Ramos gentoo-dev 2017-07-15 09:15:33 UTC
Thanks!