Skip to content

Can't build website locally #107

@iainelder

Description

@iainelder

The local development instructions don't work for me.

When I run make site, eventually I get the following error:

[Errno 2] No such file or directory: 'content/docs/1.2'

A similar issue #36 was reported and closed without a documented solution.

Full terminal output:

$ make site
npm install
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 876 packages, and audited 877 packages in 10s

99 packages are looking for funding
  run `npm fund` for details

17 vulnerabilities (1 low, 6 moderate, 10 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
poetry install
The currently activated Python version 3.8.10 is not supported by the project (^3.10).
Trying to find and use a compatible version. 
Using python3 (3.10.10)
Creating virtualenv website-S2P53JhW-py3.10 in /home/isme/.cache/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 23 installs, 1 update, 0 removals

  • Installing idna (3.3)
  • Installing sniffio (1.3.0)
  • Installing anyio (3.6.1)
  • Installing certifi (2022.6.15)
  • Installing distlib (0.3.6)
  • Installing filelock (3.8.0)
  • Installing h11 (0.12.0)
  • Installing platformdirs (2.5.2)
  • Updating setuptools (65.7.0 -> 65.3.0)
  • Installing cfgv (3.3.1)
  • Installing crashtest (0.3.1)
  • Installing httpcore (0.15.0)
  • Installing identify (2.5.3)
  • Installing nodeenv (1.7.0)
  • Installing pylev (1.4.0)
  • Installing pyyaml (6.0)
  • Installing rfc3986 (1.5.0)
  • Installing toml (0.10.2)
  • Installing virtualenv (20.16.4)
  • Installing cleo (1.0.0a5)
  • Installing httpx (0.23.0)
  • Installing pre-commit (2.20.0)
  • Installing tomli (2.0.1)
  • Installing tomli-w (1.0.0)
poetry run ./bin/website configure 
The currently activated Python version 3.8.10 is not supported by the project (^3.10).
Trying to find and use a compatible version. 
Using python3 (3.10.10)
poetry run ./bin/website docs pull 
The currently activated Python version 3.8.10 is not supported by the project (^3.10).
Trying to find and use a compatible version. 
Using python3 (3.10.10)

  Pulling documentation for version 1.3 as 1.3
Cloning into '.'...
fatal: cannot change to 'https://github.com/python-poetry/poetry.git': No such file or directory
error: failed to initialize sparse-checkout
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

  Pulling documentation for version 1.2 as 1.2
Cloning into '.'...
fatal: cannot change to 'https://github.com/python-poetry/poetry.git': No such file or directory
error: failed to initialize sparse-checkout
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

[Errno 2] No such file or directory: 'content/docs/1.2'
make: *** [Makefile:26: content/docs] Error 1
$ python --version
Python 3.10.10
$ node --version
v18.14.0
$ poetry run bin/website docs pull
The currently activated Python version 3.8.10 is not supported by the project (^3.10).
Trying to find and use a compatible version. 
Using python3 (3.10.10)

  Pulling documentation for version 1.3 as 1.3
Cloning into '.'...
fatal: cannot change to 'https://github.com/python-poetry/poetry.git': No such file or directory
error: failed to initialize sparse-checkout
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

  Pulling documentation for version 1.2 as 1.2
Cloning into '.'...
fatal: cannot change to 'https://github.com/python-poetry/poetry.git': No such file or directory
error: failed to initialize sparse-checkout
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git

[Errno 2] No such file or directory: 'content/docs/1.2'

Environment:

  • OS: Ubuntu 20.04
  • Node version: v18.14.0
  • Python version: 3.10.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions