Skip to content

ImportError: cannot import name 'uint8_lookup' from 'pysc2.env.converter.cc.game_data.python'  #6

@WentseChen

Description

@WentseChen

I ran the following script and received this error

python alphastar/unplugged/scripts/train.py --config=alphastar/unplugged/configs/alphastar_supervised.py:alphastar.dummy --config.train.max_number_of_frames=16 --config.train.learner_kwargs.batch_size=4 --config.train.datasource.kwargs.shuffle_buffer_size=16 --config.train.optimizer_kwargs.lr_frames_before_decay=4 --config.train.learner_kwargs.unroll_len=3 --config.train.datasource.name=DummyDataSource

Traceback (most recent call last):
File "/xxx/home/xxx/alphastar/alphastar/unplugged/scripts/train.py", line 57, in
from alphastar.architectures import architectures
File "/xxx/home/xxx/alphastar/alphastar/architectures/architectures.py", line 22, in
from alphastar.architectures.dummy import dummy
File "/xxx/home/xxx/alphastar/alphastar/architectures/dummy/dummy.py", line 27, in
from alphastar.architectures.components import units
File "/xxx/home/xxx/alphastar/alphastar/architectures/components/units.py", line 25, in
from alphastar.architectures.components.static_data import unit_encoder_data
File "/xxx/home/xxx/alphastar/alphastar/architectures/components/static_data/unit_encoder_data.py", line 23, in
from pysc2.env.converter.cc.game_data.python import uint8_lookup
ImportError: cannot import name 'uint8_lookup' from 'pysc2.env.converter.cc.game_data.python' (/home/scratch/xxx/pysc2/pysc2/env/converter/cc/game_data/python/init.py)

Python: 3.9.0

Can you please provide the complete package version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions