Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install AlchemyCat #10

Open
J-Lam0 opened this issue Jan 15, 2024 · 3 comments
Open

Install AlchemyCat #10

J-Lam0 opened this issue Jan 15, 2024 · 3 comments

Comments

@J-Lam0
Copy link

J-Lam0 commented Jan 15, 2024

How to install alchemy_cat , it does't have setup.py.

@HAL-42
Copy link
Owner

HAL-42 commented Jan 15, 2024

The alchemy_cat is still in develop. You can use alchemy_cat in the following three ways:

  1. [RECOMMENDED] Download our pre-packaged conda environment from HERE, which includes a pre-installed version of alchemy_cat that is compatible with the project.
  2. Clone alchemy_cat and add it to your sys.path.
  3. Use the setup.py script as follows:
from setuptools import setup, find_packages

setup(
        name='alchemy_cat',
        version='0.0.0',
        description='This is a test of the setup',
        author='HAL_42',
        author_email='hal_42@zju.edu.cn',
        url='https://github.com/HAL-42/AlchemyCat',
        packages=find_packages(),
        package_data = {
            '': ['*.md'],
        },
        zip_safe=True,
)

@Devin-Pi
Copy link

Hi, thanks for your wonderful work.

When I try to use the 'alchemy_cat', I have encountered the following problem. I would appreciate it if you can help me solve this problem. Thank you!

Traceback (most recent call last):
File "/workspaces/env/test.py", line 1, in
import alchemy_cat.py_tools.config.open_cfg as open_cfg
File "/workspaces/env/alchemy_cat/init.py", line 11, in
from .acplot.shuffle_ch import CHW2HWC, HWC2CHW, RGB2BGR, BGR2RGB
File "/workspaces/env/alchemy_cat/acplot/init.py", line 11, in
from .figure_wall import *
File "/workspaces/env/alchemy_cat/acplot/figure_wall.py", line 18, in
from alchemy_cat.acplot.utils import stack_figs
File "/workspaces/env/alchemy_cat/acplot/utils.py", line 15, in
from alchemy_cat.data.plugins.augers import pad_img_label
File "/workspaces/env/alchemy_cat/data/init.py", line 11, in
from alchemy_cat.data.dataset import *
File "/workspaces/env/alchemy_cat/data/dataset.py", line 19, in
from alchemy_cat.alg import accumulate
File "/workspaces/env/alchemy_cat/alg/init.py", line 12, in
from alchemy_cat.alg.utils import *
File "/workspaces/env/alchemy_cat/alg/utils.py", line 15, in
from alchemy_cat.py_tools import is_int, is_float, totuple
File "/workspaces/env/alchemy_cat/py_tools/init.py", line 23, in
from alchemy_cat.py_tools.param_tuner import *
File "/workspaces/env/alchemy_cat/py_tools/param_tuner/init.py", line 12, in
from alchemy_cat.py_tools.param_tuner.cfg2tune_runner import *
File "/workspaces/env/alchemy_cat/py_tools/param_tuner/cfg2tune_runner.py", line 32, in
class Cfg2TuneRunner(object):
File "/workspaces/env/alchemy_cat/py_tools/param_tuner/cfg2tune_runner.py", line 37, in Cfg2TuneRunner
work_fn: Callable[[tuple[int, tuple[Config, str, str]]], ...]=None):
File "/usr/lib/python3.10/typing.py", line 1206, in getitem
return self.getitem_inner(params)
File "/usr/lib/python3.10/typing.py", line 312, in inner
return func(*args, **kwds)
File "/usr/lib/python3.10/typing.py", line 1212, in getitem_inner
result = _type_check(result, msg)
File "/usr/lib/python3.10/typing.py", line 176, in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
TypeError: Callable[args, result]: result must be a type. Got Ellipsis.

Look forward to your reply!

@HAL-42
Copy link
Owner

HAL-42 commented Jun 20, 2024

The current version of alchemy_cat needs Python >= 3.11
It is RECOMMENDED to download our pre-packaged conda environment from HERE, which includes a pre-installed version of alchemy_cat that is compatible with the project. Additionally, all dependencies required to run the project have been packaged within it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants