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

File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden #1017

Closed
monajalal opened this issue Dec 4, 2023 · 3 comments
Labels
question Question, not yet a bug ;)

Comments

@monajalal
Copy link

monajalal commented Dec 4, 2023

Describe the issue

(blenderproc) mona@ada:~/BlenderProc$ blenderproc quickstart
Warning: Changed install path from /home_local/mona... to /home/mona..., there is no /home_local/ on this machine.
Downloading blender from https://download.blender.org/release/Blender3.5/blender-3.5.1-linux-x64.tar.xz
Traceback (most recent call last):
  File "/home/mona/anaconda3/envs/blenderproc/bin/blenderproc", line 33, in <module>
    sys.exit(load_entry_point('blenderproc', 'console_scripts', 'blenderproc')())
  File "/home/mona/BlenderProc/blenderproc/command_line.py", line 136, in cli
    blender_run_path, major_version = InstallUtility.make_sure_blender_is_installed(custom_blender_path,
  File "/home/mona/BlenderProc/blenderproc/python/utility/InstallUtility.py", line 168, in make_sure_blender_is_installed
    raise e
  File "/home/mona/BlenderProc/blenderproc/python/utility/InstallUtility.py", line 152, in make_sure_blender_is_installed
    file_tmp = urlretrieve(url, None, DownloadProgressBar())[0]
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 241, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/home/mona/anaconda3/envs/blenderproc/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

Minimal code example

No response

Files required to run the code

(blenderproc) mona@ada:~$ uname -a
Linux ada 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov  2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
(blenderproc) mona@ada:~$ lsb_release -a
LSB Version:	core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
(blenderproc) mona@ada:~$ conda list
# packages in environment at /home/mona/anaconda3/envs/blenderproc:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
blenderproc               2.6.1                     dev_0    <develop>
bzip2                     1.0.8                h7b6447c_0  
ca-certificates           2023.08.22           h06a4308_0  
certifi                   2023.11.17               pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
contourpy                 1.2.0                    pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
fonttools                 4.46.0                   pypi_0    pypi
h5py                      3.10.0                   pypi_0    pypi
idna                      3.6                      pypi_0    pypi
kiwisolver                1.4.5                    pypi_0    pypi
ld_impl_linux-64          2.38                 h1181459_1  
libffi                    3.4.4                h6a678d5_0  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
libstdcxx-ng              11.2.0               h1234567_1  
libuuid                   1.41.5               h5eee18b_0  
matplotlib                3.8.2                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0  
numpy                     1.26.2                   pypi_0    pypi
openssl                   3.0.12               h7f8727e_0  
packaging                 23.2                     pypi_0    pypi
pillow                    10.1.0                   pypi_0    pypi
pip                       23.3.1          py310h06a4308_0  
progressbar               2.5                      pypi_0    pypi
pyparsing                 3.1.1                    pypi_0    pypi
python                    3.10.13              h955ad1f_0  
python-dateutil           2.8.2                    pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
readline                  8.2                  h5eee18b_0  
requests                  2.31.0                   pypi_0    pypi
setuptools                68.0.0          py310h06a4308_0  
six                       1.16.0                   pypi_0    pypi
sqlite                    3.41.2               h5eee18b_0  
tk                        8.6.12               h1ccaba5_0  
tzdata                    2023c                h04d1e81_0  
urllib3                   2.1.0                    pypi_0    pypi
wheel                     0.41.2          py310h06a4308_0  
xz                        5.4.2                h5eee18b_0  
zlib                      1.2.13               h5eee18b_0  

Expected behavior

run the quickstart script

(blenderproc) mona@ada:~/BlenderProc$ python
Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] on linux

BlenderProc version

commit f2e77c01dd657fdb396bad5813658554d712762f

(base) mona@ada:~$ whereis blender
blender: /usr/bin/blender /usr/share/blender /usr/share/man/man1/blender.1.gz

I noticed in this issue #1006 (comment) it is mentioned that this PR will resolve the issue #1008

Please let me know how I should proceed. Thank you!

@monajalal monajalal added the question Question, not yet a bug ;) label Dec 4, 2023
@monajalal
Copy link
Author

