From owner-freebsd-python@freebsd.org Tue Oct 6 21:37:46 2015 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90DA89D0854 for ; Tue, 6 Oct 2015 21:37:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 77A9B35A for ; Tue, 6 Oct 2015 21:37:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 746149D0852; Tue, 6 Oct 2015 21:37:46 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73F899D0851 for ; Tue, 6 Oct 2015 21:37:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C03F358 for ; Tue, 6 Oct 2015 21:37:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t96Lbk53086896 for ; Tue, 6 Oct 2015 21:37:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 203592] lang/python27: ImportError: ntpath cannot import name _unicode from genericpath Date: Tue, 06 Oct 2015 21:37:46 +0000 X-Bugzilla-Type: request Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 21:37:46 -0000 avatar4d@gmail.com has reassigned Bugzilla Automation 's request for maintainer-feedback to python@FreeBSD.org: Bug 203592: lang/python27: ImportError: ntpath cannot import name _unicode = from genericpath https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203592 --- Description --- I noticed that after updating my installed packages that SickRage was not functioning properly. The the following error was found in my SickRage error log: 2015-10-06 17:00:21 Thread-155 :: Failed doing webui callback: Traceback (m= ost recent call last): File "/usr/local/sickrage/sickbeard/webserve.py", line 273, in async_call result =3D function(**kwargs) File "/usr/local/sickrage/sickbeard/webserve.py", line 1228, in displaySh= ow t =3D PageTemplate(rh=3Dself, file=3D"displayShow.tmpl") File "/usr/local/sickrage/sickbeard/webserve.py", line 124, in __init__ super(PageTemplate, self).__init__(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/Cheetah/Template.py", line 1= 259, in __init__ self._compile(source, file, compilerSettings=3DcompilerSettings) File "/usr/local/lib/python2.7/site-packages/Cheetah/Template.py", line 1= 553, in _compile keepRefToGeneratedCode=3DTrue) File "/usr/local/sickrage/sickbeard/webserve.py", line 168, in compile return super(PageTemplate, self).compile(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/Cheetah/Template.py", line 7= 88, in compile exec(co, mod.__dict__) File "/usr/local/sickrage/cache/cheetah/_usr_local_sickrage_gui_slick_interfaces= _def ault_displayShow_tmpl.py", line 34, in import ntpath File "/usr/local/lib/python2.7/ntpath.py", line 15, in from genericpath import _unicode ImportError: cannot import name _unicode I found that /usr/local/lib/python2.7/ntpath.py had the following import li= nes and after removing the second line everything began function properly. This= is clearly not the most appropriate course of action since none of the _unicode tests will execute in ntpath.py this way, but it definitely wasn't working correctly the other way.=20 from genericpath import * from genericpath import _unicode /usr/local/lib/python2.7/generic.py path only has the following related to unicode so I am not sure why the import in ntpath.py isn't working: try: _unicode =3D unicode except NameError: # If Python is built without Unicode support, the unicode type # will not exist. Fake one. class _unicode(object): pass=