Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Python requests module #6

Closed
brechtvl opened this issue Feb 4, 2018 · 10 comments
Closed

Missing Python requests module #6

brechtvl opened this issue Feb 4, 2018 · 10 comments
Labels

Comments

@brechtvl
Copy link

brechtvl commented Feb 4, 2018

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

@TingPing TingPing added the bug label Feb 4, 2018
@bochecha
Copy link
Contributor

bochecha commented Feb 6, 2018

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
Copy link
Author

brechtvl commented Feb 6, 2018

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
Copy link
Contributor

bochecha commented Feb 6, 2018

Ok, thanks for confirming. 🙂

bochecha added a commit that referenced this issue Feb 6, 2018
The builds provided by upstream provide those modules, and consider them
part of the API they provide to addon authors.

Fixes #6
bochecha added a commit that referenced this issue Feb 6, 2018
The builds provided by upstream provide those modules, and consider them
part of the API they provide to addon authors.

Fixes #6
bochecha added a commit that referenced this issue Feb 6, 2018
Many addons, both builtin and third-party, require accessing the network
to function.

They usually do this through the `requests` Python module, which was
added in the previous commit.

Fixes #6
@bochecha
Copy link
Contributor

bochecha commented Feb 6, 2018

@brechtvl
Copy link
Author

brechtvl commented Feb 6, 2018

It's blender_release.cmake.

@bochecha
Copy link
Contributor

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
Copy link
Author

Great, thanks!

@EmJayAu
Copy link

EmJayAu commented Feb 10, 2018

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
Copy link
Contributor

@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
Copy link

EmJayAu commented Feb 10, 2018

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

EmJay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants