Make update failing

Hi,

I have this issue when I try to run make.bat update, for a few days now :

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2019
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00001754 (most recent call first):

Is it something wrong my python version ? Or is it something else ?

Thanks !

likely interrupted svn update, try running

svn cleanup followed by svn update in your win64_vc15 folder

1 Like

I don’t think I get the latest build, even if it doesn’t give any error, but now during the update I get this:

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2019

Python not found in external libraries, updating to latest version

Updating 'F:\prog\blender_git\lib\win64_vc15':
At revision 62740.
python not found in lib folder

Can this cause any issue ?

The location of python changed a little, run

git pull once in the folder your normally run make update in and you should be all good again

2 Likes

It works perfectly now, thanks a lot !

Yes, same issue here. That was the solution! Thanks!

1 Like

Hi,

I am failing same issue most like here. But there’s a subtle difference, and I can’t solve the problem from the above:

D:\Code\blender--git\blender-master>make update
"D:\Code\blender--git\blender-master\\..\lib\win64_vc15\python\39\bin\python.exe"
No explicit msvc version requested, autodetecting version.
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.1.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2022
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
  File "D:\Code\blender--git\lib\win64_vc15\python\310\lib\io.py", line 54, in <module>
ImportError: cannot import name 'text_encoding' from 'io' (unknown location)
D:\Code\blender--git\blender-master>

I’ve tried to re-download lib, but it isn’t work for there :worried:.

likely incomplete checkout, try running make svnfix

I tried this command, but it’s the same issue there when make update

what’s the output of make svnfix ?

D:\Code\blender--git\blender-master>make svnfix
"D:\Code\blender--git\blender-master\\..\lib\win64_vc15\python\39\bin\python.exe"
No explicit msvc version requested, autodetecting version.
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.1.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2022
Starting cleanup in "D:\Code\blender--git\blender-master\..\lib\win64_vc15".
update '.':
version 62861。
Cleanup complete

i’d try a git pull followed by make update and see if that resolves things.

Unfortunate. It is same output as above.

Here is the output of run git pull followed by make update and run make update again.

`Preformatted text`D:\Code\blender--git\blender-master>git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=<remote>/<branch> master


D:\Code\blender--git\blender-master>make update
"D:\Code\blender--git\blender-master\\..\lib\win64_vc15\python\39\bin\python.exe"
No explicit msvc version requested, autodetecting version.
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.1.0
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Compiler Detection successful, detected VS2022
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
  File "D:\Code\blender--git\lib\win64_vc15\python\310\lib\io.py", line 54, in <module>
ImportError: cannot import name 'text_encoding' from 'io' (unknown location)
D:\Code\blender--git\blender-master>

Looks like you’re on a local branch? what’s the output of git status ?

Here is output
D:\Code\blender–git\blender-master>git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        CMakeLists.txt
        COPYING
        GNUmakefile
        build_files/
        doc/
        extern/
        intern/
        make.bat
        readme.rst
        release/
        source/
        tests/

nothing added to commit but untracked files present (use "git add" to track)

I clone the repository using download zip on GitHub (cause git clone command is only 50kb/s on my network). Is that the cause of the issue?

yes you need a full clone for make update to work, you cannot update from a .zip file

I started to clone the repository earlier and just now all the files were cloned. I tried the git pull command and got the following output:

D:\Code\blender--git\blender>git pull
remote: Enumerating objects: 36, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 19 (delta 16), reused 19 (delta 16), pack-reused 0
Unpacking objects: 100% (19/19), 7.97 KiB | 84.00 KiB/s, done.
From https://github.com/blender/blender
   5d38b13e61f..d67f9820b8f  master     -> origin/master
Updating 5d38b13e61f..d67f9820b8f
Fast-forward
 release/scripts/startup/bl_ui/space_view3d.py      |   4 +
 source/blender/blenlib/BLI_math_geom.h             |  20 +-
 source/blender/blenlib/intern/math_geom.c          |  38 ++-
 source/blender/editors/sculpt_paint/CMakeLists.txt |   1 +
 .../editors/sculpt_paint/curves_sculpt_3d_brush.cc | 232 +++++++++++++
 .../editors/sculpt_paint/curves_sculpt_comb.cc     | 367 ++++++++++++++++-----
 .../editors/sculpt_paint/curves_sculpt_intern.hh   |  23 ++
 7 files changed, 581 insertions(+), 104 deletions(-)
 create mode 100644 source/blender/editors/sculpt_paint/curves_sculpt_3d_brush.cc

And then I run make svnfix, make update, But it’s same output as above. In here, the lib folder is download by previous make update, is that the cause of the issue? Should I download it again?

In addition, when I first used make update, the output shows a warning tell me Python not found even though my environment variables have Python in them. And then make.bat download two version Python: 39, 310 in lib folder, and output same issue as above. But then I seem to have compiled the sln project in the build folder directly with VS and succeeded. I didn’t want to make rebulid Blender until I had a problem rendering something in Cycles, and then I found this post.

I’m unsure what you have done, you’re pretty far off our official build instructions, happy to hear you managed to get building though.

1 Like