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

netlify preview is broken #1642

Open
lmb opened this issue Jan 10, 2025 · 3 comments
Open

netlify preview is broken #1642

lmb opened this issue Jan 10, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@lmb
Copy link
Collaborator

lmb commented Jan 10, 2025

Describe the bug

We're getting the following error:

12:47:00 PM: build-image version: 57f5f3b41b33013dcac95d0b96f9267d91d9fa97 (focal)
12:47:00 PM: buildbot version: 57f5f3b41b33013dcac95d0b96f9267d91d9fa97
12:47:00 PM: Fetching cached dependencies
12:47:00 PM: Starting to download cache of 197.5MB
12:47:02 PM: Finished downloading cache in 1.402s
12:47:02 PM: Starting to extract cache
12:47:05 PM: Finished extracting cache in 3.077s
12:47:05 PM: Finished fetching cache in 4.698s
12:47:05 PM: Starting to prepare the repo for build
12:47:05 PM: Preparing Git Reference pull/1641/head
12:47:07 PM: Custom build path detected. Proceeding with the specified path: 'docs'
12:47:07 PM: Custom publish path detected. Proceeding with the specified path: 'docs/site'
12:47:07 PM: manpath: warning: $PATH not set
12:47:08 PM: Starting to install dependencies
12:47:08 PM: Started restoring cached mise cache
12:47:09 PM: Finished restoring cached mise cache
12:47:09 PM: Fallback to default: 3.13
12:47:10 PM: mise [email protected]   install
12:47:10 PM: mise [email protected]   download cpython-3.13.1+20250106-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
12:47:10 PM: mise [email protected]   extract cpython-3.13.1+20250106-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
12:47:11 PM: mise [email protected]   python --version
12:47:11 PM: mise [email protected]   Python 3.13.1
12:47:11 PM: mise [email protected] ✓ installed
12:47:11 PM: Python version set to 3.13
12:47:11 PM: Found Pipfile restoring Pipenv virtualenv
12:47:11 PM: Started restoring cached python virtualenv
12:47:11 PM: Finished restoring cached python virtualenv
12:47:13 PM: Collecting pipenv
12:47:13 PM:   Downloading pipenv-2024.4.0-py3-none-any.whl.metadata (19 kB)
12:47:13 PM: Collecting certifi (from pipenv)
12:47:13 PM:   Downloading certifi-2024.12.14-py3-none-any.whl.metadata (2.3 kB)
12:47:13 PM: Collecting packaging>=22 (from pipenv)
12:47:13 PM:   Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
12:47:13 PM: Collecting setuptools>=67 (from pipenv)
12:47:13 PM:   Downloading setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
12:47:13 PM: Collecting virtualenv>=20.24.2 (from pipenv)
12:47:13 PM:   Downloading virtualenv-20.28.1-py3-none-any.whl.metadata (4.5 kB)
12:47:13 PM: Collecting distlib<1,>=0.3.7 (from virtualenv>=20.24.2->pipenv)
12:47:13 PM:   Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
12:47:13 PM: Collecting filelock<4,>=3.12.2 (from virtualenv>=20.24.2->pipenv)
12:47:13 PM:   Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
12:47:13 PM: Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.24.2->pipenv)
12:47:13 PM:   Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
12:47:14 PM: Downloading pipenv-2024.4.0-py3-none-any.whl (3.0 MB)
12:47:14 PM:    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 65.9 MB/s eta 0:00:00
12:47:14 PM: Downloading packaging-24.2-py3-none-any.whl (65 kB)
12:47:14 PM: Downloading setuptools-75.8.0-py3-none-any.whl (1.2 MB)
12:47:14 PM:    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 31.5 MB/s eta 0:00:00
12:47:14 PM: Downloading virtualenv-20.28.1-py3-none-any.whl (4.3 MB)
12:47:14 PM:    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 189.0 MB/s eta 0:00:00
12:47:14 PM: Downloading certifi-2024.12.14-py3-none-any.whl (164 kB)
12:47:14 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
12:47:14 PM: Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
12:47:14 PM: Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
12:47:14 PM: Installing collected packages: distlib, setuptools, platformdirs, packaging, filelock, certifi, virtualenv, pipenv
12:47:17 PM: Successfully installed certifi-2024.12.14 distlib-0.3.9 filelock-3.16.1 packaging-24.2 pipenv-2024.4.0 platformdirs-4.3.6 setuptools-75.8.0 virtualenv-20.28.1
12:47:18 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
12:47:18 PM: Installing dependencies from Pipfile
12:47:18 PM: To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
12:47:18 PM: Installing dependencies from Pipfile.lock (0e5749)...
12:47:18 PM: Traceback (most recent call last):
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/bin/pipenv", line 8, in <module>
12:47:18 PM:     sys.exit(cli())
12:47:18 PM:              ~~~^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1157, in __call__
12:47:18 PM:     return self.main(*args, **kwargs)
12:47:18 PM:            ~~~~~~~~~^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/cli/options.py", line 52, in main
12:47:18 PM:     return super().main(*args, **kwargs, windows_expand_args=False)
12:47:18 PM:            ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1078, in main
12:47:18 PM:     rv = self.invoke(ctx)
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1688, in invoke
12:47:18 PM:     return _process_result(sub_ctx.command.invoke(sub_ctx))
12:47:18 PM:                            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1434, in invoke
12:47:18 PM:     return ctx.invoke(self.callback, **ctx.params)
12:47:18 PM:            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 783, in invoke
12:47:18 PM:     return __callback(*args, **kwargs)
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/decorators.py", line 92, in new_func
12:47:18 PM:     return ctx.invoke(f, obj, *args, **kwargs)
12:47:18 PM:            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 783, in invoke
12:47:18 PM:     return __callback(*args, **kwargs)
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/cli/command.py", line 207, in install
12:47:18 PM:     do_install(
12:47:18 PM:     ~~~~~~~~~~^
12:47:18 PM:         state.project,
12:47:18 PM:         ^^^^^^^^^^^^^^
12:47:18 PM:     ...<14 lines>...
12:47:18 PM:         skip_lock=state.installstate.skip_lock,
12:47:18 PM:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:     )
12:47:18 PM:     ^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/routines/install.py", line 341, in do_install
12:47:18 PM:     raise e
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/routines/install.py", line 327, in do_install
12:47:18 PM:     do_install_dependencies(
12:47:18 PM:     ~~~~~~~~~~~~~~~~~~~~~~~^
12:47:18 PM:         project,
12:47:18 PM:         ^^^^^^^^
12:47:18 PM:     ...<6 lines>...
12:47:18 PM:         skip_lock=skip_lock,
12:47:18 PM:         ^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:     )
12:47:18 PM:     ^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/routines/install.py", line 530, in do_install_dependencies
12:47:18 PM:     batch_install(
12:47:18 PM:     ~~~~~~~~~~~~~^
12:47:18 PM:         project,
12:47:18 PM:         ^^^^^^^^
12:47:18 PM:     ...<4 lines>...
12:47:18 PM:         **install_kwargs,
12:47:18 PM:         ^^^^^^^^^^^^^^^^^
12:47:18 PM:     )
12:47:18 PM:     ^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/routines/install.py", line 598, in batch_install
12:47:18 PM:     if not project.environment.is_satisfied(dep)
12:47:18 PM:            ^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/project.py", line 508, in environment
12:47:18 PM:     self._environment = self.get_environment(allow_global=allow_global)
12:47:18 PM:                         ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/project.py", line 494, in get_environment
12:47:18 PM:     environment = Environment(
12:47:18 PM:         prefix=prefix,
12:47:18 PM:     ...<4 lines>...
12:47:18 PM:         project=self,
12:47:18 PM:     )
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/environment.py", line 81, in __init__
12:47:18 PM:     self._base_paths = self.get_paths()
12:47:18 PM:                        ~~~~~~~~~~~~~~^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/environment.py", line 342, in get_paths
12:47:18 PM:     c = subprocess_run(command)
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/site-packages/pipenv/utils/processes.py", line 72, in subprocess_run
12:47:18 PM:     return subprocess.run(
12:47:18 PM:            ~~~~~~~~~~~~~~^
12:47:18 PM:         args, text=text, encoding=encoding, check=False, **other_kwargs
12:47:18 PM:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:     )
12:47:18 PM:     ^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/subprocess.py", line 554, in run
12:47:18 PM:     with Popen(*popenargs, **kwargs) as process:
12:47:18 PM:          ~~~~~^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/subprocess.py", line 1036, in __init__
12:47:18 PM:     self._execute_child(args, executable, preexec_fn, close_fds,
12:47:18 PM:     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:                         pass_fds, cwd, env,
12:47:18 PM:                         ^^^^^^^^^^^^^^^^^^^
12:47:18 PM:     ...<5 lines>...
12:47:18 PM:                         gid, gids, uid, umask,
12:47:18 PM:                         ^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:                         start_new_session, process_group)
12:47:18 PM:                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:47:18 PM:   File "/opt/buildhome/.local/share/mise/installs/python/3.13.1/lib/python3.13/subprocess.py", line 1966, in _execute_child
12:47:18 PM:     raise child_exception_type(errno_num, err_msg, err_filename)
12:47:18 PM: FileNotFoundError: [Errno 2] No such file or directory: '/opt/build/repo/docs/.venv/bin/python'
12:47:18 PM: Error installing Pipenv dependencies
12:47:18 PM: Failing build: Failed to install dependencies
12:47:19 PM: Finished processing build request in 18.592s

Seems like it can't find the interpreter? I don't have access to the netlify dashboard so can't debug.

How to reproduce

Trigger CI via a PR

Version information

main

@lmb lmb added the bug Something isn't working label Jan 10, 2025
@lmb
Copy link
Collaborator Author

lmb commented Jan 10, 2025

@ti-mo
Copy link
Collaborator

ti-mo commented Jan 14, 2025

This has been broken (again) for a while. I'm considering using GH pages instead since at least we control the build pipeline. Created a thread on their support forum last week, but no response so far: https://answers.netlify.com/t/pipenv-no-such-file-or-directory-opt-build-repo-docs-venv-bin-python/136610.

@lmb
Copy link
Collaborator Author

lmb commented Jan 14, 2025

yeah, i like that idea. Makes it so that we can delegate access via GH. From a quick look its not possible to get "online" previews via actions, but maybe that is fine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants