eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot import hdri world in blender

nfg6dretd opened this issue · comments

When i import hdri worlds it gives me this error, i have used it many times before without errors.
Can i fix this somehow? - thanks.

  • Version of LilySurfaceScrapper: 1.6.1
  • Version of Blender: 2.91.2
  • Operating System: Windows 10

LOG:

Python: Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\util\connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connectionpool.py", line 976, in _validate_conn
conn.connect()
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connection.py", line 308, in connect
conn = self._new_conn()
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x00000172DE132888>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\urllib3\util\retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='hdrihaven.comhttps', port=443): Max retries exceeded with url: //download.polyhaven.com/HDRIs/4k/oberer_kuhberg_4k.exr (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000172DE132888>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\LilySurfaceScraper-master\blender\LilySurfaceScraper\frontend.py", line 309, in execute
data.selectVariant(int(self.variant))
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\LilySurfaceScraper-master\blender\LilySurfaceScraper\ScrapedData.py", line 70, in selectVariant
if not self._scraper.fetchVariant(variant_index, self):
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\LilySurfaceScraper-master\blender\LilySurfaceScraper\Scrapers\HdriHavenScraper.py", line 90, in fetchVariant
material_data.maps['sky'] = self.fetchImage(map_url, material_data.name, 'sky')
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\LilySurfaceScraper-master\blender\LilySurfaceScraper\Scrapers\AbstractScraper.py", line 123, in fetchImage
r = requests.get(url, stream=True, headers=headers)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='hdrihaven.comhttps', port=443): Max retries exceeded with url: //download.polyhaven.com/HDRIs/4k/oberer_kuhberg_4k.exr (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000172DE132888>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

location: :-1

I believe I have a fix for this in my pull request #137.

Merged, thanks for the fix!

It works thanks! 👍 👍