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

No module named 'lie_learn.representations.SO3.irrep_bases' #16

Open
Syhzs opened this issue Jul 29, 2020 · 7 comments
Open

No module named 'lie_learn.representations.SO3.irrep_bases' #16

Syhzs opened this issue Jul 29, 2020 · 7 comments

Comments

@Syhzs
Copy link

Syhzs commented Jul 29, 2020

I failed import this .c file . I have a c compile(vs c++ 2015) and already pip install cython.( python 3.6 ,pytorch 1.1.0 cuda 9.0)

@Linh-nk
Copy link

Linh-nk commented Dec 6, 2020

I also ran into this error

@vwslz
Copy link

vwslz commented Jan 14, 2021

Same error here: ModuleNotFoundError: No module named 'lie_learn.representations.SO3.irrep_bases'

@HannesStark
Copy link

HannesStark commented Apr 22, 2021

You might want to try:

pip install git+https://github.com/AMLab-Amsterdam/lie_learn

for me this did not work either and was running into a cython issue but installing an older commit worked:

pip install git+https://github.com/AMLab-Amsterdam/lie_learn@6d02c2a1705a05340a128cb8d86c19076d0f5f46

@EricPengShuai
Copy link

@HannesStark
lie_learn cannot be installed using these two commands. My environment is anaconda with pytorch1.8 and python3.7.
#20 (comment)

@jk160804211
Copy link

probably, you need to download the whole project and use setup.py file to install using the command python setup.py install
personally, the setup.py has problem leading the Cpython report the compile error "is not a valid module name", I modified the code of setup.py in line 29 extensions = cythonize(extensions) to extensions = cythonize(files), and it works.

@chinkihamza
Copy link

from lie_learn.representations.SO3.irrep_bases import change_of_basis_matrix
8 def wigner_d_matrix(l, beta,
9 field='real', normalization='quantum', order='centered', condon_shortley='cs'):
10 """
11 Compute the Wigner-d matrix of degree l at beta, in the basis defined by
12 (field, normalization, order, condon_shortley)
(...)
22 :return: d^l_mn(beta) in the chosen basis
23 """

ModuleNotFoundError: No module named 'lie_learn.representations.SO3.irrep_bases'

@1597446909
Copy link

I have solved this problem.
at first,you should run "pip install cpython","pip install easycpython",and then go to the pakage root,"pip install . "。
then ,you enter the .\representations\SO3,and will find the irrep_bases.pyx and the irrep_bases.c。
at least ,open the cmd in this dir,run "easycpython irrep_bases.pyx",after that,you will find a pyd file,that is over.

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

8 participants