`bpy` cannot find the startup scripts dir

When building Blender as a Python module lately I have been having a weird issue where if I copy the 2.91 scripts dir into the correct place (used to be you had to copy it net to the python executable), it complains that

Color management: using fallback mode for management
Color management: Error could not find role data role.
BLT_lang_init: 'locale' data path for translations not found, continuing
Color management: scene view "Filmic" not found, setting default "Standard".
blf_load_font_default: 'fonts' data path not found for 'droidsans.ttf', will not be able to display text
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
bpy: couldn't find 'scripts/modules', blender probably wont start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
F1125 18:42:17.941478  1136 utilities.cc:346] Check failed: !IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
    @   00007FF91A479C4B  google::LogMessage::Flush
    @   00007FF91A4792A9  google::LogMessageFatal::~LogMessageFatal
    @   00007FF91A47DBF3  google::glog_internal_namespace_::InitGoogleLoggingUtilities
    @   00007FF91944991C  main_python_enter
    @   00007FF919B41BB4  dealloc_obj_dealloc
    @   00007FF9656C404B  _PyObject_GenericSetAttrWithDict
    @   00007FF9656EC483  PyModule_AddObject
    @   00007FF9656EE0E0  _PyNamespace_New
    @   00007FF9656EE23F  _PyNamespace_New
    @   00007FF9656EE1A5  _PyNamespace_New
    @   00007FF9656B54E0  _PyMethodDef_RawFastCallDict
    @   00007FF9656CBF5F  _PyEval_EvalFrameDefault
    @   00007FF9656BC0FC  _PyEval_EvalCodeWithName
    @   00007FF9656BB95C  _PyArg_UnpackStack
    @   00007FF9656C92C8  _PyEval_EvalFrameDefault
    @   00007FF9656BB841  _PyArg_UnpackStack
    @   00007FF9656C8484  _PyEval_EvalFrameDefault
    @   00007FF9656BB841  _PyArg_UnpackStack
    @   00007FF9656C8A6E  _PyEval_EvalFrameDefault
    @   00007FF9656BB841  _PyArg_UnpackStack
    @   00007FF9656C8A6E  _PyEval_EvalFrameDefault
    @   00007FF9656BB841  _PyArg_UnpackStack
    @   00007FF9656C8A6E  _PyEval_EvalFrameDefault
    @   00007FF9656BB294  _PyFunction_FastCallDict
    @   00007FF9656B4587  _PyObject_CallMethodIdObjArgs
    @   00007FF9656B444D  _PyObject_CallMethodIdObjArgs
    @   00007FF9656F5036  PyBytes_Fini
    @   00007FF9656B3FE0  PyImport_ImportModuleLevelObject
    @   00007FF9656E9CA7  PyImport_ImportModuleLevel
    @   00007FF919B44FBD  BPy_init_modules
    @   00007FF919B41728  BPY_python_start

Has anyone else been having this issue lately? It used to work fine; I just got back into building Blender again as I saw 2.91 had an official release but am struggling to get the Python module to build for some reason.

I don’t have time to look my self but if i were to troubleshoot this, i’d probably use procmon to see in what folder it is actually looking for the scripts and see why it is looking there.

1 Like

Why is it linking to an EVIL corporation website?
Are people forgetting that Blender is a Free Software project?

There is no need for such behavior, please tone it down a bit.

3 Likes

I think I’m a bit too noobish to use procmon.exe to full effect; could you offer any advice? There is a lot of information that I don’t need and when I put a filter on it says somewhere on the order of 5 hours to complete the filter.

My temporary solution to looking into this was to add some printouts to path_util.c's BLI_path_join function. Oddly, after a rebuild and importing once more, it seems to be looking for everything in the %LOCALAPPDATA% and %APPDATA% locations.

Not sure what changed this since trying to trace back a file path through the code is, for some reason, very complex. I’m not actually seeing any plaintext paths? Rather, Blender exchanges a bunch of enums around like BLENDER_SYSTEM_SCRIPTS which really doesn’t mean much to me. Where are these paths defined at?

Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bpy
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\colormanagement
datafiles\colormanagement
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\colormanagement
datafiles\colormanagement
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\colormanagement
Color management: using fallback mode for management
Color management: Error could not find role data role.
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\locale
datafiles\locale
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\locale
datafiles\locale
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\locale
BLT_lang_init: 'locale' data path for translations not found, continuing
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\studiolights/studio\
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\studiolights/world\
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\studiolights/matcap\
datafiles\studiolights/studio\
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\studiolights/studio\
datafiles\studiolights/studio\
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\studiolights/studio\
datafiles\studiolights/world\
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\studiolights/world\
datafiles\studiolights/world\
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\studiolights/world\
datafiles\studiolights/matcap\
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\studiolights/matcap\
datafiles\studiolights/matcap\
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\studiolights/matcap\
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\config
Color management: scene view "Filmic" not found, setting default "Standard".
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\fonts
datafiles\fonts
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\fonts
datafiles\fonts
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\fonts
blf_load_font_default: 'fonts' data path not found for 'droidsans.ttf', will not be able to display text
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\fonts
datafiles\fonts
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\fonts
datafiles\fonts
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\fonts
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\datafiles\fonts
datafiles\fonts
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\datafiles\fonts
datafiles\fonts
C:\ProgramData\Blender Foundation\Blender\2.92\datafiles\fonts
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
config
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\config
C:\Users\TGubs\AppData\Roaming\Blender Foundation\Blender\2.92\config

