Source directory does not appear to contain CMakeLists.txt


I try to add the pennylane module into a pex package by adding “pennylane” into the “install_requires” variable in the file but I obtain the following error:

The source directory does not appear to contain CMakeLists.txt. Failed building wheel for PennyLane-Lightning.

How do I solve it?

Hi @c.duval, welcome to the forum!

I see the file in the pennylane-lightning module.

My guess is that you’re looking in the wrong folder. Something similar to what is explained here.

Or maybe you haven’t installed PennyLane-Lightning and you need it.

Please let me know if this helps.

Hi @CatalinaAlbornoz,
Thank you for your reply. The thing is, I don’t know how the folder path is handled when we install pennylane through a file using the “setup” function of the “setuptools” module.

Hi @c.duval, I see that @maliasadi is helping you in the issue you opened. If you prefer we can continue this conversation there. Be sure to share your code with Ali on the issue so that we can help you better.