AttributeError: module 'sys' has no attribute 'real_prefix'
See original GitHub issue%23 Description of problem Leave a comment…
BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN
%23 Configuration
VSCode: 1.37.0-insider PIO IDE: v1.8.0 System: Darwin, 18.6.0, x64
%23 Exception
Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv
Error: Virtualenv Create: /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/__init__.py:15: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils%3F
warnings.warn("The virtualenv distutils package at %s appears to be in the same location as the system distutils%3F")
Traceback (most recent call last):
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 2462, in <module>
main()
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 762, in main
symlink=options.symlink,
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 998, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 1198, in install_python
fix_lib64(lib_dir, symlink)
File "/Users/I831533/.platformio/.cache/tmp-44075xpi6kuqZ9hdZ/virtualenv-16.1.0/src/virtualenv.py", line 1620, in fix_lib64
if not [p for p in distutils.sysconfig.get_config_vars().values() if isinstance(p, basestring) and "lib64" in p]:
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/__init__.py", line 105, in sysconfig_get_config_vars
real_vars = old_get_config_vars(*args)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/sysconfig.py", line 511, in get_config_vars
srcdir = os.path.dirname(get_makefile_filename())
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/sysconfig.py", line 258, in get_makefile_filename
lib_dir = get_python_lib(plat_specific=0, standard_lib=1)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/__init__.py", line 94, in sysconfig_get_python_lib
prefix = sys.real_prefix
AttributeError: module 'sys' has no attribute 'real_prefix'
Using base prefix '/usr/local/bin/../Cellar/python/3.7.4/bin/../Frameworks/Python.framework/Versions/3.7'
at t.value (/Users/I831533/.vscode-insiders/extensions/platformio.platformio-ide-1.8.0/node_modules/platformio-node-helpers/dist/webpack:/platformio-node-helpers/src/installer/stages/platformio-core.js:271:21)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
AttributeError: module 'sys' has no attribute 'original_stdout'
I imported sys but when I use it, it says: AttributeError: module 'sys' has no attribute 'original_stdout'.
Read more >AttributeError: module 'sys' has no attribute 'append' , Pytest ...
The sys module has no append attribute just as the error message indicates. What are you hoping to achieve with that line of...
Read more >package 'python3.10-venv' has no installation candidate
Package 'python3-venv' has no installation candidate. I'm currently trying to install Flask for testing a simple web page. Unfortunately i got the following ......
Read more >[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >mozilla-release: changeset 610743 ... - Mercurial
+* Fixed issue with readline module path on pypy and OSX (Pull #374). ... on + ``sys.real_prefix``) which is reported to help building...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Python 3 has built in virtual env. You can use it via
python -m venv -hIt seems that your Homebrew’s Python is broken. Please re-install it.