ByteDance-Seed / ByteDance-Seed/Bagel
BUG: AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
- Dominant language
- Python
- Stars
- 6.2k
- Forks
- 545
- PR merge metrics
- No merged PRs in 30d
Description
Hi, trying to set it up but your installation script seems to be bugged.
Windows11
AMD 9800X3D, RTX5090
Full trace:
```
PS D:\AI> git clone https://github.com/bytedance-seed/BAGEL.git
Cloning into 'BAGEL'...
remote: Enumerating objects: 154, done.
remote: Counting objects: 100% (79/79), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 154 (delta 20), reused 26 (delta 14), pack-reused 75 (from 1)
Receiving objects: 100% (154/154), 2.00 MiB | 8.15 MiB/s, done.
Resolving deltas: 100% (26/26), done.
PS D:\AI> cd BAGEL
PS D:\AI\BAGEL> conda create -n bagel python=3.10 -y
Channels:
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:\Users\Perkel\miniconda3\envs\bagel
added / updated specs:
- python=3.10
The following packages will be downloaded:
package | build
---------------------------|-----------------
bzip2-1.0.8 | h2bbff1b_6 90 KB
ca-certificates-2025.2.25 | haa95532_0 130 KB
libffi-3.4.4 | hd77b12b_1 122 KB
openssl-3.0.16 | h3f729d1_0 7.8 MB
pip-25.1 | pyhc872135_2 1.3 MB
python-3.10.16 | h4607a30_1 16.3 MB
setuptools-78.1.1 | py310haa95532_0 1.7 MB
sqlite-3.45.3 | h2bbff1b_0 973 KB
tk-8.6.14 | h0416ee5_0 3.5 MB
tzdata-2025b | h04d1e81_0 116 KB
vc-14.42 | haa95532_5 11 KB
vs2015_runtime-14.42.34433 | hbfb602d_5 1.2 MB
wheel-0.45.1 | py310haa95532_0 145 KB
xz-5.6.4 | h4754444_1 280 KB
zlib-1.2.13 | h8cc25b3_1 131 KB
------------------------------------------------------------
Total: 33.7 MB
The following NEW packages will be INSTALLED:
bzip2 pkgs/main/win-64::bzip2-1.0.8-h2bbff1b_6
ca-certificates pkgs/main/win-64::ca-certificates-2025.2.25-haa95532_0
libffi pkgs/main/win-64::libffi-3.4.4-hd77b12b_1
openssl pkgs/main/win-64::openssl-3.0.16-h3f729d1_0
pip pkgs/main/noarch::pip-25.1-pyhc872135_2
python pkgs/main/win-64::python-3.10.16-h4607a30_1
setuptools pkgs/main/win-64::setuptools-78.1.1-py310haa95532_0
sqlite pkgs/main/win-64::sqlite-3.45.3-h2bbff1b_0
tk pkgs/main/win-64::tk-8.6.14-h0416ee5_0
tzdata pkgs/main/noarch::tzdata-2025b-h04d1e81_0
vc pkgs/main/win-64::vc-14.42-haa95532_5
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.42.34433-hbfb602d_5
wheel pkgs/main/win-64::wheel-0.45.1-py310haa95532_0
xz pkgs/main/win-64::xz-5.6.4-h4754444_1
zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_1
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate bagel
#
# To deactivate an active environment, use
#
# $ conda deactivate
PS D:\AI\BAGEL> conda activate bagel
PS D:\AI\BAGEL> pip install -r requirements.txt
Collecting decord==0.6.0 (from -r requirements.txt (line 1))
Using cached decord-0.6.0-py3-none-win_amd64.whl.metadata (422 bytes)
Collecting einops==0.8.1 (from -r requirements.txt (line 2))
Using cached einops-0.8.1-py3-none-any.whl.metadata (13 kB)
Collecting huggingface_hub==0.29.1 (from -r requirements.txt (line 3))
Using cached huggingface_hub-0.29.1-py3-none-any.whl.metadata (13 kB)
Collecting matplotlib==3.7.0 (from -r requirements.txt (line 4))
Using cached matplotlib-3.7.0.tar.gz (36.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy==1.24.4 (from -r requirements.txt (line 5))
Using cached numpy-1.24.4.tar.gz (10.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Traceback (most recent call last):
File "C:\Users\Perkel\miniconda3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in
main()
~~~~^^
File "C:\Users\Perkel\miniconda3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Perkel\miniconda3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 137, in get_requires_for_build_wheel
backend = _build_backend()
File "C:\Users\Perkel\miniconda3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 70, in _build_backend
obj = import_module(mod_path)
File "C:\Users\Perkel\miniconda3\Lib\importlib\__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "C:\Users\Perkel\AppData\Local\Temp\pip-build-env-ah_0o3qo\overlay\Lib\site-packages\setuptools\__init__.py", line 16, in
import setuptools.version
File "C:\Users\Perkel\AppData\Local\Temp\pip-build-env-ah_0o3qo\overlay\Lib\site-packages\setuptools\version.py", line 1, in
import pkg_resources
File "C:\Users\Perkel\AppData\Local\Temp\pip-build-env-ah_0o3qo\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2172, in
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
PS D:\AI\BAGEL> python -m ensurepip --upgrade
Looking in links: c:\Users\Perkel\AppData\Local\Temp\tmpltyi4axg
Requirement already satisfied: pip in c:\users\perkel\miniconda3\lib\site-packages (25.0)
PS D:\AI\BAGEL>
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with requirements.txt and reproduce the pip install on Windows using the Python 3.10 environment described in the report. Inspect the numpy build-dependency failure involving setuptools, pkg_resources, and pkgutil. Done means the documented installation completes without the ImpImporter error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100