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

ModuleNotFoundError: No module named 'invcryrep' #106

Open
adosar opened this issue Sep 19, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'invcryrep' #106

adosar opened this issue Sep 19, 2024 · 1 comment

Comments

@adosar
Copy link

adosar commented Sep 19, 2024

Hello,

After installing mattext I am facing the following issue:

>>> from mattext.representations import TextRep
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/asarikas/venvir/numpy/lib/python3.11/site-packages/mattext/representations/__init__.py", line 1, in <module>
    from xtal2txt.core import TextRep
  File "/home/asarikas/venvir/numpy/lib/python3.11/site-packages/xtal2txt/core.py", line 7, in <module>
    from invcryrep.invcryrep import InvCryRep
ModuleNotFoundError: No module named 'invcryrep'

I suspect that this may be related to how the xtal2txt package loads slices as mentioned here.

@n0w0f
Copy link
Collaborator

n0w0f commented Sep 22, 2024

Hi @adosar ,
Thank you for your interest in using MatText. I was able to reproduce the error you reported and it trace back to the recent api changes in SLICES package.

The easiest option for usage now would be to pin slices to a previous version, while I update our package.
pip install slices==1.4.12
I was able to import TextRep after reinstalling slices after installing mattext.

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

No branches or pull requests

2 participants