Skip to content

Issue installing under conda #13

@djr2015

Description

@djr2015

Hello, I'm excited by this work and to get it running but am having issues doing so with conda.

How to reproduce:

# Create conda environment with python 3.10
conda create -n vseal python=3.10
# Activate conda environment
conda activate vseal

cd videoseal
pip install -e .

When running pip install -e . I get

Obtaining file:///home/djrob/videoseal
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing editable metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      Traceback (most recent call last):
        File "/opt/conda/envs/vseal/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/conda/envs/vseal/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/conda/envs/vseal/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 181, in prepare_metadata_for_build_editable
          return hook(metadata_directory, config_settings)
        File "/var/tmp/pip-build-env-ta2s5cz4/overlay/lib/python3.10/site-packages/flit_core/buildapi.py", line 49, in prepare_metadata_for_build_wheel
          metadata = make_metadata(module, ini_info)
        File "/var/tmp/pip-build-env-ta2s5cz4/overlay/lib/python3.10/site-packages/flit_core/common.py", line 453, in make_metadata
          md_dict.update(get_info_from_module(module, ini_info.dynamic_metadata))
        File "/var/tmp/pip-build-env-ta2s5cz4/overlay/lib/python3.10/site-packages/flit_core/common.py", line 229, in get_info_from_module
          docstring, version = get_docstring_and_version_via_import(target)
        File "/var/tmp/pip-build-env-ta2s5cz4/overlay/lib/python3.10/site-packages/flit_core/common.py", line 202, in get_docstring_and_version_via_import
          spec.loader.exec_module(m)
        File "<frozen importlib._bootstrap_external>", line 883, in exec_module
        File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
        File "/home/djrob/videoseal/videoseal/__init__.py", line 9, in <module>
          from .utils.cfg import setup_model_from_model_card as load
        File "/home/djrob/videoseal/videoseal/utils/cfg.py", line 18, in <module>
          from videoseal.augmentation import get_validation_augs
      ModuleNotFoundError: No module named 'videoseal'
      [end of output]

I've also tried installing the pytorch related dependencies first, as well as doing this under a venv but get the same error in both cases.

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