question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blender 2.92 fails to install pip with get-pip.py

See original GitHub issue

I’m using Blender 2.92 with bundled Python on Ubuntu 18.04. When trying to Blender: Start, pip installation failed with following message:

Traceback (most recent call last):
  File "/home/chubei/.vscode/extensions/jacqueslucke.blender-development-0.0.13/pythonFiles/include/blender_vscode/external/get-pip.py", line 20890, in <module>
    main()
  File "/home/chubei/.vscode/extensions/jacqueslucke.blender-development-0.0.13/pythonFiles/include/blender_vscode/external/get-pip.py", line 197, in main
    bootstrap(tmpdir=tmpdir)
  File "/home/chubei/.vscode/extensions/jacqueslucke.blender-development-0.0.13/pythonFiles/include/blender_vscode/external/get-pip.py", line 175, in bootstrap
    sys.exit(pip._internal.main(args))
  File "/tmp/tmp0qhd0cin/pip.zip/pip/_internal/__init__.py", line 78, in main
  File "/tmp/tmp0qhd0cin/pip.zip/pip/_internal/cli/base_command.py", line 184, in main
  File "/tmp/tmp0qhd0cin/pip.zip/pip/_internal/cli/base_command.py", line 76, in _build_session
  File "/opt/blender-2.92.0-linux64/2.92/python/lib/python3.7/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not int

It looks like some problem within get-pip.py.

I later solved this problem using ensurepip, which comes with the bundled Python.

@JacquesLucke Would it better to try ensurepip before get-pip.py in this extension? I’ll be happy to make a PR if you find it acceptable.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
stjseidelcommented, Apr 21, 2021

image Thanks, @schroef, that solved it for me.

0reactions
schroefcommented, Apr 30, 2021

Yes @stjseidel i did that but not for all users

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Pip for Blender's bundled Python?
First of all, pip is not part of Python so it doesn't come by default with Blender. It has to be installed for...
Read more >
T71856 No longer able to install pip on 2.81
Exact steps for others to reproduce the error. In windows terminal jump into folder: F:\Blender\blender-2.81-windows64\2.81\python\bin and run: python.exe ...
Read more >
Can't install with pip (on windows, in blender) #667 - GitHub
This is the error report(cmake is already installed): ... \\Downloads\\blender-2.92.0-7bab87c119f4-windows64\\2.92\\python\\bin\\python.
Read more >
Installing Python packages with pip in Blender on Windows 10
We can install additional python module packages to Blender, which are not installed by default, with pip. However, if we use Windows 10, ......
Read more >
Not able to install "pip" - Stack Overflow
Download the source file. pip-18.1.tar.gz; Extract the file. in command prompt run command : python setup.py install. pip is installed now.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found