[osx] dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python

2020-12-04 Thread Noah

Hi there,

Anybody know how to fix this issue on a mac?

❯ /usr/local/bin/python
dyld: Library not loaded: 
/usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python

  Referenced from: /usr/local/bin/python
  Reason: image not found
[1]32209 abort  /usr/local/bin/python

Cheers
--
https://mail.python.org/mailman/listinfo/python-list


Re: help(list[int]) → TypeError

2020-12-04 Thread Julio Di Egidio
On Thursday, 3 December 2020 at 19:28:19 UTC+1, Paul Bryan wrote:
> Is this the correct behavior? 
> 
> Python 3.9.0 (default, Oct 7 2020, 23:09:01) 
> [GCC 10.2.0] on linux 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> help(list[int]) 
> Traceback (most recent call last): 
> File "", line 1, in  
> File "/usr/lib/python3.9/_sitebuiltins.py", line 103, in __call__ 
> return pydoc.help(*args, **kwds) 
> File "/usr/lib/python3.9/pydoc.py", line 2001, in __call__ 
> self.help(request) 
> File "/usr/lib/python3.9/pydoc.py", line 2060, in help 
> else: doc(request, 'Help on %s:', output=self._output) 
> File "/usr/lib/python3.9/pydoc.py", line 1779, in doc 
> pager(render_doc(thing, title, forceload)) 
> File "/usr/lib/python3.9/pydoc.py", line 1772, in render_doc 
> return title % desc + '\n\n' + renderer.document(object, name) 
> File "/usr/lib/python3.9/pydoc.py", line 473, in document 
> if inspect.isclass(object): return self.docclass(*args) 
> File "/usr/lib/python3.9/pydoc.py", line 1343, in docclass 
> (str(cls.__name__) for cls in type.__subclasses__(object) 
> TypeError: descriptor '__subclasses__' for 'type' objects doesn't apply to a 
> 'types.GenericAlias' object 
> >>> 
> 
> I would have expected the output to the identical to help(list).

As I get it from the docs (*), these new generics still only work in type 
hinting contexts,
and I'd rather have expected a more useful error message: but, whether that is 
temporary
(possibly a plain bug, as in a forgotten case) or, instead, just "how things 
are", I wouldn't
know... might be a good question for Python developers.

(*) As in this one for a starter, but see also PEP 585:
"*In type annotations* you can now use ...", my emphasis.


Julio
-- 
https://mail.python.org/mailman/listinfo/python-list


Fw: See example

2020-12-04 Thread Arthur R. Ott
   Sent from my BlackBerry - the most secure mobile device

   From: art...@gmail.com
   Sent: December 4, 2020 10:40 AM
   To: python-list@python.org
   Subject: See example

   Microsoft Windows [Version 10.0.19042.630]
   (c) 2020 Microsoft Corporation. All rights reserved.
   I am sure you can help me
   From the Windows10 command line, either in Admin mode or otherwise this is
   the error message I get. I want to program a Microprocessor for the first
   time and I am already stuck. I have spent a lot of time on both the
   internet and YouTube following different solutions. This entry worked two
   days ago and then the next day didn't. The "help" worksand the program
   appears to be operating normally.
   What can you suggest
   C:\WINDOWS\system32>python
   Python 3.9.0a2 (tags/v3.9.0a2:6202d85, Dec 18 2019, 22:54:12) [MSC v.1916
   64 bit (AMD64)] on win32
   Type "help", "copyright", "credits" or "license" for more information.
   >>> pip --version
   Traceback (most recent call last):
     File "", line 1, in 
   NameError: name 'pip' is not defined
   >>> python --version
   Traceback (most recent call last):
     File "", line 1, in 
   NameError: name 'python' is not defined
   >>>
   Cheers
        Art
   To God goes the glory for creation
      Not to chance
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fw: See example

2020-12-04 Thread dn via Python-list

On 05/12/2020 07:57, Arthur R. Ott wrote:
...


Microsoft Windows [Version 10.0.19042.630]
(c) 2020 Microsoft Corporation. All rights reserved.
I am sure you can help me
From the Windows10 command line, either in Admin mode or otherwise this is
the error message I get. I want to program a Microprocessor for the first
time and I am already stuck. I have spent a lot of time on both the
internet and YouTube following different solutions. This entry worked two
days ago and then the next day didn't. The "help" worksand the program
appears to be operating normally.
What can you suggest
C:\WINDOWS\system32>python
Python 3.9.0a2 (tags/v3.9.0a2:6202d85, Dec 18 2019, 22:54:12) [MSC v.1916
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> pip --version
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'pip' is not defined
>>> python --version
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'python' is not defined



Try the two commands from the command-line (rather than from within the 
Python interpreter/REPL).

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: help(list[int]) → TypeError

2020-12-04 Thread Paul Bryan
Thanks, will bring it to the dev list.

On Fri, 2020-12-04 at 07:07 -0800, Julio Di Egidio wrote:
> On Thursday, 3 December 2020 at 19:28:19 UTC+1, Paul Bryan wrote:
> > Is this the correct behavior? 
> > 
> > Python 3.9.0 (default, Oct 7 2020, 23:09:01) 
> > [GCC 10.2.0] on linux 
> > Type "help", "copyright", "credits" or "license" for more
> > information. 
> > > > > help(list[int]) 
> > Traceback (most recent call last): 
> > File "", line 1, in  
> > File "/usr/lib/python3.9/_sitebuiltins.py", line 103, in __call__ 
> > return pydoc.help(*args, **kwds) 
> > File "/usr/lib/python3.9/pydoc.py", line 2001, in __call__ 
> > self.help(request) 
> > File "/usr/lib/python3.9/pydoc.py", line 2060, in help 
> > else: doc(request, 'Help on %s:', output=self._output) 
> > File "/usr/lib/python3.9/pydoc.py", line 1779, in doc 
> > pager(render_doc(thing, title, forceload)) 
> > File "/usr/lib/python3.9/pydoc.py", line 1772, in render_doc 
> > return title % desc + '\n\n' + renderer.document(object, name) 
> > File "/usr/lib/python3.9/pydoc.py", line 473, in document 
> > if inspect.isclass(object): return self.docclass(*args) 
> > File "/usr/lib/python3.9/pydoc.py", line 1343, in docclass 
> > (str(cls.__name__) for cls in type.__subclasses__(object) 
> > TypeError: descriptor '__subclasses__' for 'type' objects doesn't
> > apply to a 'types.GenericAlias' object 
> > > > > 
> > 
> > I would have expected the output to the identical to help(list).
> 
> As I get it from the docs (*), these new generics still only work in
> type hinting contexts,
> and I'd rather have expected a more useful error message: but,
> whether that is temporary
> (possibly a plain bug, as in a forgotten case) or, instead, just "how
> things are", I wouldn't
> know... might be a good question for Python developers.
> 
> (*) As in this one for a starter, but see also PEP 585:
> "*In type annotations* you can now use ...", my emphasis.
>  >
> 
> Julio

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fw: See example

2020-12-04 Thread Dan Stromberg
On Fri, Dec 4, 2020 at 12:01 PM dn via Python-list 
wrote:

> On 05/12/2020 07:57, Arthur R. Ott wrote:
> ...
>
> > Microsoft Windows [Version 10.0.19042.630]
> > (c) 2020 Microsoft Corporation. All rights reserved.
> > I am sure you can help me
> > From the Windows10 command line, either in Admin mode or otherwise
> this is
> > the error message I get. I want to program a Microprocessor for the
> first
> > time and I am already stuck. I have spent a lot of time on both the
> > internet and YouTube following different solutions. This entry
> worked two
> > days ago and then the next day didn't. The "help" worksand the
> program
> > appears to be operating normally.
> > What can you suggest
> > C:\WINDOWS\system32>python
> > Python 3.9.0a2 (tags/v3.9.0a2:6202d85, Dec 18 2019, 22:54:12) [MSC
> v.1916
> > 64 bit (AMD64)] on win32
> > Type "help", "copyright", "credits" or "license" for more
> information.
> > >>> pip --version
> > Traceback (most recent call last):
> >   File "", line 1, in 
> > NameError: name 'pip' is not defined
> > >>> python --version
> > Traceback (most recent call last):
> >   File "", line 1, in 
> > NameError: name 'python' is not defined
>
>
> Try the two commands from the command-line (rather than from within the
> Python interpreter/REPL).
>

IOW, run pip or python from a command.com or powershell or cygwin bash.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [osx] dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python

2020-12-04 Thread Mats Wichmann

On 12/4/20 7:15 AM, Noah wrote:

Hi there,

Anybody know how to fix this issue on a mac?

❯ /usr/local/bin/python
dyld: Library not loaded: 
/usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python 


   Referenced from: /usr/local/bin/python
   Reason: image not found
[1]    32209 abort  /usr/local/bin/python


Looks like you're using Python installed via Homebrew ('Cellar' being 
the hint), perhaps hit up that project for ideas?  It looks like the 
install is inconsistent somehow.



--
https://mail.python.org/mailman/listinfo/python-list


Re: Fw: See example

2020-12-04 Thread DL Neil via Python-list

On 05/12/2020 09:17, Dan Stromberg wrote:


On Fri, Dec 4, 2020 at 12:01 PM dn via Python-list 
mailto:python-list@python.org>> wrote:


On 05/12/2020 07:57, Arthur R. Ott wrote:
...

 >     Microsoft Windows [Version 10.0.19042.630]
 >     (c) 2020 Microsoft Corporation. All rights reserved.
 >     I am sure you can help me
 >     From the Windows10 command line, either in Admin mode or
otherwise this is
 >     the error message I get. I want to program a
Microprocessor for the first
 >     time and I am already stuck. I have spent a lot of time on
both the
 >     internet and YouTube following different solutions. This
entry worked two
 >     days ago and then the next day didn't. The "help" worksand
the program
 >     appears to be operating normally.
 >     What can you suggest
 >     C:\WINDOWS\system32>python
 >     Python 3.9.0a2 (tags/v3.9.0a2:6202d85, Dec 18 2019, 22:54:12)
[MSC v.1916
 >     64 bit (AMD64)] on win32
 >     Type "help", "copyright", "credits" or "license" for more
information.
 >     >>> pip --version
 >     Traceback (most recent call last):
 >       File "", line 1, in 
 >     NameError: name 'pip' is not defined
 >     >>> python --version
 >     Traceback (most recent call last):
 >       File "", line 1, in 
 >     NameError: name 'python' is not defined


Try the two commands from the command-line (rather than from within the
Python interpreter/REPL).


IOW, run pip or python from a command.com  or 
powershell or cygwin bash.



Yes, thank you @Dan, I don't use MS-Win!

The fact that the two (version) commands are being typed in response to 
a ">>>" prompt indicates that Python is already running, yet they are 
BASH/Windows command-line/DOS-box commands!

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list