monajalal commented Dec 4, 2023

I was on a time crunch to make progress towards this issue and while this issue is not resolved, here's a way to set the path to something you downloaded on your system. Hence, I won't close the issue now (and please feel free to do so when you make progress on PR)

(blenderproc) mona@ada:~/BlenderProc$ blenderproc quickstart --custom-blender-path ~/Downloads/blender-3.5.1-linux-x64/
Using blender in /home/mona/Downloads/blender-3.5.1-linux-x64/
'blenderproc quickstart' is an alias for 'blenderproc run /home/mona/BlenderProc/blenderproc/scripts/quickstart.py'
Using temporary directory: /dev/shm/blender_proc_21061d0d36c4486e9579d2b562a8f729
Blender 3.5.1 (hash e1ccd9d4a1d3 built 2023-04-24 23:31:15)
Looking in links: /tmp/tmphjvtgk47
Requirement already satisfied: setuptools in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (65.5.0)
Requirement already satisfied: pip in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (22.3.1)
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: pip in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (22.3.1)
Collecting pip
  Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 19.0 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
      Successfully uninstalled pip-22.3.1
Successfully installed pip-23.3.1
Installing pip package wheel None
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting wheel
  Downloading wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
Downloading wheel-0.42.0-py3-none-any.whl (65 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.4/65.4 kB 7.0 MB/s eta 0:00:00
Installing collected packages: wheel
  WARNING: The script wheel is installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed wheel-0.42.0
Installing pip package pyyaml 5.1.2
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pyyaml==5.1.2
  Downloading PyYAML-5.1.2.tar.gz (265 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 265.0/265.0 kB 11.5 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyyaml
  Building wheel for pyyaml (setup.py) ... done
  Created wheel for pyyaml: filename=PyYAML-5.1.2-cp310-cp310-linux_x86_64.whl size=44116 sha256=2af2082a0f0bdb9a5e65582a48e9922261813e88c5aa956a1374587eca69f6d6
  Stored in directory: /tmp/pip-ephem-wheel-cache-3dj37p6b/wheels/1c/77/3e/dcf9cc5e235189dedcf5f1736a14caaac20267a5bb846c8ce1
Successfully built pyyaml
Installing collected packages: pyyaml
Successfully installed pyyaml-5.1.2
Installing pip package imageio 2.9.0
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting imageio==2.9.0
  Downloading imageio-2.9.0-py3-none-any.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 22.4 MB/s eta 0:00:00
Requirement already satisfied: numpy in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from imageio==2.9.0) (1.23.5)
Collecting pillow (from imageio==2.9.0)
  Downloading Pillow-10.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (9.5 kB)
Downloading Pillow-10.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 24.6 MB/s eta 0:00:00
Installing collected packages: pillow, imageio
  WARNING: The scripts imageio_download_bin and imageio_remove_bin are installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed imageio-2.9.0 pillow-10.1.0
Installing pip package gitpython 3.1.18
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting gitpython==3.1.18
  Downloading GitPython-3.1.18-py3-none-any.whl (170 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 170.1/170.1 kB 9.7 MB/s eta 0:00:00
Collecting gitdb<5,>=4.0.1 (from gitpython==3.1.18)
  Downloading gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython==3.1.18)
  Downloading smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)
Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 293.6 MB/s eta 0:00:00
Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Installing collected packages: smmap, gitdb, gitpython
Successfully installed gitdb-4.0.11 gitpython-3.1.18 smmap-5.0.1
Installing pip package scikit-image 0.19.2
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting scikit-image==0.19.2
  Downloading scikit_image-0.19.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 42.5 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.17.0 in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from scikit-image==0.19.2) (1.23.5)
Collecting scipy>=1.4.1 (from scikit-image==0.19.2)
  Downloading scipy-1.11.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 kB 369.1 MB/s eta 0:00:00
Collecting networkx>=2.2 (from scikit-image==0.19.2)
  Downloading networkx-3.2.1-py3-none-any.whl.metadata (5.2 kB)
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from scikit-image==0.19.2) (10.1.0)
Requirement already satisfied: imageio>=2.4.1 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from scikit-image==0.19.2) (2.9.0)
Collecting tifffile>=2019.7.26 (from scikit-image==0.19.2)
  Downloading tifffile-2023.9.26-py3-none-any.whl.metadata (30 kB)
Collecting PyWavelets>=1.1.1 (from scikit-image==0.19.2)
  Downloading pywavelets-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.0 kB)
Collecting packaging>=20.0 (from scikit-image==0.19.2)
  Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Downloading networkx-3.2.1-py3-none-any.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 28.7 MB/s eta 0:00:00
Downloading packaging-23.2-py3-none-any.whl (53 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 309.5 MB/s eta 0:00:00
Downloading pywavelets-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 24.4 MB/s eta 0:00:00
Downloading scipy-1.11.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.4/36.4 MB 24.1 MB/s eta 0:00:00
Downloading tifffile-2023.9.26-py3-none-any.whl (222 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.9/222.9 kB 55.8 MB/s eta 0:00:00
Installing collected packages: tifffile, scipy, PyWavelets, packaging, networkx, scikit-image
  WARNING: The scripts lsm2bin, tiff2fsspec, tiffcomment and tifffile are installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script skivi is installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed PyWavelets-1.5.0 networkx-3.2.1 packaging-23.2 scikit-image-0.19.2 scipy-1.11.4 tifffile-2023.9.26
Installing pip package pypng 0.0.20
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pypng==0.0.20
  Downloading pypng-0.0.20-py3-none-any.whl (70 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.5/70.5 kB 7.0 MB/s eta 0:00:00
Installing collected packages: pypng
Successfully installed pypng-0.0.20
Installing pip package scipy 1.11.3
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting scipy==1.11.3
  Downloading scipy-1.11.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 kB 6.5 MB/s eta 0:00:00
Requirement already satisfied: numpy<1.28.0,>=1.21.6 in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from scipy==1.11.3) (1.23.5)
Downloading scipy-1.11.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.4/36.4 MB 28.6 MB/s eta 0:00:00
Installing collected packages: scipy
  Attempting uninstall: scipy
    Found existing installation: scipy 1.11.4
    Uninstalling scipy-1.11.4:
      Successfully uninstalled scipy-1.11.4
Successfully installed scipy-1.11.3
Installing pip package matplotlib 3.5.1
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting matplotlib==3.5.1
  Downloading matplotlib-3.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.9/11.9 MB 30.3 MB/s eta 0:00:00
Collecting cycler>=0.10 (from matplotlib==3.5.1)
  Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib==3.5.1)
  Downloading fonttools-4.46.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (156 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.2/156.2 kB 101.9 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1 (from matplotlib==3.5.1)
  Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (6.4 kB)
Requirement already satisfied: numpy>=1.17 in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from matplotlib==3.5.1) (1.23.5)
Requirement already satisfied: packaging>=20.0 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from matplotlib==3.5.1) (23.2)
Requirement already satisfied: pillow>=6.2.0 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from matplotlib==3.5.1) (10.1.0)
Collecting pyparsing>=2.2.1 (from matplotlib==3.5.1)
  Downloading pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib==3.5.1)
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 80.5 MB/s eta 0:00:00
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib==3.5.1)
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.46.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 32.9 MB/s eta 0:00:00
Downloading kiwisolver-1.4.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 35.8 MB/s eta 0:00:00
Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.1/103.1 kB 427.0 MB/s eta 0:00:00
Installing collected packages: six, pyparsing, kiwisolver, fonttools, cycler, python-dateutil, matplotlib
  WARNING: The scripts fonttools, pyftmerge, pyftsubset and ttx are installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed cycler-0.12.1 fonttools-4.46.0 kiwisolver-1.4.5 matplotlib-3.5.1 pyparsing-3.1.1 python-dateutil-2.8.2 six-1.16.0
Installing pip package pytz 2021.1
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pytz==2021.1
  Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 510.8/510.8 kB 6.9 MB/s eta 0:00:00
Installing collected packages: pytz
Successfully installed pytz-2021.1
Installing pip package h5py 3.6.0
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting h5py==3.6.0
  Downloading h5py-3.6.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 24.6 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.14.5 in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from h5py==3.6.0) (1.23.5)
Installing collected packages: h5py
Successfully installed h5py-3.6.0
Installing pip package pillow 8.3.2
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting Pillow==8.3.2
  Downloading Pillow-8.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 20.9 MB/s eta 0:00:00
Installing collected packages: Pillow
  Attempting uninstall: Pillow
    Found existing installation: Pillow 10.1.0
    Uninstalling Pillow-10.1.0:
      Successfully uninstalled Pillow-10.1.0
Successfully installed Pillow-8.3.2
Installing pip package opencv-contrib-python 4.5.5.64
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting opencv-contrib-python==4.5.5.64
  Downloading opencv_contrib_python-4.5.5.64-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (66.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.7/66.7 MB 23.5 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.21.2 in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from opencv-contrib-python==4.5.5.64) (1.23.5)
Installing collected packages: opencv-contrib-python
Successfully installed opencv-contrib-python-4.5.5.64
Installing pip package scikit-learn 1.0.2
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting scikit-learn==1.0.2
  Downloading scikit_learn-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 26.5/26.5 MB 33.2 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.14.6 in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from scikit-learn==1.0.2) (1.23.5)
Requirement already satisfied: scipy>=1.1.0 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from scikit-learn==1.0.2) (1.11.3)
Collecting joblib>=0.11 (from scikit-learn==1.0.2)
  Downloading joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn==1.0.2)
  Downloading threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB)
Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.2/302.2 kB 50.9 MB/s eta 0:00:00
Downloading threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Installing collected packages: threadpoolctl, joblib, scikit-learn
Successfully installed joblib-1.3.2 scikit-learn-1.0.2 threadpoolctl-3.2.0
Installing pip package python-dateutil 2.8.2
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: python-dateutil==2.8.2 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (2.8.2)
Requirement already satisfied: six>=1.5 in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from python-dateutil==2.8.2) (1.16.0)
Installing pip package rich 12.6.0
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting rich==12.6.0
  Downloading rich-12.6.0-py3-none-any.whl (237 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 237.5/237.5 kB 5.0 MB/s eta 0:00:00
Collecting commonmark<0.10.0,>=0.9.0 (from rich==12.6.0)
  Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.1/51.1 kB 306.7 MB/s eta 0:00:00
Collecting pygments<3.0.0,>=2.6.0 (from rich==12.6.0)
  Downloading pygments-2.17.2-py3-none-any.whl.metadata (2.6 kB)
Downloading pygments-2.17.2-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 26.2 MB/s eta 0:00:00
Installing collected packages: commonmark, pygments, rich
  WARNING: The script cmark is installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script pygmentize is installed in '/home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed commonmark-0.9.1 pygments-2.17.2 rich-12.6.0
Installing pip package trimesh 3.21.5
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting trimesh==3.21.5
  Downloading trimesh-3.21.5-py3-none-any.whl (680 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 680.8/680.8 kB 24.2 MB/s eta 0:00:00
Requirement already satisfied: numpy in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from trimesh==3.21.5) (1.23.5)
Installing collected packages: trimesh
Successfully installed trimesh-3.21.5
Installing pip package pyrender 0.1.45
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pyrender==0.1.45
  Downloading pyrender-0.1.45-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 26.1 MB/s eta 0:00:00
Collecting freetype-py (from pyrender==0.1.45)
  Downloading freetype_py-2.4.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 65.3 MB/s eta 0:00:00
Requirement already satisfied: imageio in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from pyrender==0.1.45) (2.9.0)
Requirement already satisfied: networkx in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from pyrender==0.1.45) (3.2.1)
Requirement already satisfied: numpy in /home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages (from pyrender==0.1.45) (1.23.5)
Requirement already satisfied: Pillow in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from pyrender==0.1.45) (8.3.2)
Collecting pyglet>=1.4.10 (from pyrender==0.1.45)
  Downloading pyglet-2.0.10-py3-none-any.whl.metadata (8.5 kB)
Collecting PyOpenGL==3.1.0 (from pyrender==0.1.45)
  Downloading PyOpenGL-3.1.0.zip (2.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 54.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: scipy in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from pyrender==0.1.45) (1.11.3)
Requirement already satisfied: six in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from pyrender==0.1.45) (1.16.0)
Requirement already satisfied: trimesh in /home/mona/Downloads/blender-3.5.1-linux-x64/custom-python-packages/lib/python3.10/site-packages (from pyrender==0.1.45) (3.21.5)
Downloading pyglet-2.0.10-py3-none-any.whl (858 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 858.3/858.3 kB 59.2 MB/s eta 0:00:00
Building wheels for collected packages: PyOpenGL
  Building wheel for PyOpenGL (setup.py) ... done
  Created wheel for PyOpenGL: filename=PyOpenGL-3.1.0-py3-none-any.whl size=1745193 sha256=77dae9fd50a56da71b956f04478fcad4dcf2c61d2bce08fbc13deb12ba209a80
  Stored in directory: /tmp/pip-ephem-wheel-cache-qt544v5f/wheels/a1/3c/d2/1f9533f908d86176637521e533c6cdb2d4e48b59003b5c3f19
Successfully built PyOpenGL
Installing collected packages: PyOpenGL, pyglet, freetype-py, pyrender
Successfully installed PyOpenGL-3.1.0 freetype-py-2.4.0 pyglet-2.0.10 pyrender-0.1.45
/home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
/home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
/home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  setattr(self, word, getattr(machar, word).flat[0])
/home/mona/Downloads/blender-3.5.1-linux-x64/3.5/python/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
  return self._float_to_str(self.smallest_subnormal)
Selecting render devices...
Device NVIDIA RTX 6000 Ada Generation of type OPTIX found and used.
Device Intel Xeon w5-3435X of type CPU found and used.
Rendering 1 frames of colors...
Finished rendering after 170.839 seconds
Merging data for frame 0 into output/0.hdf5

Blender quit
Cleaning temporary directory

Screenshot from 2023-12-04 15-26-49

@cornerfarmer
Copy link
Member

Hey @monajalal,

sorry for the delay, this should now be fixed in version 2.6.2.

@Jingranxia
Copy link

Hey @monajalal,

sorry for the delay, this should now be fixed in version 2.6.2.

SAM-6D/SAM-6D/Render$ blenderproc run render_custom_templates.py --output_dir $OUTPUT_DIR --cad_path $CAD_PATH
Warning: Changed install path from /home_local/rodney... to /home/rodney..., there is no /home_local/ on this machine.
Using blender in /home/rodney/blender/blender-3.3.1-linux-x64
Using temporary directory: /dev/shm/blender_proc_b6ae4c30e8eb4d10a58d023f21318086
Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35)
Error: Python: Traceback (most recent call last):
File "/home/rodney/rodney/SAM-6D/SAM-6D/Render/render_custom_templates.py", line 1, in
import blenderproc as bproc
File "/home/rodney/.conda/envs/sam6d/lib/python3.9/site-packages/blenderproc/init.py", line 21, in
from .api import loader
File "/home/rodney/.conda/envs/sam6d/lib/python3.9/site-packages/blenderproc/api/loader/init.py", line 1, in
from blenderproc.python.loader.AMASSLoader import load_AMASS
File "/home/rodney/.conda/envs/sam6d/lib/python3.9/site-packages/blenderproc/python/loader/AMASSLoader.py", line 15, in
from blenderproc.python.types.MeshObjectUtility import MeshObject
File "/home/rodney/.conda/envs/sam6d/lib/python3.9/site-packages/blenderproc/python/types/MeshObjectUtility.py", line 16, in
from blenderproc.python.utility.BlenderUtility import get_all_blender_mesh_objects
File "/home/rodney/.conda/envs/sam6d/lib/python3.9/site-packages/blenderproc/python/utility/BlenderUtility.py", line 12, in
import cv2
ModuleNotFoundError: No module named 'cv2'

Error: script failed, file: 'render_custom_templates.py', exiting.
Cleaning temporary directory

What should I do if version 2.6.2 encounters this issue and cannot solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

3 participants