Yes, older versions or not the current ones are a pain a real pain. My issue is that I want to use Tensorflow and when you check the website, it says that is needs NVIDIA CUDA Toolkit 11.8 and cuDNN 8.6.0. TensorRT is optional but we’ll leave that out for now.
The reason It’s so frustrating that it doesn’t really matter how I install Tensorflow, it does not work.
I’ve tried it with a Python Virtual Environment, tried it in the Terminal etc. it does not wants to install it self and is displaying error.
(I’ll attach all my screenshots from not functioning installs at the End, as a little insight.)
Well this will be long but here we go:
- Setting up VM on UnRaid with Ubuntu 24.04 LTS
- Installing it with the recommended NVIDIA Proprietary Drivers (in my case 535)
Why? Since I installed Ubuntu for like 15 times now, I came to the realization, after a lot of googling, the going lower doesn’t really work on 24.04 so I’m letting it install 535 on install anyway.
- Updating Ubuntu to the current state.
- Checking with the ‘nvidia-smi’, ‘nvtop’ and ‘nvcc --version’ commands, if the NVIDIA side of things is installed correctly
Nvidia-smi usually works out of the box, hence it is installed with the Driver itself.
nvtop needs to be installed separately and then works just fine.
nvcc only works, if the CUDA-Toolkit is installed. Which is were the fun part starts:
- Tensorflow requieres NVIDIA CUDA Toolkit 11.8 which, based on this can be installed - Only Problem: when I run the command ‘sudo apt-get -y install cuda’ the errors are:
"
Errors were encountered while processing:
nvidia-dkms -520
cuda-drivers-520
cuda-drivers nvidia-driver-520
cuda-runtime- 11-8
cuda- 11-8
cuda-demo-suite- 11-8
cuda
E: Sub-process /us/bin/dpkg returned an error code (1)
"
It also throws errors in the process using dpkg which sometimes works and sometimes not. Weird.
6. The same is true for the cuDNN install: Using this and searching for 8.6.0 for 11.x, I download it and install it with gdebi or via Terminal - Result ?: As far as I can tell, it doesn’t work. The whole part of cuDNN is a bit of mystery to me cause I can’t get it to work either.
7. Round up: Everything else, when it comes to installing it, works. What throws me of is CUDA, CUDA Toolkit and cuDNN.
- Extra: Just for lols, I’m old yikes, I did try to install deepdoctection anyways regardless of the aforementioned errors and it did this:
"
Traceback (most recent call last):
File "/home/comcross/deepdoctection_env/lib/python3.12/site-packages/pip/_vendor/pypro 2vnc connec
main()
File "/home/comcross/deepdoctection_env/lib/python3.12/site-packages/pip/_vendor/pypro
Adressbuch
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comcross/deepdoctection_env/lib/python3.12/site-packages/pip/_vendor/pypro
return hook(config_settings)
ЛАААААААААААААААААЛАЛ
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/buil
return self._get_build_requires(config_settings, requirements=)
АААААААААААААААААААААААААААААААААААААААААААААААААААААААААЛ
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/buil
self.run_setup ()
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/buil
exec (code, locals())
File “«string>”, line 288, in ‹module>
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_in
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_dis
return run_commands (dist)
^^^^^^^^^^^^^^^^^^
File "/ tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_dis
dist.run_commands ()
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_dis
self.run_command (cmd)
File "/ tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/dist
super ().run_ command (command)
File "/ tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_dis
cd.ban/ote-butld.en-165fuat:/overta/11b/prthon3.12/stte-packaces/setuptools/com
|VNC Server-Adresse eingeben oder suchen
server.local:5900
File "/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/commanu,
File “/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py”, line 550, in run self.add_defaults()
File “/ tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py”, line 588, in add_defaults sdist.add_defaults(self)
File “/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py”, line 102, in add_defaults super ().add_defaults()
File “/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py”, line 250, in add_defaults self._add_defaults_ext()
File “/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py”, line 335, in _add_defaults_ext self.filelist.extend(build_ext.get_source_files())
File “«string»”, line 204, in get_source_files
File “/tmp/pip-build-env-165fvmfz/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py”, line 107, in getattr raise AttributeError (attr)
AttributeError: cython sources
Tend of outputl
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully. exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. (deepdoctection_env) comcross@comcross:~$
"
I haven’t seen anyone here try to do anything with OCR or deepdoctection for that matter, so there’s no real thread for this as of know and no one who’s able to replicate this and that’s a bit of a bummer.
Anyway, I hope this helps a bit to understand how I’ve tried things lately. Also: This has been done on Ubuntu 22.04 & 24.04.
Cheers & Thank you,
Alex’