scripts\modules
C:\ProgramData\Blender Foundation\Blender\2.92\scripts\modules
scripts\modules
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\scripts\modules
bpy: couldn't find 'scripts/modules', blender probably wont start.

scripts\freestyle
C:\ProgramData\Blender Foundation\Blender\2.92\scripts\freestyle
scripts\freestyle
C:\Users\TGubs\AppData\Local\Programs\Python\Python37\2.92\scripts\freestyle
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
F1128 13:00:25.981539 17748 utilities.cc:346] Check failed: !IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
    @   00007FFAA5B5025B  google::LogMessage::Flush
    @   00007FFAA5B4F8B9  google::LogMessageFatal::~LogMessageFatal
    @   00007FFAA5B54203  google::glog_internal_namespace_::InitGoogleLoggingUtilities
    @   00007FFAA575214B  libmv_initLogging
    @   00007FFAA4B09B3C  main_python_enter
    @   00007FFAA51FBF44  dealloc_obj_dealloc
    @   00007FFB1348404B  _PyObject_GenericSetAttrWithDict
    @   00007FFB134AC483  PyModule_AddObject
    @   00007FFB134AE0E0  _PyNamespace_New
    @   00007FFB134AE23F  _PyNamespace_New
    @   00007FFB134AE1A5  _PyNamespace_New
    @   00007FFB134754E0  _PyMethodDef_RawFastCallDict
    @   00007FFB1348BF5F  _PyEval_EvalFrameDefault
    @   00007FFB1347C0FC  _PyEval_EvalCodeWithName
    @   00007FFB1347B95C  _PyArg_UnpackStack
    @   00007FFB134892C8  _PyEval_EvalFrameDefault
    @   00007FFB1347B841  _PyArg_UnpackStack
    @   00007FFB13488484  _PyEval_EvalFrameDefault
    @   00007FFB1347B841  _PyArg_UnpackStack
    @   00007FFB13488A6E  _PyEval_EvalFrameDefault
    @   00007FFB1347B841  _PyArg_UnpackStack
    @   00007FFB13488A6E  _PyEval_EvalFrameDefault
    @   00007FFB1347B841  _PyArg_UnpackStack
    @   00007FFB13488A6E  _PyEval_EvalFrameDefault
    @   00007FFB1347B294  _PyFunction_FastCallDict
    @   00007FFB13474587  _PyObject_CallMethodIdObjArgs
    @   00007FFB1347444D  _PyObject_CallMethodIdObjArgs
    @   00007FFB134B5036  PyBytes_Fini
    @   00007FFB13473FE0  PyImport_ImportModuleLevelObject
    @   00007FFB134A9CA7  PyImport_ImportModuleLevel
    @   00007FFAA51FF35C  BPy_init_modules
    @   00007FFAA51FBAB8  BPY_python_start

Actually maybe it’s platform_win32.cmake line 732; that was modified 2 months ago on https://developer.blender.org/D9189 to say:

726   if(DEFINED ENV{BLENDER_USER_SCRIPTS})
727     message(STATUS "Including user scripts from environment 728 BLENDER_USER_SCRIPTS=$ENV{BLENDER_USER_SCRIPTS}")
728     set(USER_SCRIPTS_ROOT "$ENV{BLENDER_USER_SCRIPTS}")
729   else()
730     message(STATUS "Including user scripts from the profile folder")
731     # Include the user scripts from the profile folder in the blender_python_user_scripts project.
732     set(USER_SCRIPTS_ROOT "$ENV{appdata}/blender 734 foundation/blender/${BLENDER_VERSION}/scripts")
733   endif()

@TylerGubala hi, while I’m not on windows, it would be good to keep it working on all platforms.

I know it’s tedious, but could you confirm the exact commit that caused the problem? (using git-bisect, or manually bisecting).

It seems you know the approximate time this broke, so it shouldn’t take too long.

If we know the commit that caused the problem, it might not be so difficult to resolve the issue.

I did a quick lite bpy build, seems to load just fine with no issues?

edit: even regular bpy build seems just fine

do you have BLENDER_USER_SCRIPTS env var set by any chance?

No, that’s not set when I look at my environment variables.

I’m not sure what is causing the issue; it used to work fine in a venv…

Need some more time to look at it. Lately have been too busy to really check.

I only just got back to this but I can install bpy in my system Python.

C:\Users\TGubs>py -3.7-64
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bpy
>>>

But any attempt to use bpy only in a venv fails. You have to install the scripts 2.93 folder into the system Python first.

