[Bug 1808133] [NEW] python3-apport emits a deprecation warning

2018-12-12 Thread Serhiy Storchaka
Public bug reported:

python3-apport uses the deprecated module imp. This causes to emitting a
deprecation warning when run python3 with the -Walways option, and even
to changing a traceback when run python3 with the -Werror option.

Example:

```
$ python3 -Walways -c '1/0'
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp 
module is deprecated in favour of importlib; see the module's documentation for 
alternative uses
  import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
Traceback (most recent call last):
  File "", line 1, in 
ZeroDivisionError: division by zero
```
```
$ python3 -Werror -c '1/0'
Traceback (most recent call last):
  File "", line 1, in 
ZeroDivisionError: division by zero
Error in sys.excepthook:


Traceback (most recent call last):  


  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in 
apport_excepthook   

 
from apport.fileutils import likely_packaged, get_recent_crashes


  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in  


from apport.report import Report


  File "/usr/lib/python3/dist-packages/apport/report.py", line 13, in 
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
  File "/usr/lib/python3.6/imp.py", line 33, in 
DeprecationWarning, stacklevel=2)
DeprecationWarning: the imp module is deprecated in favour of importlib; see 
the module's documentation for alternative uses

Original exception was:
Traceback (most recent call last):
  File "", line 1, in 
ZeroDivisionError: division by zero
```

The -Werror option can be used for catching possible issues, and
additional output from apport spoils the result.

```
$ python3 -b -Werror -c 'str(b"")'
Traceback (most recent call last):
  File "", line 1, in 
BytesWarning: str() on a bytes instance
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in 
apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in 
from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 13, in 
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
  File "/usr/lib/python3.6/imp.py", line 33, in 
DeprecationWarning, stacklevel=2)
DeprecationWarning: the imp module is deprecated in favour of importlib; see 
the module's documentation for alternative uses

Original exception was:
Traceback (most recent call last):
  File "", line 1, in 
BytesWarning: str() on a bytes instance
```

The solution is to silence DeprecationWarning for `import imp`:

import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
import imp

** Affects: apport (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/1808133

Title:
  python3-apport emits a deprecation warning

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1808133/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1736717] [NEW] python3-cliff shouldn't depend on python3-unicodecsv

2017-12-06 Thread Serhiy Storchaka
Public bug reported:

Currently python3-unicodecsv is a dependence of python3-cliff. But
actually it is used only with Python 2. With Python 3 the standard csv
module is used instead of unicodecsv.

python2-unicodecsv should be kept a dependence of python2-cliff, but
python3-cliff shouldn't depend on python3-unicodecsv. And after that
python3-unicodecsv could be removed at all.

** Affects: python-cliff (Ubuntu)
 Importance: Undecided
 Status: New

** Affects: python-unicodecsv (Ubuntu)
 Importance: Undecided
 Status: New

** Also affects: python-cliff (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/1736717

Title:
  python3-cliff shouldn't depend on python3-unicodecsv

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cliff/+bug/1736717/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1722397] Re: idle doesn't run in 17.10

2017-10-10 Thread Serhiy Storchaka
** Changed in: python3-defaults (Ubuntu)
   Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1722397

Title:
  idle doesn't run in 17.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1722397/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1260428] Re: iso8601 is not properly ported to Python3

2017-10-10 Thread Serhiy Storchaka
** Tags added: saucy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1260428

Title:
  iso8601 is not properly ported to Python3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-iso8601/+bug/1260428/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1722576] [NEW] Typo in the description of xdg-desktop-portal-kde

2017-10-10 Thread Serhiy Storchaka
Public bug reported:

xdg-desktop-portal-gtk is mentioned in the description of xdg-desktop-
portal-kde:

   xdg-desktop-portal-gtk provides a Qt implementation for the desktop-
agnostic xdg-desktop-portal service. This allows sandboxed applications
to request services from outside the sandbox using KDE GUIs (app
chooser, file chooser, print dialog) or using KDE services (session
manager, screenshot provider).

Should it be xdg-desktop-portal-kde?

** Affects: xdg-desktop-portal-kde (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: artful

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1722576

Title:
  Typo in the description of xdg-desktop-portal-kde

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal-kde/+bug/1722576/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1702459] Re: Failed to send request: 'str' object has no attribute 'decode' on Ubuntu 16.04

2017-10-10 Thread Serhiy Storchaka
It would be helpful if you provide a traceback. Just remove try/except
or insert raise before print.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1702459

Title:
  Failed to send request: 'str' object has no attribute 'decode' on
  Ubuntu 16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1702459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1671952] Re: python program gets segmentation fault

2017-10-10 Thread Serhiy Storchaka
Please file a bug on the Python bug tracker (https://bugs.python.org/)
and provide a minimal script that reproduces a crash.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1671952

Title:
  python program gets segmentation fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1671952/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1628763] Re: Example of Queue from documentation fails

2017-10-10 Thread Serhiy Storchaka
This looks like there is a queue.py file in the current directory which
hides the queue module from the stdlib. In Python 2.7 this module is
named Queue and doesn't conflict with a local file queue.py.

Can you confirm Kevin?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1628763

Title:
  Example of Queue from documentation fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1628763/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1629123] Re: multiprocessing.Pool fails

2017-10-10 Thread Serhiy Storchaka
This is a duplicate of bug #628763.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629123

Title:
  multiprocessing.Pool fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1629123/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1556927] Re: python3 builtin help() fails with exception

2017-10-10 Thread Serhiy Storchaka
This is fixed in version 3.4.4 in mainstream
(https://bugs.python.org/issue23898).

** Bug watch added: Python Roundup #23898
   http://bugs.python.org/issue23898

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1556927

Title:
  python3 builtin help() fails with exception

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1556927/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1655214] Re: re.match is anchored to the beginning of the string.

2017-10-09 Thread Serhiy Storchaka
This works as expected. See https://docs.python.org/3/library/re.html
#search-vs-match .

** Changed in: python3-defaults (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1655214

Title:
  re.match is anchored to the beginning of the string.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1655214/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1722397] [NEW] idle doesn't run in 17.10

2017-10-09 Thread Serhiy Storchaka
Public bug reported:

In 17.10 the idle package (v. 3.6.3-0ubuntu1) depends on Python 3.6. But
the /usr/bin/idle script contains the code that doesn't work in Python
3.6.

$ idle
Traceback (most recent call last):
  File "/usr/bin/idle", line 3, in 
from idlelib.PyShell import main
ModuleNotFoundError: No module named 'idlelib.PyShell'

In Python 3.6 the PyShell module was renamed to pyshell (see
https://bugs.python.org/issue24225).

/usr/bin/idle-python3.6 from the idle-python3.6 package works correctly.

Maybe make /usr/bin/idle just a link to /usr/bin/idle-python3.6?

If you want /usr/bin/idle always run the default python3 and don't
depent of future changes in the idlelib Python package, you can make it
a shell script:

#! /bin/sh
exec /usr/bin/python3 -m idlelib

** Affects: python3-defaults (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/1722397

Title:
  idle doesn't run in 17.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1722397/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs