[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Change by Alex :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Alex  added the comment:

Uninstalled 3.8 and installed straight to 3.9 using home brew, this fixed the 
issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Alex  added the comment:

What would you recommend to fix this? removing the package? I have a suspicion 
on which package it is.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42399] Error upon pip usage.

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

Upon closer investigation something or someone has replaces and monkey patched 
the stdlib function subprocess.run() with code from the 3rd party library 
"run". The "run" package is not part of Python's stdlib.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42399] Error upon pip usage.

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/__init__.py"
 looks suspicious. It's a 3rd party package that is somehow injected into the 
code.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Alex  added the comment:

I tried contacting the pip team and they said it is likely a python issue due 
to the stdlib stuff being opened.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


New submission from Alex :

MacOS catalina 10.15.6
Python -version 3.9 although experienced on 3.8 too.
pip -version 20.2.4

Any time I send a command using pip including; pip install, pip freeze, pip 
list etc. I get this error.



Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/pip", line 8, in 

sys.exit(main())
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/cli/main.py",
 line 73, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/commands/__init__.py",
 line 104, in create_command
module = importlib.import_module(module_path)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py",
 line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 783, in exec_module
  File "", line 219, in _call_with_frames_removed
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/commands/list.py",
 line 9, in 
from pip._internal.cli.req_command import IndexGroupCommand
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/cli/req_command.py",
 line 22, in 
from pip._internal.req.constructors import (
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/req/__init__.py",
 line 10, in 
from .req_install import InstallRequirement
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/req/req_install.py",
 line 10, in 
import uuid
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/uuid.py", line 
57, in 
_AIX = platform.system() == 'AIX'
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", 
line 891, in system
return uname().system
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", 
line 857, in uname
processor = _syscmd_uname('-p', '')
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", 
line 613, in _syscmd_uname
output = subprocess.check_output(('uname', option),
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/__init__.py",
 line 145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/__init__.py",
 line 121, in create_process
shlex.split(command),
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 311, in split
return list(lex)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 300, in __next__
token = self.get_token()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 109, in get_token
raw = self.read_token()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'

--
components: Library (Lib)
messages: 381339
nosy: alki284
priority: normal
severity: normal
status: open
title: Error upon pip usage.
type: crash
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com