Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

ImportError: cannot import name 'Ensurer' from 'xonsh.__amalgam__' #72

@jakirkham

Description

@jakirkham

After installing the libcflib package from conda-forge and importing, am seeing the following error. Tried with the latest xonsh and 0.9.24 based on this pin

In [1]: import libcflib
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import libcflib

File ~/miniconda/lib/python3.9/site-packages/libcflib/__init__.py:9, in <module>
      6 del setup
      8 # setup environment
----> 9 from libcflib.environ import setup
     11 setup()
     12 del setup

File ~/miniconda/lib/python3.9/site-packages/libcflib/environ.py:8, in <module>
      5 from contextlib import contextmanager
      6 from collections.abc import MutableMapping
----> 8 from xonsh.environ import Ensurer, VarDocs
      9 from xonsh.tools import always_false, ensure_string, is_string, is_int
     11 from libcflib.tools import expand_file_and_mkdirs

ImportError: cannot import name 'Ensurer' from 'xonsh.__amalgam__' (/Users/jkirkham/miniconda/lib/python3.9/site-packages/xonsh/__amalgam__.py)

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