Encountered an error while attempting to run 'python3 build.py

Running Sphinx v5.3.0
loading pickled environment... failed
failed: [Errno 2] No such file or directory
myst v0.18.1: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=['colon_fence', 'deflist', 'substitution', 'dollarmath', 'html_image'], disable_syntax=[], all_links_external=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, highlight_code_blocks=True, number_code_blocks=[], title_to_header=False, heading_anchors=3, heading_slug_func=None, footnote_transition=True, words_per_minute=200, sub_delimiters=('{', '}'), linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area')
building [mo]: targets for 0 po files that are out of date
building [dirhtml]: targets for 101 source files that are out of date
updating environment: [new config] 101 added, 0 changed, 0 removed

please help me to solve this issue

Welcome to the community. Could you please provide some context as to what Fortran project this is and how you encountered this problem?

I am working on a Fortran language webpage project and encountered a problem while setting up the site using the command 'python3 build.py

repo GitHub - fortran-lang/webpage: New Fortran webpage

There is a bug in sphinx 5.3.0, as Instructed in the documentation, I would like to request you to do

pip install -r requirements.txt

Thanks and Regards,
Henil

still not working

you would have to either make a python environment or uninstall the sphinx 5.3.0 and pydata theme.

Can you list the steps that you’ve taken to reach the “not working” stage. There is very limited information in your post to be able to reproduce the problem.

FYI you should be using a virtual environment to install the webpage dependencies to ensure that no other packages interfere. For a Unix-like system the following should work:

python3 -m venv venv
source ./venv/bin/activate
python3 -m pip install -r requirements.txt
python3 build.py

I am not able to share a .txt file can you allow me?

I am copy the whole error in .txt file

I am copying an error in google doc please check out this doc https://docs.google.com/document/d/1WqF_PyWvcbKD_EUeHigPeM5EtRsHU2YygM3RrBvHKZo/edit?usp=sharing

In a clean version of the website repo please try the snippet of code I posted above and copy-paste the output here.

(venv) vasu@ubuntuSystem:~/Gsoc/webpage$ python3 build.py
Running Sphinx v5.3.0

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
    self.sock = conn = self._new_conn()
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fdf8feddd20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/fortran-lang/fortran-lang.org/contributors (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdf8feddd20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/sphinx/config.py", line 350, in eval_config_file
    exec(code, namespace)
  File "/home/vasu/Gsoc/webpage/source/conf.py", line 38, in <module>
    import fortran_package
  File "/home/vasu/Gsoc/webpage/fortran_package.py", line 123, in <module>
    contributors(i)
  File "/home/vasu/Gsoc/webpage/fortran_package.py", line 106, in contributors
    info = requests.get(
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/vasu/Gsoc/webpage/venv/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/fortran-lang/fortran-lang.org/contributors (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdf8feddd20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

Traceback (most recent call last):
  File "/home/vasu/Gsoc/webpage/build.py", line 130, in <module>
    build_all(all_redirects, sys.argv[1:] if len(sys.argv) > 1 else all_languages)
  File "/home/vasu/Gsoc/webpage/build.py", line 123, in build_all
    build_docs(language)
  File "/home/vasu/Gsoc/webpage/build.py", line 75, in build_docs
    subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sphinx-build', '-b', 'dirhtml', '/home/vasu/Gsoc/webpage/source', '/home/vasu/Gsoc/webpage/build/html/en', '-Dlanguage=en']' returned non-zero exit status 2.
(venv) vasu@ubuntuSystem:~/Gsoc/webpage$

This error suggests that you don’t have internet enabled, Please enable internet.

thank you so much know its working :grin: