タグ付けされた質問 「bidi」

4
NameError:グローバル名 'unicode'が定義されていません-Python 3
BidiというPythonパッケージを使用しようとしています。このパッケージのモジュール(algorithm.py)には、パッケージの一部ですが、エラーが発生する行がいくつかあります。 ここに行があります: # utf-8 ? we need unicode if isinstance(unicode_or_str, unicode): text = unicode_or_str decoded = False else: text = unicode_or_str.decode(encoding) decoded = True そしてここにエラーメッセージがあります: Traceback (most recent call last): File "<pyshell#25>", line 1, in <module> bidi_text = get_display(reshaped_text) File "C:\Python33\lib\site-packages\python_bidi-0.3.4-py3.3.egg\bidi\algorithm.py", line 602, in get_display if isinstance(unicode_or_str, unicode): NameError: global …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.