Comments (6)
Well, if it does any help... I tried to comment the 35th line in formats.py, which contains:
PIL_FORMATS = {
'PNG': _PILFormat(magic=b'\x89\x50\x4e\x47', tests=_png_tests),
# 'JPG': _PILFormat(magic=b'\xff\xd8', tests=_jpg_tests),
}
Then it passed the tests and get installed with no crashes. PNG previews working as intended with no issues, but obviously it does not solves anything, simply a hint toward the solution.
from 3dn-bip.
Update:
It seems that there is no issues to preview JPG files either. I did some tests in the older python 3.8 environment and jpg test passed, but _run_test function crashes within Blender's versions which is 3.10 and presumably 3.9, so my initial thoughts that this might be in a range of this particular function and the way it being tested by.
from 3dn-bip.
@FidoAnh @tingjoybits Here is what Anthony Aragues says:
following up on pip issues, has to do with version of python
/snap/blender/current/3.1/python/bin/python3.10 -m pip install --upgrade pip
/snap/blender/current/3.1/python/bin/python3.10 -m pip install Pillow==8.4.0 --user
appears to be the fix
Does this information help?
Would love to merge a PR, if someone is willing to contribute
from 3dn-bip.
Upgrading Pillow to the latest version (currently 9.2.0) also seems to fix the issue (although thorough further testing is needed).
BTW, your first line in the fix should read something like:
/path/to/blenders/python/python3.10 -m ensurepip --upgrade --user
from 3dn-bip.
OK, unfortunately I've mixed up the Pillow versions. So only the downgrade works...
Interestingly the problem does not occur running the test formats functions, with blender's python but outside of blender.
from 3dn-bip.
@bonjorno7 do you think we can integrate this fix/workaround in the BIP code directly?
from 3dn-bip.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dn-bip.