PS C:\Users\TGubs\Code\Python\blenderpy-test> py -3.7-64 -m venv venv
PS C:\Users\TGubs\Code\Python\blenderpy-test> venv\Scripts\activate
(venv) PS C:\Users\TGubs\Code\Python\blenderpy-test> py -m pip install -U pip setuptools wheel
Collecting pip
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.5 MB 1.1 MB/s
Collecting setuptools
  Downloading setuptools-51.3.3-py3-none-any.whl (786 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 786 kB 1.7 MB/s
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Installing collected packages: pip, setuptools, wheel
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-20.1.1
  Attempting uninstall: setuptools
    Found existing installation: setuptools 47.1.0
    Uninstalling setuptools-47.1.0:
      Successfully uninstalled setuptools-47.1.0
Successfully installed pip-20.3.3 setuptools-51.3.3 wheel-0.36.2
(venv) PS C:\Users\TGubs\Code\Python\blenderpy-test> py -m pip install "C:\Users\TGubs\Code\Python\blenderpy\dist\bpy-2.93a0-cp37-cp37m-win_amd64.whl"
Processing c:\users\tgubs\code\python\blenderpy\dist\bpy-2.93a0-cp37-cp37m-win_amd64.whl
Collecting numpy==1.19.3
  Using cached numpy-1.19.3-cp37-cp37m-win_amd64.whl (13.2 MB)
Installing collected packages: numpy, bpy
Successfully installed bpy-2.93a0 numpy-1.19.3
(venv) PS C:\Users\TGubs\Code\Python\blenderpy-test> bpy_post_install
Found Blender scripts directory at c:\users\tgubs\code\python\blenderpy-test\venv\Scripts\2.93
c:\users\tgubs\code\python\blenderpy-test\venv\Scripts\2.93 already direct child of c:\users\tgubs\code\python\blenderpy-test\venv\scripts
Configuration complete, enjoy using Blender as a Python module!
(venv) PS C:\Users\TGubs\Code\Python\blenderpy-test> py
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bpy
Color management: using fallback mode for management
Color management: Error could not find role data role.
BLT_lang_init: 'locale' data path for translations not found, continuing
Color management: scene view "Filmic" not found, setting default "Standard".
blf_load_font_default: 'fonts' data path not found for 'droidsans.ttf', will not be able to display text
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
bpy: couldn't find 'scripts/modules', blender probably wont start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7283 pyrna_srna_ExternalType: failed to find 'bpy_types' module
F0118 12:19:05.196142 20344 utilities.cc:346] Check failed: !IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
    @   00007FFA9D79DF5B  google::LogMessage::Flush
    @   00007FFA9D79D5B9  google::LogMessageFatal::~LogMessageFatal
    @   00007FFA9D7A1F03  google::glog_internal_namespace_::InitGoogleLoggingUtilities
    @   00007FFA9CE6E894  dealloc_obj_dealloc
    @   00007FFADA6A404B  _PyObject_GenericSetAttrWithDict
    @   00007FFADA6CC483  PyModule_AddObject
    @   00007FFADA6CE0E0  _PyNamespace_New
    @   00007FFADA6CE23F  _PyNamespace_New
    @   00007FFADA6954E0  _PyMethodDef_RawFastCallDict
    @   00007FFADA6ABF5F  _PyEval_EvalFrameDefault
    @   00007FFADA69C0FC  _PyEval_EvalCodeWithName
    @   00007FFADA69B95C  _PyArg_UnpackStack
    @   00007FFADA6A92C8  _PyEval_EvalFrameDefault
    @   00007FFADA69B841  _PyArg_UnpackStack
    @   00007FFADA6A8484  _PyEval_EvalFrameDefault
    @   00007FFADA69B841  _PyArg_UnpackStack
    @   00007FFADA6A8A6E  _PyEval_EvalFrameDefault
    @   00007FFADA69B841  _PyArg_UnpackStack
    @   00007FFADA6A8A6E  _PyEval_EvalFrameDefault
    @   00007FFADA69B294  _PyFunction_FastCallDict
    @   00007FFADA694587  _PyObject_CallMethodIdObjArgs
    @   00007FFADA69444D  _PyObject_CallMethodIdObjArgs
    @   00007FFADA6D5036  PyBytes_Fini
    @   00007FFADA693FE0  PyImport_ImportModuleLevelObject
    @   00007FFADA6C9CA7  PyImport_ImportModuleLevel
    @   00007FFA9CE71D72  BPy_init_modules
    @   00007FFA9CE6E408  BPY_python_start

What’s bizarre is that once the 2.93 Scripts directory is in the system Python path, the venv Python is able to find the startup scripts.

PS C:\Users\TGubs\Code\Python\blenderpy-test> venv\Scripts\activate
(venv) PS C:\Users\TGubs\Code\Python\blenderpy-test> py
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bpy
>>>

In previous versions, I had to move the 2.93 (or whatever) folder sibling to the current Python executable, so in the venv folder for instance. That made (some) sense to me since different venv should be able to have support for different versions of bpy to be installed. Better yet if it looked in the Scripts directory.

I will need to look deeper and try to figure out what caused this.