Error performing BAT pack: File is compressed with ZStandard, install the zstandard
module to support this. #104255
Labels
No Label
Good First Issue
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/flamenco#104255
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating System(s): Linux (Fedora 35)
Flamenco Version
Is Broken: 3.2
Worked OK: Never
Short description of error
Whenever I try to render anything with Flamenco (even the default Blender scene of a single cube), I immediately get:
Error packing with BAT: File is compressed with ZStandard, install the
zstandard
module to support this.Error performing BAT pack: File is compressed with ZStandard, install the
zstandard
module to support this.Error: Error performing BAT pack: File is compressed with ZStandard, install the
zstandard
module to support this.zstandard is installed, both on my local machine and the server, both through pip and through the system packages python3-zstandard, python3-zstd, and zstd. I can run python3 and import "zstandard" with no problems.
Exact steps for others to reproduce the error
Heck if I know!
ED: Another related ticket:
#104243 (comment)
ED: My Blender version is 3.2.1 (the most recent available with Fedora 35).
Thanks for the clear bug report, that helps :)
This is strange. I suspect that it has something to do with the packaging of Blender on Fedora. I'm not running Fedora myself, though, so we'll have to do a bit of digging.
This is good to know. Now we have to figure out whether Blender-on-Fedora uses the system Python, and whether it can import zstandard.
In Blender itself, in the Python console, could you try
import zstandard
? And what does it show when you typesys.executable
?Weird, I replied here, ,but I don't see my reply? Anyway, that was a great idea - it does throw an error (unlike from a normal python shell!)
Here's my system packages:
libzstd-1.5.2-2.fc35.x86_64
python3-zstandard-0.17.0-1.fc35.x86_64
zstd-1.5.2-2.fc35.x86_64
python3-zstd-1.4.5.1-5.fc35.x86_64
And my pip packages:
Name: zstandard
Version: 0.21.0
Summary: Zstandard bindings for Python
Home-page: https://github.com/indygreg/python-zstandard
Author: Gregory Szorc
Author-email: gregory.szorc@gmail.com
License: BSD
Location: /home/meme/.local/lib/python3.10/site-packages
Requires:
Required-by: bpy
Name: zstd
Version: 1.4.5.1
Summary: ZSTD Bindings for Python
Home-page: https://github.com/sergey-dryabzhinsky/python-zstd
Author: Sergey Dryabzhinsky, Anton Stuk
Author-email: sergey.dryabzhinsky@gmail.com
License: BSD
Location: /usr/lib64/python3.10/site-packages
Requires:
Required-by:
Yup, Blender comes with its own Python.
This is the issue -- Blender tries to load the system zstandard module instead of its own.
and the system version is different from the version Blender expects.
What is the output of
blender -b --python-expr 'import pprint, sys; pprint.pprint(sys.path)'
on your system? On mine it's this:[user@host ~]$ blender -b --python-expr 'import pprint, sys; pprint.pprint(sys.path)'
Blender 3.2.1 (hash unknown built 2022-07-10 00:00:00)
BLT_lang_init: 'locale' data path for translations not found, continuing
Read prefs: /home/user/.config/blender/3.2/config/userpref.blend
['/usr/share/blender/3.2/scripts/startup',
'/usr/share/blender/3.2/scripts/modules',
'/usr/lib64/python310.zip',
'/usr/lib64/python3.10',
'/usr/lib64/python3.10/lib-dynload',
'/usr/lib64/python3.10/site-packages',
'/usr/lib/python3.10/site-packages',
'/usr/share/blender/3.2/scripts/freestyle/modules',
'/usr/share/blender/3.2/scripts/addons/modules',
'/home/user/.config/blender/3.2/scripts/addons/modules',
'/usr/share/blender/3.2/scripts/addons',
'/home/user/.config/blender/3.2/scripts/addons']
Blender quit
Whoops, didn't mean to close it!
This is what's going on -- this Blender build doesn't use Blender's own Python, but uses the system Python instead. Apparently they didn't test well with the
zstandard
module. I can recommend downloading Blender from https://www.blender.org/download/ instead.I'm going to close this issue. Feel free to open it if it turns out to be actually a problem with Flamenco, and not with any particular Blender build.