kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
228 stars 37 forks source link

ModuleNotFoundError: No module named 'cadabra2' #192

Closed Gonzalo86 closed 4 years ago

Gonzalo86 commented 4 years ago

Hi! I'm trying to run cadabra2 in jupyter but i have this error message "ModuleNotFoundError: No module named 'cadabra2' " I followed the install instructions of JUPYTER.rst and I suspect the problem is: Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread

But i don't know how to fix it. This is the log,
log.log

Thank you for your time. Gonzalo.

kpeeters commented 4 years ago

The cmake stage is fine, that's not your problem.

You didn't really explain what you want to do precisely. The jupyter kernel build will create a Jupyter kernel, and if that installs correctly, you should be able to create a new notebook with 'Cadabra' kernel (instead of Python or Python3). Does that procedure lead to the ModuleNotFoundError? That suggest the installation did not put the cadabra module in the right place; can you send me the output of make install ?

On the other hand, if you are trying to use Cadabra inside a normal Python3 notebook, you will need to make sure that it is in your PYTHONPATH. Again, look at make install and see where the installation procedure installs cadabra2.so. Put that directory in your PYTHONPATH.

Gonzalo86 commented 4 years ago

Don't worry, i'm stupid, in my try number 5 at 7 am forgot the next steps. Now is working fine. Thank you for your attention.