[Bug 1976110] Re: `tmux -d -x ... -y ...` does not respect sizing
just curious -- will this land in jammy? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1976110 Title: `tmux -d -x ... -y ...` does not respect sizing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1976110/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1964795] Re: gnome-keyring-daemon crashed with signal 7
here's my reproduction: - boot ubuntu desktop on arm64 - open gnome-terminal - have an ssh key in ~/.ssh/ - `git clone g...@github.com:asottile/astpretty` # or really any ssh clone I've set up a PPA with the patch and verified it fixes the problem: https://launchpad.net/~asottile/+archive/ubuntu/gnome-keyring-jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1964795 Title: gnome-keyring-daemon crashed with signal 7 To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-keyring/+bug/1964795/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1976110] Re: `tmux -d -x ... -y ...` does not respect sizing
I have made a PPA including that patch in case anyone wants to try it out: - source code here: https://github.com/asottile/tmux-jammy - PPA here: https://launchpad.net/~asottile/+archive/ubuntu/tmux-jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1976110 Title: `tmux -d -x ... -y ...` does not respect sizing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1976110/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1976110] [NEW] `tmux -d -x ... -y ...` does not respect sizing
Public bug reported: source package: https://packages.ubuntu.com/en/source/jammy/tmux this was a bug in tmux 3.2a -- it has since been fixed on tmux master here is my system information: ```console $ dpkg -l | grep tmux ii tmux 3.2a-4build1 amd64terminal multiplexer $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 22.04 LTS Release:22.04 Codename: jammy ``` you can reproduce this pretty easily with: ```bash tmux -V tmux new-session -d -x 20 -y 20 bash tmux send-keys 'tput cols' tmux send-keys 'Enter' sleep 1 tmux capture-pane -pt0 | grep -Eo '^[0-9]+' tmux kill-session ``` on 20.04, I get the following: ```console $ bash t.sh tmux 3.0a 20 ``` on 22.04 I get the following (my parent window is 118 wide): ```console $ bash t.sh tmux 3.2a 118 ``` I've gone ahead and bisected to find the patch that's needed to fix this -- it was originally committed here: https://github.com/tmux/tmux/commit/df3fe2aa72da0555106c6187e750418f0e59d901 applying that to the packaging of 3.2a should be pretty straightforward, I've verified that applying it fixes the problem: ```console $ git checkout 3.2a $ git cherry-pick df3fe2aa72da0555106c6187e750418f0e59d901 $ ./autogen.sh >& /dev/null && ./configure --prefix=$PWD/prefix >& /dev/null && make -j5 >& /dev/null && make install >& /dev/null && PATH=/tmp/tmux/prefix/bin:$PATH bash ../t.sh tmux 3.2a 20 ``` so all that should be needed is to apply that patch: ```diff commit df3fe2aa72da0555106c6187e750418f0e59d901 (refs/bisect/skip-df3fe2aa72da0555106c6187e750418f0e59d901) Author: Nicholas Marriott Date: Tue Jul 13 10:38:57 2021 + Only use client for sizing when not detached, GitHub issue 2772. diff --git a/cmd-new-session.c b/cmd-new-session.c index 666aeaac..033c707f 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -280,7 +280,8 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) memset(, 0, sizeof sc); sc.item = item; sc.s = s; - sc.tc = c; + if (!detached) + sc.tc = c; sc.name = args_get(args, 'n'); sc.argc = args->argc; ``` thanks! ** Affects: tmux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1976110 Title: `tmux -d -x ... -y ...` does not respect sizing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1976110/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875109] Re: regression: splitting panes does not cause a resize in backgrounded tmux
ok! I've gone through and run the verification now -- looks good! ** Tags removed: verification-needed verification-needed-focal ** Tags added: verification-done verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875109 Title: regression: splitting panes does not cause a resize in backgrounded tmux To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1875109/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875109] Re: regression: splitting panes does not cause a resize in backgrounded tmux
ah right I can see why that's not straightforward -- I was the reporter of the original bug on tmux and the reason I found the bug was due to a failing test case in the test suite of my text editor which uses tmux for integration tests When I upgraded to 20.04 I noticed the same failures and reported this bug, and only after upgrading to the proposed version are those tests fixed the original reproduction in the tmux bug was boiled down from a testcase in `resize_test.py` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875109 Title: regression: splitting panes does not cause a resize in backgrounded tmux To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1875109/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875109] Re: regression: splitting panes does not cause a resize in backgrounded tmux
can confirm this is fixed in the proposed version -- thanks! (venv) root@76a706fdb5e0:/babi# apt update -qq && apt install tmux 7 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: tmux 1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. Need to get 292 kB of archives. After this operation, 3072 B disk space will be freed. Get:1 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 tmux amd64 3.0a-2ubuntu0.1 [292 kB] Fetched 292 kB in 1s (279 kB/s) debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 8572 files and directories currently installed.) Preparing to unpack .../tmux_3.0a-2ubuntu0.1_amd64.deb ... Unpacking tmux (3.0a-2ubuntu0.1) over (3.0a-2) ... Setting up tmux (3.0a-2ubuntu0.1) ... (venv) root@76a706fdb5e0:/babi# pytest tests -k resize = test session starts == platform linux -- Python 3.8.2, pytest-5.4.2, py-1.8.1, pluggy-0.13.1 rootdir: /babi collected 507 items / 484 deselected / 23 selected tests/features/resize_test.py .. [ 43%] tests/features/save_test.py .[ 47%] tests/features/resize_test.py .. [ 91%] tests/features/save_test.py .[ 95%] tests/features/suspend_test.py . [100%] == 23 passed, 484 deselected in 6.95s == ** Tags removed: verification-needed-focal ** Tags added: verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875109 Title: regression: splitting panes does not cause a resize in backgrounded tmux To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1875109/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1875109] [NEW] regression: splitting panes does not cause a resize in backgrounded tmux
Public bug reported: This is the same as this upstream issue: https://github.com/tmux/tmux/issues/1963 (fixed 2019-11-02) this is present in 3.0a-2 for ubuntu focal there is a patch listed here -- alternatively, it looks like this is fixed in 3.1: https://github.com/tmux/tmux/issues/1963#issuecomment-548929945 ** Affects: tmux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875109 Title: regression: splitting panes does not cause a resize in backgrounded tmux To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1875109/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1851684] [NEW] python3.8-venv should depend on python3-distutils
Public bug reported: Originally reported here: https://github.com/deadsnakes/issues/issues/97 I'm also surprised to see a package added to LTS so late in the game, is there a change in policy around new packages / feature bumps that I missed? Here's a reproduction using docker: ``` FROM ubuntu:bionic RUN apt-get update && apt-get install -yq python3.8-venv RUN python3.8 -m venv /venv ``` ``` Step 3/3 : RUN python3.8 -m venv /venv ---> Running in 41a792e03c49 The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get install python3-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: ['/venv/bin/python3.8', '-Im', 'ensurepip', '-- upgrade', '--default-pip'] The command '/bin/sh -c python3.8 -m venv /venv' returned a non-zero code: 1 ``` The inner (hidden) error: ``` root@f806220c24ec:/# python3.8 -mvenv /venv The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get install python3-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: ['/venv/bin/python3.8', '-Im', 'ensurepip', '-- upgrade', '--default-pip'] root@f806220c24ec:/# /venv/bin/python -m ensurepip Traceback (most recent call last): File "/usr/lib/python3.8/ensurepip/__init__.py", line 54, in _run_pip import pip._internal File "", line 259, in load_module File "/tmp/tmpmmf52da_/pip-9.0.1-py2.py3-none-any.whl/pip/__init__.py", line 29, in File "", line 259, in load_module File "/tmp/tmpmmf52da_/pip-9.0.1-py2.py3-none-any.whl/pip/utils/__init__.py", line 23, in File "", line 259, in load_module File "/tmp/tmpmmf52da_/pip-9.0.1-py2.py3-none-any.whl/pip/locations.py", line 9, in ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.8/distutils/__init__.py) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib/python3.8/ensurepip/__main__.py", line 5, in sys.exit(ensurepip._main()) File "/usr/lib/python3.8/ensurepip/__init__.py", line 263, in _main return _bootstrap( File "/usr/lib/python3.8/ensurepip/__init__.py", line 181, in _bootstrap return _run_pip(args + _PROJECTS, additional_paths) File "/usr/lib/python3.8/ensurepip/__init__.py", line 57, in _run_pip import pip File "", line 259, in load_module File "/venv/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/__init__.py", line 29, in File "", line 259, in load_module File "/venv/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/utils/__init__.py", line 23, in File "", line 259, in load_module File "/venv/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/locations.py", line 9, in ImportError: cannot import name 'sysconfig' from 'distutils' (/usr/lib/python3.8/distutils/__init__.py) ``` ** Affects: python3.8 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1851684 Title: python3.8-venv should depend on python3-distutils To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.8/+bug/1851684/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 66566]
this change is really unfortunate -- I just phished myself due to relying on muscle memory that dates back at least 10 years. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/66566 Title: Inconsistent shortcuts for new tab To manage notifications about this bug go to: https://bugs.launchpad.net/firefox/+bug/66566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1794589] Re: nodejs-dev conflicts with libcurl4-openssl-dev libssh-dev libssl-dev, causing build failures
This seems to have been released with this breakage in 8.10.0~dfsg- 2ubuntu0.3: # apt-cache show nodejs | grep -Eo '(Version: .*$|libssl[^ ]*)' Version: 8.10.0~dfsg-2ubuntu0.3 libssl1.0.0 Version: 8.10.0~dfsg-2ubuntu0.2 libssl1.1 Version: 8.10.0~dfsg-2 libssl1.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1794589 Title: nodejs-dev conflicts with libcurl4-openssl-dev libssh-dev libssl-dev, causing build failures To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nodejs/+bug/1794589/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1794589] Re: nodejs-dev conflicts with libcurl4-openssl-dev libssh-dev libssl-dev, causing build failures
The workaround in my case is to: apt install \ nodejs=8.10.0~dfsg-2ubuntu0.2 nodejs-dev=8.10.0~dfsg-2ubuntu0.2 \ npm \ libssl-dev -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1794589 Title: nodejs-dev conflicts with libcurl4-openssl-dev libssh-dev libssl-dev, causing build failures To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nodejs/+bug/1794589/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1768644] Re: PY_CFLAGS contains reference to -specs=/usr/share/dpkg/no-pie-compile.specs
Confirmed fixed: (venv) root@99e4d04174a9:/# pip install ujson Collecting ujson Using cached https://files.pythonhosted.org/packages/16/c4/79f3409bc710559015464e5f49b9879430d8f87498ecdc335899732e5377/ujson-1.35.tar.gz Building wheels for collected packages: ujson Running setup.py bdist_wheel for ujson ... done Stored in directory: /root/.cache/pip/wheels/28/77/e4/0311145b9c2e2f01470e744855131f9e34d6919687550f87d1 Successfully built ujson Installing collected packages: ujson Didn't have time to wait for proposed so I just downloaded the amd64 binary outputs and `gdebi -n` installed them. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1768644 Title: PY_CFLAGS contains reference to -specs=/usr/share/dpkg/no-pie- compile.specs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.6/+bug/1768644/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1768644] Re: PY_CFLAGS contains reference to -specs=/usr/share/dpkg/no-pie-compile.specs
Any ETA on when this'll land for bionic? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1768644 Title: PY_CFLAGS contains reference to -specs=/usr/share/dpkg/no-pie- compile.specs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.6/+bug/1768644/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1768644] [NEW] PY_CFLAGS contains reference to -specs=/usr/share/dpkg/no-pie-compile.specs
Public bug reported: Minimal reproduction (docker): FROM ubuntu:bionic RUN apt-get update && \ apt-get install -y --no-install-recommends gcc python-dev virtualenv && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* RUN virtualenv /venv -ppython3 && \ /venv/bin/pip install ujson Fails with: Collecting ujson Downloading https://files.pythonhosted.org/packages/16/c4/79f3409bc710559015464e5f49b9879430d8f87498ecdc335899732e5377/ujson-1.35.tar.gz (192kB) Building wheels for collected packages: ujson Running setup.py bdist_wheel for ujson: started Running setup.py bdist_wheel for ujson: finished with status 'error' Complete output from command /venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-x7e5igby/ujson/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-de4xsrzr --python-tag cp36: running bdist_wheel running build running build_ext building 'ujson' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/python creating build/temp.linux-x86_64-3.6/lib x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./python -I./lib -I/usr/include/python3.6m -I/venv/include/python3.6m -c ./python/ujson.c -o build/temp.linux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE x86_64-linux-gnu-gcc: error: /usr/share/dpkg/no-pie-compile.specs: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Failed building wheel for ujson Running setup.py clean for ujson Failed to build ujson Installing collected packages: ujson Running setup.py install for ujson: started Running setup.py install for ujson: finished with status 'error' Complete output from command /venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-x7e5igby/ujson/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-d0l7cnq5/install-record.txt --single-version-externally-managed --compile --install-headers /venv/include/site/python3.6/ujson: running install running build running build_ext building 'ujson' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/python creating build/temp.linux-x86_64-3.6/lib x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./python -I./lib -I/usr/include/python3.6m -I/venv/include/python3.6m -c ./python/ujson.c -o build/temp.linux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE x86_64-linux-gnu-gcc: error: /usr/share/dpkg/no-pie-compile.specs: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Command "/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-x7e5igby/ujson/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-d0l7cnq5/install-record.txt --single-version-externally-managed --compile --install-headers /venv/include/site/python3.6/ujson" failed with error code 1 in /tmp/pip-install-x7e5igby/ujson/ The command '/bin/sh -c virtualenv /venv -ppython3 && /venv/bin/pip install ujson' returned a non-zero code: 1 The root cause of this seems to be the PY_CFLAGS sysconfig setting which contains flags that were used to build python itself, including a reference to a file which doesn't exist: root@71b2faa3da66:/# python3 -m sysconfig | grep no-pie-compile CFLAGS = "-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security" CONFIGURE_CFLAGS = "-g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security" CONFIG_ARGS = "'--enable-shared' '--prefix=/usr' '--enable-ipv6' '--enable-loadable-sqlite-extensions' '--with-dbmliborder=bdb:gdbm' '--with-computed-gotos' '--without-ensurepip' '--with-system-expat' '--with-system-libmpdec'
[Bug 1655220] [NEW] Test failure: test_venv
Public bug reported: ``` $ python3.5 -m test test_venv [1/1] test_venv test test_venv failed -- Traceback (most recent call last): File "/usr/lib/python3.5/test/test_venv.py", line 407, in test_with_pip self.assertEqual(err.rstrip(), "") AssertionError: 'Traceback (most recent call last):\n Fil[597 chars]list' != '' - Traceback (most recent call last): - File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main - "__main__", mod_spec) - File "/usr/lib/python3.5/runpy.py", line 85, in _run_code - exec(code, run_globals) - File "/usr/lib/python3.5/ensurepip/_uninstall.py", line 30, in - _main() - File "/usr/lib/python3.5/ensurepip/_uninstall.py", line 26, in _main - ensurepip._uninstall_helper(verbosity=args.verbosity) - File "/usr/lib/python3.5/ensurepip/__init__.py", line 203, in _uninstall_helper - _run_pip(args + reversed(_PROJECTS)) - TypeError: can only concatenate list (not "list_reverseiterator") to list 1 test failed: test_venv ``` The debian patch here is buggy (even in python2) as reversed returns an iterator. A patch to the patch which fixes this: ```diff diff --git a/debian/patches/ensurepip-wheels.diff b/debian/patches/ensurepip-wheels.diff index df5de92..858feb0 100644 --- a/debian/patches/ensurepip-wheels.diff +++ b/debian/patches/ensurepip-wheels.diff @@ -115,7 +115,7 @@ Index: b/Lib/ensurepip/__init__.py args += ["-" + "v" * verbosity] -_run_pip(args + [p[0] for p in reversed(_PROJECTS)]) -+_run_pip(args + reversed(_PROJECTS)) ++_run_pip(args + list(reversed(_PROJECTS))) def _main(argv=None): ``` ``` $ lsb_release -rd Description:Ubuntu 16.04.1 LTS Release:16.04 $ apt-cache policy python3.5 python3.5: Installed: 3.5.2-2ubuntu0~16.04.1 Candidate: 3.5.2-2ubuntu0~16.04.1 Version table: *** 3.5.2-2ubuntu0~16.04.1 500 500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 100 /var/lib/dpkg/status 3.5.1-10 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages ``` ** Affects: python3.5 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1655220 Title: Test failure: test_venv To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.5/+bug/1655220/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1655200] [NEW] Test failure: test_platform
Public bug reported: ``` # python3.6 -m test test_platform -v == CPython 3.6.0 (default, Dec 29 2016, 04:29:02) [GCC 6.2.1 20161215] == Linux-4.4.0-57-generic-x86_64-with-Ubuntu-17.04-zesty little-endian == hash algorithm: siphash24 64bit == cwd: /tmp/test_python_410 == encodings: locale=ANSI_X3.4-1968, FS=ascii Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0) Run tests sequentially 0:00:00 [1/1] test_platform test_dist_deprecation (test.test_platform.DeprecationTest) ... ok test_linux_distribution_deprecation (test.test_platform.DeprecationTest) ... ok test_architecture (test.test_platform.PlatformTest) ... ok test_architecture_via_symlink (test.test_platform.PlatformTest) ... ok test_dist (test.test_platform.PlatformTest) ... ok test_java_ver (test.test_platform.PlatformTest) ... ok test_libc_ver (test.test_platform.PlatformTest) ... ok test_linux_distribution_encoding (test.test_platform.PlatformTest) ... FAIL test_mac_ver (test.test_platform.PlatformTest) ... ok test_mac_ver_with_fork (test.test_platform.PlatformTest) ... skipped 'OSX only test' test_machine (test.test_platform.PlatformTest) ... ok test_node (test.test_platform.PlatformTest) ... ok test_parse_release_file (test.test_platform.PlatformTest) ... ok test_platform (test.test_platform.PlatformTest) ... ok test_popen (test.test_platform.PlatformTest) ... ok test_processor (test.test_platform.PlatformTest) ... ok test_release (test.test_platform.PlatformTest) ... ok test_sys_version (test.test_platform.PlatformTest) ... ok test_system (test.test_platform.PlatformTest) ... ok test_system_alias (test.test_platform.PlatformTest) ... ok test_uname (test.test_platform.PlatformTest) ... ok test_uname_win32_ARCHITEW6432 (test.test_platform.PlatformTest) ... skipped 'windows only test' test_version (test.test_platform.PlatformTest) ... ok test_win32_ver (test.test_platform.PlatformTest) ... ok == FAIL: test_linux_distribution_encoding (test.test_platform.PlatformTest) -- Traceback (most recent call last): File "/usr/lib/python3.6/test/test_platform.py", line 348, in test_linux_distribution_encoding self.assertEqual(distname, 'Fedora') AssertionError: 'Ubuntu' != 'Fedora' - Ubuntu + Fedora -- Ran 24 tests in 0.724s FAILED (failures=1, skipped=2) test test_platform failed test_platform failed 1 test failed: test_platform Total duration: 860 ms Tests result: FAILURE ``` This test can be "fixed" by modifying the platform-lsbrelease.diff patch in the following way: ```diff diff --git a/debian/patches/platform-lsbrelease.diff b/debian/patches/platform-lsbrelease.diff index 5b9b5a8..fe66d9a 100644 --- a/debian/patches/platform-lsbrelease.diff +++ b/debian/patches/platform-lsbrelease.diff @@ -31,7 +31,7 @@ Index: b/Lib/platform.py +# check for the Debian/Ubuntu /etc/lsb-release file first, needed so +# that the distribution doesn't get identified as Debian. +try: -+with open("/etc/lsb-release", "r") as etclsbrel: ++with open(os.path.join(_UNIXCONFDIR, "lsb-release"), "r") as etclsbrel: +for line in etclsbrel: +m = _distributor_id_file_re.search(line) +if m: ``` Other information: I'm using the ubuntu:zesty docker image: ``` # lsb_release -rd Description:Ubuntu Zesty Zapus (development branch) Release:17.04 # apt-cache policy python3.6 python3.6: Installed: 3.6.0-1 Candidate: 3.6.0-1 Version table: *** 3.6.0-1 500 500 http://archive.ubuntu.com/ubuntu zesty/universe amd64 Packages 100 /var/lib/dpkg/status ``` ** Affects: python3.6 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1655200 Title: Test failure: test_platform To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.6/+bug/1655200/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1631367] Re: Error in sys.excepthook: ModuleNotFoundError: No module named 'apt_pkg'
I did some digging into this here: https://bitbucket.org/fkpackaging /deadsnakes-issues/issues/39/looking-for-a-new- maintainer#comment-33484057 The "default" python in zesty is python3.5, since python3.6 is a non- default python, it should install dist-packages into /usr/lib/python3.6 /dist-packages instead of /usr/lib/python3/dist-packages (at least if I'm correct :D) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1631367 Title: Error in sys.excepthook: ModuleNotFoundError: No module named 'apt_pkg' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.6/+bug/1631367/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs