/usr/share/weechat/python/queue.py shadows stdlib module, cannot be imported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
weechat-scripts (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
There was a bug in a weechat script in my ~/.weechat/
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
import apport.fileutils
File "/usr/lib/
import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
File "/usr/lib/
import requests
File "/usr/lib/
import urllib3
File "/usr/lib/
from .connectionpool import HTTPConnectionPool, HTTPSConnection
File "/usr/lib/
from six.moves import queue
File "<frozen importlib.
File "/usr/lib/
result = self._resolve()
File "/usr/lib/
return _import_
File "/usr/lib/
__import_
File "/usr/share/
if args == "":
^
TabError: inconsistent use of tabs and spaces in indentation
which highligts two problems:
- the 'queue' weechat script is in sys.path and shadows a standard library module
- it is using mixed tabs and spaces for indentation, which is forbidden in Python 3
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: weechat-scripts (not installed)
ProcVersionSign
Uname: Linux 5.8.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 6 22:18:39 2020
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-06-12 (512 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: weechat-scripts
UpgradeStatus: Upgraded to groovy on 2020-10-23 (14 days ago)