conda-forge / conda-forge/html5lib-feedstock

Package rebuild - pyhd8ed1ab_1.conda breaks conda-lock on py312

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
1
Forks
11
PR merge metrics
No merged PRs in 30d

Description

### Solution to issue cannot be found in the documentation.

- [x] I checked the documentation.

### Issue

Package rebuild - caused issues ModuleNotFoundError: No module named 'html5lib.contrib' and breaks conda-lock

Downgrade back to conda install "html5lib==1.1=pyh9f0ad1d_0" fixes the issue.
https://pypi.org/project/html5lib-modern/ appears to be new release of https://github.com/html5lib/html5lib-python
versus https://pypi.org/project/html5lib/ which is currently used in the feedstock

Reference - https://github.com/html5lib/html5lib-python/issues/577#issuecomment-2373085747

```
Traceback (most recent call last):
File "/home/rxm7706/programs/miniconda3/bin/conda-lock", line 6, in
from conda_lock import main
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/conda_lock/__init__.py", line 3, in
from conda_lock.conda_lock import main
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/conda_lock/conda_lock.py", line 50, in
from conda_lock.conda_solver import solve_conda
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/conda_lock/conda_solver.py", line 19, in
from conda_lock.interfaces.vendored_poetry import (
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/conda_lock/interfaces/vendored_poetry.py", line 9, in
from conda_lock._vendor.poetry.factory import Factory
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/conda_lock/_vendor/poetry/factory.py", line 18, in
from .repositories.pypi_repository import PyPiRepository
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/conda_lock/_vendor/poetry/repositories/pypi_repository.py", line 15, in
from html5lib.html5parser import parse
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/html5lib/__init__.py", line 24, in
from .html5parser import HTMLParser, parse, parseFragment
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/html5lib/html5parser.py", line 1, in
from . import _inputstream
File "/home/rxm7706/programs/miniconda3/lib/python3.12/site-packages/html5lib/_inputstream.py", line 9, in
from .contrib import webencodings
ModuleNotFoundError: No module named 'html5lib.contrib'
```

### Installed packages

conda-lock

### Environment info

python 3.12 with conda-lock

Contributor guide

Open the contributing guide

Research direction

Reproduce the Python 3.12 failure with conda-lock and inspect the html5lib files named in the traceback: html5lib/__init__.py, html5lib/html5parser.py, and html5lib/_inputstream.py. Compare the feedstock package rebuild with html5lib==1.1=pyh9f0ad1d_0; done means conda-lock imports successfully without the missing html5lib.contrib error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.