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

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

Open
jakirkham opened this issue Jul 8, 2022 · 0 comments
Open

Comments

@jakirkham
Copy link

jakirkham commented Jul 8, 2022

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant