XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
754 stars 191 forks source link

ValueError: 'thewalrus/libwalrus.pyx' doesn't match any files. how to solve this for installation? #408

Closed sassan72 closed 4 years ago

sassan72 commented 4 years ago

Before posting an issue

Search existing GitHub issues to make sure the issue does not already exist: https://github.com/xanaduai/strawberryfields/issues

If posting a Strawberry Fields issue, delete everything above the dashed line, and fill in the template.

If making a feature request, delete the following template and describe, in detail, the feature and why it is needed.

For general technical details. check out our documentation: https://strawberryfields.readthedocs.io


Issue description

Description of the issue - include code snippets and screenshots here if relevant. You may use the following template below

Source code and tracebacks

Please include any additional code snippets and error tracebacks related to the issue here.

Additional information

Any additional information, configuration or data that might be necessary to reproduce the issue.

josh146 commented 4 years ago

Hi @sassan72! Can I ask for some additional information in diagnosing this issue. In particular,

In particular, this error message indicates that your combination of Python version/operating system is one that doesn't support our binary builds of The Walrus.

sassan72 commented 4 years ago

python 3.7, Mac OS Sierra.

josh146 commented 4 years ago

Hmm, that should be a supported version of Python 🤔

Are your using the built-in Python that ships with MacOS, or are you using Anaconda?

sassan72 commented 4 years ago

actually, I installed python with pip install python. i have also Anaconda. do you think the problem is related to my Python library.

josh146 commented 4 years ago

Potentially, could you try installing it using Anaconda?

sassan72 commented 4 years ago

Thanks Josh for helping. you mean by conda install

antalszava commented 4 years ago

Hi @sassan72!

One way you could have Python be installed with Anaconda is to create a new environment with Anaconda.

For example, you could create a new Anaconda environment the following way: conda create --name py36 python=3.6

After that, you could activate this environment on macOS by: source activate py36

At this step, you will have an environment that has a few basic packages installed. You could then use pip to install TheWalrus.

Let us know how this goes!

antalszava commented 4 years ago

Hi @sassan72, any updates here?

sassan72 commented 4 years ago

I could install it. thanks.