Blend File Utils "SyntaxError: invalid syntax" when trying to Pack Blend to Archive #47976
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
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 project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#47976
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
OS X 10.6.8
NVIDIA GeForce 320M
Blender Version
Broken: 2.77 22a2853
Short description of error
I tested out the new Blend File Utils add-on today and ran into a syntax error when I tried to use the "Pack Blend to Archive" feature.
The console shows this:
Exact steps for others to reproduce the error
pack_to_archive_test.packed.blend
Changed status to: 'Open'
Added subscriber: @quantumanomaly
I can't redo this bug, both in 2.77 release and in current master, using ArchLinux, (
872f12f7a7
).Could someone else test this on OSX?
Added subscriber: @mont29
Cannot reproduce either here on linux… And even though this is a convoluted dict comprehension, I see nothing wrong with the syntax!
@quantumanomaly what is your reported python version (either in console at blender startup, or by typing:
…in Blender's py console)?
Added subscriber: @Sergey
It is totally reproduceable on OSX. Here's system info for those who wonders: system-info.txt
Just don't use confusing syntax ;)
@Bastien Montagne, my Python version is 2.6.1 (I guess I should probably update). Btw, it didn't work typing sys.version, but typing python -V in Terminal worked.
Hey, wanted to let you know that after updating to Python 3.5.1 it's working just fine! Case closed. :-)
Closed as duplicate of blender/blender#46623
This is caused by
bpy.app.binary_path_python
pointing to the wrong Python version.Arg!!! no, not closed at all :P
I was asking to type those py commands in Blender's python console (one of its editors types), not in system terminal. ;)
Anyway, now I’m totally confused. 2.x python won’t work at all with Blender (simply won’t start), it absolutely needs 3.5. Thing is, this is supposed to be shipped with blender… And yet, @Sergey (which system-info.txt reports expected 3.5.1) can reproduce the bug, while you say installing external py 3.5.1 fixed it for you… Something is definitively wrong with OSX package/installation!
@Sergey: that comprehension is totally valid and clear, the “chained” double for loop makes it a bit hard to read at first, that’s all. And afaik, it’s in py3 since the beginning (and even in 2.7 from https://www.python.org/dev/peps/pep-0274/ ) - but not 2.6…
In fact, I think I have an idea: can you please report what typing
bpy.app.binary_path_python
in blender py console reports to you? I have a feeling you’ll get OSX system python, and not Blender's one… ;)meh, can ignore above comment now :P