Closed koxudaxi closed 1 month ago
@koxudaxi
When running make build-playground
I see:
TaskError - taskid:post_build:contents:contents:.
PythonAction Error
Traceback (most recent call last):
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/doit/action.py", line 461, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/jupyterlite_core/addons/contents.py", line 159, in one_contents_path
from jupyter_server.services.contents.filemanager import FileContentsManager
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/jupyter_server/services/contents/filemanager.py", line 22, in <module>
import nbformat
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/nbformat/__init__.py", line 14, in <module>
from . import v1, v2, v3, v4
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/nbformat/v4/__init__.py", line 24, in <module>
from .convert import downgrade, upgrade
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/nbformat/v4/convert.py", line 12, in <module>
from nbformat import v3, validator
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/nbformat/validator.py", line 17, in <module>
from .json_compat import ValidationError, _validator_for_name, get_current_validator
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/nbformat/json_compat.py", line 13, in <module>
import jsonschema
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/jsonschema/__init__.py", line 13, in <module>
from jsonschema._format import FormatChecker
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/jsonschema/_format.py", line 11, in <module>
from jsonschema.exceptions import FormatError
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/jsonschema/exceptions.py", line 14, in <module>
from attrs import define
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/attrs/__init__.py", line 3, in <module>
from attr import (
...<19 lines>...
)
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/attr/__init__.py", line 10, in <module>
from . import converters, exceptions, filters, setters, validators
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/attr/converters.py", line 10, in <module>
from ._compat import _AnnotationExtractor
File "/workspaces/tagstr-site/.venv/lib/python3.14/site-packages/attr/_compat.py", line 31, in <module>
import annotationlib
ModuleNotFoundError: No module named 'annotationlib'
make: *** [Makefile:24: build-playground] Error 2
I know this is a build-with-3.12 vs with-3.14 issue, not technically related to this PR (it happens in the main
branch too) but this feels like a good place to fix it? annotationlib
is a PEP 749 thing, apparently.
@davepeck I didn't know the problem. because I use python 3.12 to build the playground. I guess few libraries support Python3.14 yet. I'm fixing the error now.
The PR adds tagstr_site package to playground. We can do
import tagstr_site
in jupyterlite.I deployed the PR to my GitHub pages I have test it in my namespace on GitHub pages. It works fine :) https://koxudaxi.github.io/tagstr-site/playground/lab/index.html