flathub / org.blender.Blender

https://flathub.org/apps/details/org.blender.Blender
17 stars 26 forks source link

Missing Python requests module #6

Closed brechtvl closed 6 years ago

brechtvl commented 6 years ago

Official Blender releases are bundled with the Python requests module, which some bundled and third party addons rely on. This module appears to be missing from the flatpak version and causes errors:

Originally reported here: https://developer.blender.org/T53981

Bundled Python modules are: idna, chardet, urllib3, certifi, requests and numpy, see: https://developer.blender.org/diffusion/B/browse/master/build_files/build_environment/cmake/python_site_packages.cmake https://developer.blender.org/diffusion/B/browse/master/build_files/build_environment/cmake/versions.cmake

bochecha commented 6 years ago

I had voluntarily left out those Python modules when I flatpaked Blender, because I didn't know how Blender addons work and decided I'd figure it out later.

Seems we now reached that "later" time, so thanks for the report. 🙂

I assume there is no dependency management when installing an addon? Do addons expect those modules to be present? Does Blender upstream consider those modules to be part of the API they provide for addons?

brechtvl commented 6 years ago

There is no dependency management. These modules are considered to be part of the API provided for addons, and expected to be available. Bundled addons like Blender ID and Sketchfab use the requests module.

bochecha commented 6 years ago

Ok, thanks for confirming. 🙂

bochecha commented 6 years ago

@brechtvl Only partially related, is this what was used to make the Blender 2.79 official upstream builds?

https://developer.blender.org/diffusion/B/browse/master/build_files/cmake/config/blender_release.cmake;8ef39d5c882896bd75e0d4d17fb3e3d4710fc768

Or is it another file here:

https://developer.blender.org/diffusion/B/browse/master/build_files/cmake/config/;8ef39d5c882896bd75e0d4d17fb3e3d4710fc768

brechtvl commented 6 years ago

It's blender_release.cmake.

bochecha commented 6 years ago

Thanks @brechtvl for all the information.

This should now be fixed as soon as the build finishes: https://flathub.org/builds/#/builders/1/builds/2038

brechtvl commented 6 years ago

Great, thanks!

EmJayAu commented 6 years ago

Hiya Bochecha, I'm the culprit of reporting the prob to Brecht. Just a quicky... Is build 2038 already available on flathub? Cause I checked and it doesn't state the current build...??? Let us know, would ya?? Thanx a lot, Cheers, Mate!! PS: I'm on LinuxMint Cinnamon "Sylvia"

bochecha commented 6 years ago

@EmJayAu I just updated to the latest Blender on Flathub, and it does have the Python modules you were missing:

$ ls -1 /var/lib/flatpak/app/org.blender.Blender/current/active/files/lib/python3.5/site-packages/
certifi
certifi-2017.7.27.1-py3.5.egg-info
chardet
chardet-3.0.2-py3.5.egg-info
idna
idna-2.6-py3.5.egg-info
numpy
numpy-1.10.4-py3.5.egg-info
PyOpenColorIO.so
requests
requests-2.18.4-py3.5.egg-info
urllib3
urllib3-1.22-py3.5.egg-info
EmJayAu commented 6 years ago

Hiya Bochecha, Thanx a million, Mate!! Have a G'Day!! Cheers,

EmJay