Blender 2.81, requests module throws exception on import

Hi @brecht there, I just downloaded 2.81 to give it a try, our addon didn’t load, seems the python requests module is not able to import. I get the following traceback

PYTHON INTERACTIVE CONSOLE 3.7.4 (default, Aug 18 2019, 15:57:36)  [Clang 10.0.1 (clang-1001.0.46.4)]

Command History:     Up/Down Arrow
Cursor:              Left/Right Home/End
Remove:              Backspace/Delete
Execute:             Enter
Autocomplete:        Ctrl-Space
Zoom:                Ctrl +/-, Ctrl-Wheel
Builtin Modules:     bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf,         mathutils
Convenience Imports: from mathutils import *; from math import *
Convenience Variables: C = bpy.context, D = bpy.data

>>> import requests
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "/Applications/Blender_exp/2.81.x/Blender.app/Contents/Resources/2.81/python/lib/python3.7/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/Applications/Blender_exp/2.81.x/Blender.app/Contents/Resources/2.81/python/lib/python3.7/site-packages/urllib3/__init__.py", line 7, in <module>
from .connectionpool import (
  File "/Applications/Blender_exp/2.81.x/Blender.app/Contents/Resources/2.81/python/lib/python3.7/site-packages/urllib3/connectionpool.py", line 29, in <module>
from .packages.rfc3986.normalizers import normalize_host
ModuleNotFoundError: No module named 'urllib3.packages.rfc3986'

The particulars of my environment are
Macos 10.14.5, blender 2.81 build hash - 74d05eb71a0d

I am guessing this is not intentional, any ideas when it will be fixed? Shall I post a bug report?

Thanks!

James

Works OK on Linux daily build from 20-Aug.
If a fresh daily doesn’t fix the problem, a bug report is a good idea.

1 Like

Hi @stiv, awesome, thanks for the info :smiley: I’ll retry and report back.

The macOS build is managed by @akitula, he should probably take a look at this.

There was problem with Python and it’s modules few days, but latest build should have all good.

2 Likes

I can confirm that as of today, the problem has been fixed on my system, build hash 189aa32a3ac0, blender 2.81.3 on MacOS 10.14.5

Cheers guys :smiley: