Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello PluginCafe!
Is it possible to use 3rd part APIs, e.g. Google Drive API, inside C4D's python plugin?
There is a pip install code on Google Developers webpage: pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
Can I simply install it directly inside pyp file or import it by utilizing Niklas' code?
Hi @merkvilson first of all pip and Niklas localimport module is completely two different things.
Now how to install pip?
cmd
c4dpy get-pip.py
c4dpy -m pip install numpy
With that's said we do not provide support for 3rd party modules, so if it does not work with Cinema 4D Python environment, we can't help you.
Cheers, Maxime.
thanks for the answer Maxim from Maxon
I was following this url from Niklas, but I guessed it was a bit old
Also it is important to add to the env path this directory : C:\Program Files\MAXON\Cinema 4D R20\resource\modules\python\libs\win64\python27.vs2008.framework\Scripts which is the place where the get-pip.py have installed the new exec.
It has perfectly installed numpy-1.16.2
Question : do we need absolutely c4dpy.exe ? (as I managed to run during my previous test with the python.exe)
No you don't necessary need c4dpy, it's just more convenient and easy to find for everyone and for all future releases.
@m_adam Just a little addition on macOS you need to put: c4dpy/Contents/MacOS/c4dpy get-pip.py into the terminal, to link to the real executable. the simple c4dpy gives command not found.
c4dpy/Contents/MacOS/c4dpy get-pip.py
c4dpy
command not found
Cheers, Lasse
Hi, this doesn't seem to work anymore.
./c4dpy.app/Contents/MacOS/c4dpy -m pip install numpy Collecting numpy Downloading numpy-1.19.4.zip (7.3 MB) (null) |████████████████████████████████| 7.3 MB 5.3 MB/s (null) (null) Installing build dependencies ... (null)error ERROR: Command errored out with exit status 2: command: '/Applications/Maxon Cinema 4D R23/./c4dpy.app/Contents/MacOS/c4dpy' '/Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/site-packages/pip' install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-7f2h5t11/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools<49.2.0' 'wheel<=0.35.1' 'Cython>=0.29.21,<3.0' cwd: None Complete output (1 lines): /Applications/Maxon Cinema 4D R23/./c4dpy.app/Contents/MacOS/c4dpy: can't open file 'pip': is a directory (file:///Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/site-packages/pip) ---------------------------------------- ERROR: Command errored out with exit status 2: '/Applications/Maxon Cinema 4D R23/./c4dpy.app/Contents/MacOS/c4dpy' '/Applications/Maxon Cinema 4D R23/resource/modules/python/libs/python37.macos.framework/lib/python3.7/site-packages/pip' install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-7f2h5t11/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools<49.2.0' 'wheel<=0.35.1' 'Cython>=0.29.21,<3.0' Check the logs for full command output. [1] 48826 segmentation fault sudo ./c4dpy.app/Contents/MacOS/c4dpy -m pip install numpy
Hi see Cinema 4d R23 MacOs Pip Install Broken.