From gshults at icloud.com Sun Feb 11 16:32:20 2018 From: gshults at icloud.com (Gerrie Shults) Date: Sun, 11 Feb 2018 13:32:20 -0800 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt Message-ID: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> I?m trying to get the latest version of pip to use to install Flask. I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip?, per the instructions from "https://pip.pypa.io/en/stable/installing/?, and got the result below. Why isn?t html.parser available as part of the standard install? What do I need to do to make this work? Thanks for any help. Gerrie Shults $ pip3 install -U pip Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in from pip import main File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in from pip.index import Link File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in from pip.wheel import Wheel, wheel_ext File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in from pip._vendor.distlib.scripts import ScriptMaker File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in from .compat import sysconfig, detect_encoding, ZipFile File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in from html.parser import HTMLParser ModuleNotFoundError: No module named 'html.parser' $ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gshults at icloud.com Mon Feb 12 11:05:39 2018 From: gshults at icloud.com (Gerrie Shults) Date: Mon, 12 Feb 2018 08:05:39 -0800 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt In-Reply-To: References: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> Message-ID: <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> Before my original post, I looked up html.parser in the Python documentation, and everything I saw indicated to me that it was already installed. I have now looked again at the documentation and can find examples using html.parser, but nothing that tells me how to install it. How do I install it? And how can I find what is already installed, and what is available to install without having to download more? Thanks, Gerrie Shults > On Feb 11, 2018, at 18:59, ??? wrote: > > You should first install html.parser this error report is about html.parser > Then rerun pip command > > ???? iPhone > > ? 2018?2?12????5:32?Gerrie Shults > ??? > >> I?m trying to get the latest version of pip to use to install Flask. >> >> I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip?, per the instructions from "https://pip.pypa.io/en/stable/installing /?, and got the result below. >> >> Why isn?t html.parser available as part of the standard install? What do I need to do to make this work? >> >> Thanks for any help. >> >> Gerrie Shults >> >> >> >> >> $ pip3 install -U pip >> Traceback (most recent call last): >> File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in >> from pip import main >> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in >> from pip.vcs import git, mercurial, subversion, bazaar # noqa >> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in >> from pip.index import Link >> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in >> from pip.wheel import Wheel, wheel_ext >> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in >> from pip._vendor.distlib.scripts import ScriptMaker >> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in >> from .compat import sysconfig, detect_encoding, ZipFile >> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in >> from html.parser import HTMLParser >> ModuleNotFoundError: No module named 'html.parser' >> $ >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> https://mail.python.org/mailman/listinfo/pythonmac-sig >> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From barry at barrys-emacs.org Mon Feb 12 14:56:22 2018 From: barry at barrys-emacs.org (Barry Scott) Date: Mon, 12 Feb 2018 19:56:22 +0000 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt In-Reply-To: <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> References: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> Message-ID: html module is shipped with python 3.6.4. Only thing I can think of is that your PYTHONPATH is interfering in some way. $ python3 Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import html >>> html >>> from html.parser import HTMLParser >>> HTMLParser >>> import sys >>> sys.path ['', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages'] >>> Barry > On 12 Feb 2018, at 16:05, Gerrie Shults wrote: > > Before my original post, I looked up html.parser in the Python documentation, and everything I saw indicated to me that it was already installed. > > I have now looked again at the documentation and can find examples using html.parser, but nothing that tells me how to install it. > > How do I install it? And how can I find what is already installed, and what is available to install without having to download more? > > Thanks, > Gerrie Shults > >> On Feb 11, 2018, at 18:59, ??? > wrote: >> >> You should first install html.parser this error report is about html.parser >> Then rerun pip command >> >> ???? iPhone >> >> ? 2018?2?12????5:32?Gerrie Shults > ??? >> >>> I?m trying to get the latest version of pip to use to install Flask. >>> >>> I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip?, per the instructions from "https://pip.pypa.io/en/stable/installing /?, and got the result below. >>> >>> Why isn?t html.parser available as part of the standard install? What do I need to do to make this work? >>> >>> Thanks for any help. >>> >>> Gerrie Shults >>> >>> >>> >>> >>> $ pip3 install -U pip >>> Traceback (most recent call last): >>> File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in >>> from pip import main >>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in >>> from pip.vcs import git, mercurial, subversion, bazaar # noqa >>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in >>> from pip.index import Link >>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in >>> from pip.wheel import Wheel, wheel_ext >>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in >>> from pip._vendor.distlib.scripts import ScriptMaker >>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in >>> from .compat import sysconfig, detect_encoding, ZipFile >>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in >>> from html.parser import HTMLParser >>> ModuleNotFoundError: No module named 'html.parser' >>> $ >>> >>> _______________________________________________ >>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>> https://mail.python.org/mailman/listinfo/pythonmac-sig >>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >>> > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- An HTML attachment was scrubbed... URL: From gshults at icloud.com Tue Feb 13 12:51:25 2018 From: gshults at icloud.com (Gerrie Shults) Date: Tue, 13 Feb 2018 09:51:25 -0800 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt In-Reply-To: References: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> Message-ID: Thank you, Barry. Your PYTHONPATH suspicion was correct. I have been away from Python for many years. My PYTHONPATH pointed to personal directories, which happened to include a 15-year old module named ?html?. Clearing that solved my problem. Thanks again, Gerrie > On Feb 12, 2018, at 11:56, Barry Scott wrote: > > html module is shipped with python 3.6.4. > > Only thing I can think of is that your PYTHONPATH is interfering in some way. > > $ python3 > Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import html > >>> html > > >>> from html.parser import HTMLParser > >>> HTMLParser > > >>> import sys > >>> sys.path > ['', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages'] > >>> > > Barry > > >> On 12 Feb 2018, at 16:05, Gerrie Shults > wrote: >> >> Before my original post, I looked up html.parser in the Python documentation, and everything I saw indicated to me that it was already installed. >> >> I have now looked again at the documentation and can find examples using html.parser, but nothing that tells me how to install it. >> >> How do I install it? And how can I find what is already installed, and what is available to install without having to download more? >> >> Thanks, >> Gerrie Shults >> >>> On Feb 11, 2018, at 18:59, ??? > wrote: >>> >>> You should first install html.parser this error report is about html.parser >>> Then rerun pip command >>> >>> ???? iPhone >>> >>> ? 2018?2?12????5:32?Gerrie Shults > ??? >>> >>>> I?m trying to get the latest version of pip to use to install Flask. >>>> >>>> I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip?, per the instructions from "https://pip.pypa.io/en/stable/installing /?, and got the result below. >>>> >>>> Why isn?t html.parser available as part of the standard install? What do I need to do to make this work? >>>> >>>> Thanks for any help. >>>> >>>> Gerrie Shults >>>> >>>> >>>> >>>> >>>> $ pip3 install -U pip >>>> Traceback (most recent call last): >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in >>>> from pip import main >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in >>>> from pip.vcs import git, mercurial, subversion, bazaar # noqa >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in >>>> from pip.index import Link >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in >>>> from pip.wheel import Wheel, wheel_ext >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in >>>> from pip._vendor.distlib.scripts import ScriptMaker >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in >>>> from .compat import sysconfig, detect_encoding, ZipFile >>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in >>>> from html.parser import HTMLParser >>>> ModuleNotFoundError: No module named 'html.parser' >>>> $ >>>> >>>> _______________________________________________ >>>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>>> https://mail.python.org/mailman/listinfo/pythonmac-sig >>>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >>>> >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> https://mail.python.org/mailman/listinfo/pythonmac-sig >> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > -------------- next part -------------- An HTML attachment was scrubbed... URL: From glyph at twistedmatrix.com Tue Feb 13 13:11:06 2018 From: glyph at twistedmatrix.com (Glyph) Date: Tue, 13 Feb 2018 10:11:06 -0800 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt In-Reply-To: References: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> Message-ID: <599C522C-6891-4589-AB5D-79AA9B70128F@twistedmatrix.com> PYTHONPATH itself is a bit of an anachronism :). It's the past, virtualenvs are the future! https://orbifold.xyz/pythonpath.html (If you're using PyObjC and avoiding virtualenvs for that reason, check out https://github.com/glyph/venvdotapp ) -g > On Feb 13, 2018, at 9:51 AM, Gerrie Shults wrote: > > Thank you, Barry. Your PYTHONPATH suspicion was correct. > > I have been away from Python for many years. My PYTHONPATH pointed to personal directories, which happened to include a 15-year old module named ?html?. > > Clearing that solved my problem. > > Thanks again, > Gerrie > >> On Feb 12, 2018, at 11:56, Barry Scott > wrote: >> >> html module is shipped with python 3.6.4. >> >> Only thing I can think of is that your PYTHONPATH is interfering in some way. >> >> $ python3 >> Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) >> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import html >> >>> html >> >> >>> from html.parser import HTMLParser >> >>> HTMLParser >> >> >>> import sys >> >>> sys.path >> ['', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages'] >> >>> >> >> Barry >> >> >>> On 12 Feb 2018, at 16:05, Gerrie Shults > wrote: >>> >>> Before my original post, I looked up html.parser in the Python documentation, and everything I saw indicated to me that it was already installed. >>> >>> I have now looked again at the documentation and can find examples using html.parser, but nothing that tells me how to install it. >>> >>> How do I install it? And how can I find what is already installed, and what is available to install without having to download more? >>> >>> Thanks, >>> Gerrie Shults >>> >>>> On Feb 11, 2018, at 18:59, ??? > wrote: >>>> >>>> You should first install html.parser this error report is about html.parser >>>> Then rerun pip command >>>> >>>> ???? iPhone >>>> >>>> ? 2018?2?12????5:32?Gerrie Shults > ??? >>>> >>>>> I?m trying to get the latest version of pip to use to install Flask. >>>>> >>>>> I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip?, per the instructions from "https://pip.pypa.io/en/stable/installing /?, and got the result below. >>>>> >>>>> Why isn?t html.parser available as part of the standard install? What do I need to do to make this work? >>>>> >>>>> Thanks for any help. >>>>> >>>>> Gerrie Shults >>>>> >>>>> >>>>> >>>>> >>>>> $ pip3 install -U pip >>>>> Traceback (most recent call last): >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in >>>>> from pip import main >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in >>>>> from pip.vcs import git, mercurial, subversion, bazaar # noqa >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in >>>>> from pip.index import Link >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in >>>>> from pip.wheel import Wheel, wheel_ext >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in >>>>> from pip._vendor.distlib.scripts import ScriptMaker >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in >>>>> from .compat import sysconfig, detect_encoding, ZipFile >>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in >>>>> from html.parser import HTMLParser >>>>> ModuleNotFoundError: No module named 'html.parser' >>>>> $ >>>>> >>>>> _______________________________________________ >>>>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>>>> https://mail.python.org/mailman/listinfo/pythonmac-sig >>>>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >>>>> >>> >>> _______________________________________________ >>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>> https://mail.python.org/mailman/listinfo/pythonmac-sig >>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >> > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- An HTML attachment was scrubbed... URL: From gshults at icloud.com Tue Feb 13 13:18:06 2018 From: gshults at icloud.com (Gerrie Shults) Date: Tue, 13 Feb 2018 10:18:06 -0800 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt In-Reply-To: <599C522C-6891-4589-AB5D-79AA9B70128F@twistedmatrix.com> References: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> <599C522C-6891-4589-AB5D-79AA9B70128F@twistedmatrix.com> Message-ID: <0D8B418A-FDE4-4606-BDCF-21CE8F7D6FCF@icloud.com> Thanks for the pointer. PYTHONPATH clearly bit me. I?m going to have to read up on virtualenvs. Gerrie > On Feb 13, 2018, at 10:11, Glyph wrote: > > PYTHONPATH itself is a bit of an anachronism :). It's the past, virtualenvs are the future! https://orbifold.xyz/pythonpath.html > > (If you're using PyObjC and avoiding virtualenvs for that reason, check out https://github.com/glyph/venvdotapp ) > > -g > >> On Feb 13, 2018, at 9:51 AM, Gerrie Shults > wrote: >> >> Thank you, Barry. Your PYTHONPATH suspicion was correct. >> >> I have been away from Python for many years. My PYTHONPATH pointed to personal directories, which happened to include a 15-year old module named ?html?. >> >> Clearing that solved my problem. >> >> Thanks again, >> Gerrie >> >>> On Feb 12, 2018, at 11:56, Barry Scott > wrote: >>> >>> html module is shipped with python 3.6.4. >>> >>> Only thing I can think of is that your PYTHONPATH is interfering in some way. >>> >>> $ python3 >>> Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) >>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> import html >>> >>> html >>> >>> >>> from html.parser import HTMLParser >>> >>> HTMLParser >>> >>> >>> import sys >>> >>> sys.path >>> ['', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages'] >>> >>> >>> >>> Barry >>> >>> >>>> On 12 Feb 2018, at 16:05, Gerrie Shults > wrote: >>>> >>>> Before my original post, I looked up html.parser in the Python documentation, and everything I saw indicated to me that it was already installed. >>>> >>>> I have now looked again at the documentation and can find examples using html.parser, but nothing that tells me how to install it. >>>> >>>> How do I install it? And how can I find what is already installed, and what is available to install without having to download more? >>>> >>>> Thanks, >>>> Gerrie Shults >>>> >>>>> On Feb 11, 2018, at 18:59, ??? > wrote: >>>>> >>>>> You should first install html.parser this error report is about html.parser >>>>> Then rerun pip command >>>>> >>>>> ???? iPhone >>>>> >>>>> ? 2018?2?12????5:32?Gerrie Shults > ??? >>>>> >>>>>> I?m trying to get the latest version of pip to use to install Flask. >>>>>> >>>>>> I have a fresh install of Python 3.6.4, and I executed "pip3 install -U pip?, per the instructions from "https://pip.pypa.io/en/stable/installing /?, and got the result below. >>>>>> >>>>>> Why isn?t html.parser available as part of the standard install? What do I need to do to make this work? >>>>>> >>>>>> Thanks for any help. >>>>>> >>>>>> Gerrie Shults >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> $ pip3 install -U pip >>>>>> Traceback (most recent call last): >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line 7, in >>>>>> from pip import main >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__init__.py", line 28, in >>>>>> from pip.vcs import git, mercurial, subversion, bazaar # noqa >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/vcs/subversion.py", line 9, in >>>>>> from pip.index import Link >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/index.py", line 31, in >>>>>> from pip.wheel import Wheel, wheel_ext >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/wheel.py", line 39, in >>>>>> from pip._vendor.distlib.scripts import ScriptMaker >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in >>>>>> from .compat import sysconfig, detect_encoding, ZipFile >>>>>> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in >>>>>> from html.parser import HTMLParser >>>>>> ModuleNotFoundError: No module named 'html.parser' >>>>>> $ >>>>>> >>>>>> _______________________________________________ >>>>>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>>>>> https://mail.python.org/mailman/listinfo/pythonmac-sig >>>>>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >>>>>> >>>> >>>> _______________________________________________ >>>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>>> https://mail.python.org/mailman/listinfo/pythonmac-sig >>>> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG >>> >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> https://mail.python.org/mailman/listinfo/pythonmac-sig >> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.barker at noaa.gov Tue Feb 13 15:19:39 2018 From: chris.barker at noaa.gov (Chris Barker) Date: Tue, 13 Feb 2018 12:19:39 -0800 Subject: [Pythonmac-SIG] Failure on pip upgrade attempt In-Reply-To: <0D8B418A-FDE4-4606-BDCF-21CE8F7D6FCF@icloud.com> References: <1B9AB4D8-283F-47B2-BA51-EDFDF3D14B32@icloud.com> <66790C1B-C7B6-4A05-92EA-D3498DBAC13B@icloud.com> <599C522C-6891-4589-AB5D-79AA9B70128F@twistedmatrix.com> <0D8B418A-FDE4-4606-BDCF-21CE8F7D6FCF@icloud.com> Message-ID: On Tue, Feb 13, 2018 at 10:18 AM, Gerrie Shults wrote: > Thanks for the pointer. PYTHONPATH clearly bit me. > > I?m going to have to read up on virtualenvs. > you don't even need to go there to get rid of PYTHONPATH -- they kind of require you to get rid of PYTHONPATH -- many environment, one PYTHONPATH -- really bad. but what you need is a way to make your code available to the python instances (Or virtualenvs) that you want it to be. Heer are my thoughts on that: http://pythonchb.github.io/PythonTopics/where_to_put_your_code.html -CHB > Gerrie > > > On Feb 13, 2018, at 10:11, Glyph wrote: > > PYTHONPATH itself is a bit of an anachronism :). It's the past, > virtualenvs are the future! https://orbifold.xyz/pythonpath.html > > (If you're using PyObjC and avoiding virtualenvs for that reason, check > out https://github.com/glyph/venvdotapp ) > > -g > > On Feb 13, 2018, at 9:51 AM, Gerrie Shults wrote: > > Thank you, Barry. Your PYTHONPATH suspicion was correct. > > I have been away from Python for many years. My PYTHONPATH pointed to > personal directories, which happened to include a 15-year old module named > ?html?. > > Clearing that solved my problem. > > Thanks again, > Gerrie > > On Feb 12, 2018, at 11:56, Barry Scott wrote: > > html module is shipped with python 3.6.4. > > Only thing I can think of is that your PYTHONPATH is interfering in some > way. > > $ python3 > Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import html > >>> html > framework/Versions/3.6/lib/python3.6/html/__init__.py'> > >>> from html.parser import HTMLParser > >>> HTMLParser > > >>> import sys > >>> sys.path > ['', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', > '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', > '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', > '/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages'] > >>> > > Barry > > > On 12 Feb 2018, at 16:05, Gerrie Shults wrote: > > Before my original post, I looked up html.parser in the Python > documentation, and everything I saw indicated to me that it was already > installed. > > I have now looked again at the documentation and can find examples using > html.parser, but nothing that tells me how to install it. > > How do I install it? And how can I find what is already installed, and > what is available to install without having to download more? > > Thanks, > Gerrie Shults > > On Feb 11, 2018, at 18:59, ??? wrote: > > You should first install html.parser this error report is about html.parser > Then rerun pip command > > ???? iPhone > > ? 2018?2?12????5:32?Gerrie Shults ??? > > I?m trying to get the latest version of pip to use to install Flask. > > I have a fresh install of Python 3.6.4, and I executed "pip3 install -U > pip?, per the instructions from "https://pip.pypa.io/en/stable/installing/?, > and got the result below. > > Why isn?t html.parser available as part of the standard install? What do I > need to do to make this work? > > Thanks for any help. > > Gerrie Shults > > > > > $ pip3 install -U pip > Traceback (most recent call last): > File "/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3", line > 7, in > from pip import main > File "/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages/pip/__init__.py", line 28, in > from pip.vcs import git, mercurial, subversion, bazaar # noqa > File "/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages/pip/vcs/subversion.py", line 9, in > from pip.index import Link > File "/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages/pip/index.py", line 31, in > from pip.wheel import Wheel, wheel_ext > File "/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages/pip/wheel.py", line 39, in > from pip._vendor.distlib.scripts import ScriptMaker > File "/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages/pip/_vendor/distlib/scripts.py", line 14, in > > from .compat import sysconfig, detect_encoding, ZipFile > File "/Library/Frameworks/Python.framework/Versions/3.6/lib/ > python3.6/site-packages/pip/_vendor/distlib/compat.py", line 85, in > > from html.parser import HTMLParser > ModuleNotFoundError: No module named 'html.parser' > $ > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From kw at codebykevin.com Mon Feb 19 17:32:01 2018 From: kw at codebykevin.com (Kevin Walzer) Date: Mon, 19 Feb 2018 17:32:01 -0500 Subject: [Pythonmac-SIG] py2app error Message-ID: <441bdb6a-5bf9-c21a-d975-bdc12aad182e@codebykevin.com> A Tkinter app I am building on 10.13 with py2app 0.14 is crashing with this error: Traceback (most recent call last): ? File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/__boot__.py", line 98, in ??? _run() ? File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/__boot__.py", line 82, in _run ??? exec(compile(source, path, 'exec'), globals(), globals()) ? File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/QuickWho.py", line 8, in ??? from tkinter import * ? File "", line 961, in _find_and_load ? File "", line 950, in _find_and_load_unlocked ? File "", line 646, in _load_unlocked ? File "", line 616, in _load_backward_compatible ? File "tkinter/__init__.pyc", line 36, in ValueError: character U+6573552f is not in range [U+0000; U+10ffff] I am not certain of how to proceed. Please advise. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com From barry at barrys-emacs.org Wed Feb 21 14:46:36 2018 From: barry at barrys-emacs.org (Barry) Date: Wed, 21 Feb 2018 19:46:36 +0000 Subject: [Pythonmac-SIG] py2app error In-Reply-To: <441bdb6a-5bf9-c21a-d975-bdc12aad182e@codebykevin.com> References: <441bdb6a-5bf9-c21a-d975-bdc12aad182e@codebykevin.com> Message-ID: <6C44CF3E-2EC1-474E-A8C0-35D6CC6C34A1@barrys-emacs.org> > On 19 Feb 2018, at 22:32, Kevin Walzer wrote: > > A Tkinter app I am building on 10.13 with py2app 0.14 is crashing with this error: > > Traceback (most recent call last): > File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/__boot__.py", line 98, in > _run() > File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/__boot__.py", line 82, in _run > exec(compile(source, path, 'exec'), globals(), globals()) > File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/QuickWho.py", line 8, in > from tkinter import * > File "", line 961, in _find_and_load > File "", line 950, in _find_and_load_unlocked > File "", line 646, in _load_unlocked > File "", line 616, in _load_backward_compatible > File "tkinter/__init__.pyc", line 36, in > ValueError: character U+6573552f is not in range [U+0000; U+10ffff] Does the code work its not an app? I nothice that 6573552f looks a lot like 4 ascii chars. Is __init__.py corrupt? > > I am not certain of how to proceed. Please advise. > > -- > Kevin Walzer > Code by Kevin/Mobile Code by Kevin > http://www.codebykevin.com > http://www.wtmobilesoftware.com > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG