Do slider and text box components only work in environments with the Internet?

OS (e.g. Win10): win10
PsychoPy version (e.g. 1.84.x): v2023.1.2

Hello. I’m using two laptops. There is no difference between the two laptops except for an Internet connection.
However, there is no problem with laptops with an Internet connection, but on laptops without an Internet connection, the experiment does not run from scratch with text box components or slider components. If the component is disabled, it runs.
I can only use a laptop with no internet connection for the experiment.

When a builder with a slider is not running, the following message appears.

Traceback (most recent call last):
Hello from the pygame community. https://www.pygame.org/contribute.html
0.9344     WARNING     Monitor specification not found. Creating a temporary one...
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "C:\Program Files\PsychoPy\lib\socket.py", line 918, 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\PsychoPy\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\connection.py", line 358, in connect
    conn = self._new_conn()
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001E47D950D60>: 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\PsychoPy\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "C:\Program Files\PsychoPy\lib\site-packages\urllib3\util\retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='fonts.googleapis.com', port=443): Max retries exceeded with url: /css2?family=nanumgothic&display=swap (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001E47D950D60>: 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\user\Desktop\psychop_experiment1\only memory_lastrun.py", line 130, in <module>
    slider = visual.Slider(win=win, name='slider',
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\contrib\lazy_import.py", line 118, in __call__
    return obj(*args, **kwargs)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\slider.py", line 199, in __init__
    self._createElements()
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\slider.py", line 461, in _createElements
    obj = TextBox2(
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\textbox2\textbox2.py", line 189, in __init__
    self.font = font
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\attributetools.py", line 27, in __set__
    newValue = self.func(obj, value)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\textbox2\textbox2.py", line 356, in font
    self.glFont = allFonts.getFont(
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\textbox2\fontmanager.py", line 941, in getFont
    self.addGoogleFont(name)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\textbox2\fontmanager.py", line 835, in addGoogleFont
    repoResp = requests.get(repoURL)
  File "C:\Program Files\PsychoPy\lib\site-packages\requests\api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Program Files\PsychoPy\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Program Files\PsychoPy\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files\PsychoPy\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files\PsychoPy\lib\site-packages\requests\adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='fonts.googleapis.com', port=443): Max retries exceeded with url: /css2?family=nanumgothic&display=swap (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001E47D950D60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
################# Experiment ended with exit code 1 [pid:920] ##################
2976.2147     EXP     Imported memory_one.xlsx as conditions, 60 conditions, 1 params
2976.2165     INFO     Loaded monitor calibration from ['2023_05_26 14:33']

If you try to use a font which isn’t installed on your computer, PsychoPy will try to get it from Google Fonts - it looks like this isn’t erroring out neatly, so I’ll try to catch this error and put something more helpful in.

To fix this, download the font from Google Fonts on a computer with internet and then (after moving it over via e.g. a memory stick) open the font files on the computer without internet. Once the font is installed it shouldn’t need to connect to the internet.