Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697604 - dev-vcs/bzr-2.7.0: TypeError: first argument must be string or compiled pattern (patch upstream)
Summary: dev-vcs/bzr-2.7.0: TypeError: first argument must be string or compiled patte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Deadline: 2020-04-27
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://launchpad.net/bugs/1644003
Whiteboard:
Keywords: PATCH, PMASKED
Depends on:
Blocks:
 
Reported: 2019-10-13 07:57 UTC by Franz Trischberger
Modified: 2020-04-27 08:26 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2019-10-13 07:57:09 UTC
Traceback (most recent call last):                                                                                      
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code                   
    return the_callable(*args, **kwargs)                                                                                
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 1121, in run_bzr                                   
    ret = run(*run_argv)                                                                                                
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases                           
    return self.run(**all_cmd_args)                                                                                     
  File "/usr/lib64/python2.7/site-packages/bzrlib/commands.py", line 697, in run                                        
    return self._operation.run_simple(*args, **kwargs)                                                                  
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple                                  
    self.cleanups, self.func, *args, **kwargs)                                                                          
  File "/usr/lib64/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups                           
    result = func(*args, **kwargs)                                                                                      
  File "/usr/lib64/python2.7/site-packages/bzrlib/builtins.py", line 1521, in run                                       
    to_repo.fetch(br_from.repository, revision_id=revision_id)                                                          
  File "/usr/lib64/python2.7/site-packages/bzrlib/vf_repository.py", line 1268, in fetch                                
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)                                                                     
  File "/usr/lib64/python2.7/site-packages/bzrlib/decorators.py", line 218, in write_locked                             
    result = unbound(self, *args, **kwargs)                                                                             
  File "/usr/lib64/python2.7/site-packages/bzrlib/vf_repository.py", line 2585, in fetch                                
    find_ghosts=find_ghosts)                                                                                            
  File "/usr/lib64/python2.7/site-packages/bzrlib/fetch.py", line 77, in __init__                                       
    self.__fetch()                                                                                                      
  File "/usr/lib64/python2.7/site-packages/bzrlib/fetch.py", line 98, in __fetch                                        
    pb.update(gettext("Finding revisions"), 0, 2)                                                                       
  File "/usr/lib64/python2.7/site-packages/bzrlib/i18n.py", line 40, in gettext                                                                                                                                                    
    install()                                                                                                    
  File "/usr/lib64/python2.7/site-packages/bzrlib/i18n.py", line 92, in install                                                                                                                                                    
    _translations = install_translations(lang)                                                                   
  File "/usr/lib64/python2.7/site-packages/bzrlib/i18n.py", line 114, in install_translations                                                                                                                                      
    fallback=True)                                      
  File "/usr/lib64/python2.7/gettext.py", line 554, in translation                                                                                                                                                                 
    t = _translations.setdefault(key, class_(fp))                                                                                                                                                                                  
  File "/usr/lib64/python2.7/gettext.py", line 255, in __init__                                                                                                                                                                    
    self._parse(fp)                                                                                                                                                                                                                
  File "/usr/lib64/python2.7/gettext.py", line 391, in _parse                                                                                                                                                                      
    self.plural = c2py(plural)                                                                                   
  File "/usr/lib64/python2.7/gettext.py", line 177, in c2py                                                      
    result, nexttok = _parse(_tokenize(plural))                                                                  
  File "/usr/lib64/python2.7/gettext.py", line 114, in _parse                                                                                                                                                                      
    nexttok = next(tokens)                              
  File "/usr/lib64/python2.7/gettext.py", line 85, in _tokenize                                                                                                                                                                    
    for mo in re.finditer(_token_pattern, plural):                                                               
  File "/usr/lib64/python2.7/re.py", line 190, in finditer                                                       
    return _compile(pattern, flags).finditer(string)                                                             
  File "/usr/lib64/python2.7/re.py", line 247, in _compile                                                       
    raise TypeError, "first argument must be string or compiled pattern"                                                                                                                                                           
TypeError: first argument must be string or compiled pattern

There is a report+fix upstream:
https://bugs.launchpad.net/bzr/+bug/1644003

