Version 2.77 package for OS X contains non-modifiable __pycache__ directories #47875

Closed
opened 2016-03-21 08:59:20 +01:00 by Hannes Juutilainen · 14 comments

System Information
OS X 10.11

Blender Version
Broken: 2.77
Worked: 2.76

Short description of error
The latest version 2.77 seems to include pycache directories for all Python libraries and all of them have dr-xr-xr-x permissions (the owner can not write). Is this intentional? As a result the blender.app or blenderPlayer.app can not be removed unless the permissions are changed (by running chmod -R u+w). Please note that moving the files to trash by using Finder and the emptying the trash seems to work.

Exact steps for others to reproduce the error
Download the OS X version from the main download site. Unarchive it and try to remove the Blender directory from command line by running rm -rf <path_to_blender>.

**System Information** OS X 10.11 **Blender Version** Broken: 2.77 Worked: 2.76 **Short description of error** The latest version 2.77 seems to include __pycache__ directories for all Python libraries and all of them have dr-xr-xr-x permissions (the owner can not write). Is this intentional? As a result the blender.app or blenderPlayer.app can not be removed unless the permissions are changed (by running `chmod -R u+w`). Please note that moving the files to trash by using Finder and the emptying the trash seems to work. **Exact steps for others to reproduce the error** Download the OS X version from the main download site. Unarchive it and try to remove the Blender directory from command line by running `rm -rf <path_to_blender>`.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @hjuutilainen

Added subscriber: @hjuutilainen
Member

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger
Member

If the files in those directories change the application signature will not be valid.
We need to fix this for next release by moving the python files and caches to a more appropriate path.

If the files in those directories change the application signature will not be valid. We need to fix this for next release by moving the python files and caches to a more appropriate path.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Wasn't pre-compiling __pycache__ intentional?, AFAIK these shouldn't have to be re-generated.

Wasn't pre-compiling `__pycache__` intentional?, AFAIK these shouldn't have to be re-generated.
Member

They are not regenerated and we generated them intentional.
The permissions on the folders they are in are non writable so they should not be regenerated ever as blender would not be able to write to them anyway.

We should ship the python stuff and extract that to ~/Library/application support on first run and that way keep it out of blender.app's bundle to work around these signing rules better.

They are not regenerated and we generated them intentional. The permissions on the folders they are in are non writable so they should not be regenerated ever as blender would not be able to write to them anyway. We should ship the python stuff and extract that to ~/Library/application support on first run and that way keep it out of blender.app's bundle to work around these signing rules better.

Thank you for explaining this. When we deploy Blender to lab machines (or any other OS X machine) the files get copied to /Applications directory and the owner is set to root:wheel recursively. So in mass deployment situations Blender has never had a chance to write inside its own application bundle.

Would these cache files be recreated in some user space temp location if they were missing from the app bundle and user did not have write access to the folder?

Thank you for explaining this. When we deploy Blender to lab machines (or any other OS X machine) the files get copied to /Applications directory and the owner is set to root:wheel recursively. So in mass deployment situations Blender has never had a chance to write inside its own application bundle. Would these cache files be recreated in some user space temp location if they were missing from the app bundle and user did not have write access to the folder?

Would these cache files be recreated in some user space temp location if they were missing from the app bundle and user did not have write access to the folder?

No, they just won't get created in that case - It will still work, just a little slower startup since Python modules won't be cached.

> Would these cache files be recreated in some user space temp location if they were missing from the app bundle and user did not have write access to the folder? No, they just won't get created in that case - It will still work, just a little slower startup since Python modules won't be cached.

Added subscriber: @Sergey

Added subscriber: @Sergey
Martijn Berger was assigned by Sergey Sharybin 2016-03-22 13:02:43 +01:00

So it is a real issue to be addressed or more like a TODO?

So it is a real issue to be addressed or more like a TODO?
Martijn Berger was unassigned by Dalai Felinto 2019-12-23 16:37:11 +01:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2020-02-04 11:07:44 +01:00

I'm closing this, as there doesn't seem to be any complaint about this based on how we build/package Blender nowadays.

I'm closing this, as there doesn't seem to be any complaint about this based on how we build/package Blender nowadays.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#47875
No description provided.