In the current state bzr is unusable for me.
Comment 1 Jonas Stein gentoo-dev 2019-10-13 09:48:39 UTC
does dev-vcs/bzr-2.7.1_pre work for you?
It looks like all information is in the upstream bug, but please add also your emerge info here. Just in case so that we have everything at hand.
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Comment 2 Franz Trischberger 2019-10-13 14:46:04 UTC
bzr-2.7.1_pre works fine.

❯ emerge --info dev-vcs/bzr
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.0/desktop, gcc-8.3.0, glibc-2.29-r2, 4.19.66-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.66-gentoo-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.6
KiB Mem:     3877976 total,    610552 free
KiB Swap:    5242876 total,   4820288 free
Timestamp of repository gentoo: Sat, 05 Oct 2019 08:06:19 +0000
Head commit of repository gentoo: 38a215ca41b285fc50a051931dcaaec5afc4a668

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/repositories/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=sandybridge -mno-aes -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="clang++"
CXXFLAGS="-march=sandybridge -mno-aes -O2 -pipe -ggdb"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build y --quiet-fail y --dynamic-deps y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apm berkdb branding bzip2 cairo cdda cdr cli crypt cups cxx dbus directfb dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gpm iconv icu infinality introspection ipv6 jpeg jpeg2k kipi lcdfilter lcms libtirpc linguas_de linguas_de_DE mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openrc pam pango pcre pdf png policykit ppds pulse pulseaudio readline sdl seccomp spell split-usr sse sse2 sse3 sse4 sse4_1 ssl ssse3 svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx x264 xattr xcb xcomposite xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="krita sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="appmenu backlight battery bluez4 clock conf conf-applications conf-bindings conf-comp conf-dialogs conf-display conf-interaction conf-intl conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-wallpaper2 conf-window-manipulation conf-window-remembers connman contact cpufreq everything fileman fileman-opinfo gadman ibar ibox lokker mixer msgbus music-control notification pager pager16 pager-plain quickaccess shot start syscon systray tasks teamwork temperature tiling winlist wizard xkbswitch wl-desktop-shell wl-drm wl-fb wl-text-input wl-wl wl-x11 xwayland lua_targets_51 lua_targets_53" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="wacom libinput" KERNEL="linux" L10N="de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="epson epson2" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-vcs/bzr-2.7.0::gentoo was built with the following:
USE="sftp -curl -doc -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 3 Franz Trischberger 2019-10-14 05:44:00 UTC
I don't know if it makes sense to further maintain bzr as it's inactive since more than 2 years now. It also depends on python2 which will be unmaintained from January 1. 2020.
It seems breezy is a fork of bazaar that's maintained. https://launchpad.net/brz
It works with >=python-3.4.
Comment 4 Larry the Git Cow gentoo-dev 2020-04-27 08:26:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d2ed8e7669b174bcf9758f6c81bb1daad9d6c1c

commit 4d2ed8e7669b174bcf9758f6c81bb1daad9d6c1c
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2020-04-27 08:24:42 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2020-04-27 08:24:42 +0000

    dev-vcs/bzr: remove last-rited pkg and co.
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=506772
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=697604
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=715044
    
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 dev-vcs/bzr-rewrite/Manifest                       |   1 -
 dev-vcs/bzr-rewrite/bzr-rewrite-0.6.3.ebuild       |  21 --
 dev-vcs/bzr-rewrite/metadata.xml                   |   8 -
 dev-vcs/bzr-xmloutput/Manifest                     |   1 -
 .../bzr-xmloutput/bzr-xmloutput-0.8.8-r3.ebuild    |  30 ---
 ...r-xmloutput-0.8.8_remove-relative-imports.patch | 220 ---------------------
 dev-vcs/bzr-xmloutput/metadata.xml                 |   8 -
 dev-vcs/bzr/Manifest                               |   2 -
 dev-vcs/bzr/bzr-2.7.0.ebuild                       |  93 ---------
 dev-vcs/bzr/bzr-2.7.1_pre.ebuild                   |  88 ---------
 dev-vcs/bzr/metadata.xml                           |  19 --
 dev-vcs/bzrtools/Manifest                          |   1 -
 dev-vcs/bzrtools/bzrtools-2.5.ebuild               |  27 ---
 dev-vcs/bzrtools/metadata.xml                      |   8 -
 14 files changed, 527 deletions(-)