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

Libsmu for python 3.8 in Win 10 OS #192

Open
vsethia-adi opened this issue Nov 28, 2021 · 7 comments
Open

Libsmu for python 3.8 in Win 10 OS #192

vsethia-adi opened this issue Nov 28, 2021 · 7 comments

Comments

@vsethia-adi
Copy link

Is there a libsmu package for ADALM1K in Python 3.8 in Win 10 OS?

Reason is libm2k for ADALM2K is available in python 3.8.

@tfcollins
Copy link
Contributor

The conda package should support 3.8

@vsethia-adi
Copy link
Author

I use Python pip package and not conda package.
This is for Win OS 10.
I downloaded the installer available on the site and it tries to install python 3.7 bindings. Given that python 3.7 is not installed, the bindings are not copied.
However, the libm2k is installed for python 3.8 bindings.

@vsethia-adi
Copy link
Author

@damercer mentioned in EZ that python 3.8 bindings of libsmu exist in his Win 10 computer. But the same is not available on the libsmu Win installer. I am using the Python 3.8 environment from the python.org and not the Anaconda version.

@damercer
Copy link
Contributor

I installed the Python 3.8 bindings manually. I don't recall the exact steps but it was more or less copying the pysmu source files into site-packages and running the setup.py installer. Or something like that.

@AlexandraTrifan
Copy link
Contributor

Hi,

We need to work on some updates for our continuous integration builds. After the updates, there will be wheel packages provided for multiple Python versions (can be installed using pip).

The easiest method right now is to use the Conda packages, as mentioned above. This will install both the libsmu library and the Python bindings in a separate Python environment. (https://anaconda.org/conda-forge/libsmu)
If Conda is not an option, I can prepare and get back to you with a short guide to build the Python bindings manually.

Thank you!
-Alexandra

@vsethia-adi
Copy link
Author

Hi Alexandra,
Do provide me with a short guide to build python bindings manually. If that did not work out, is there any other option other than Conda to use the libsmu package.

@AlexandraTrifan
Copy link
Contributor

Hi,

In the last weeks we worked on improving the build setup for libsmu and pysmu since it was a bit outdated.
You can try the latest release, which will make it much easier to install pysmu with the chosen Python version. (https://github.com/analogdevicesinc/libsmu/releases/tag/v1.0.4 )

This one does not include the Python bindings in the official release, so you just download the libsmu setup file and install the base library + the smu command line utility.
As for the Python version, you can download the libsmu-1.0.4-win32-win64.zip archive which contains the build folders for both 64 and 32 bit. In the appropriate folder, you will find a pysmu-cp38-cp38...whl file. You can install that one using pip, just be sure to upgrade your pip first.
python.exe -m pip install --upgrade pip
python.exe -m pip install pysmu-cp38-cp38...whl (just put the chosen filename)
Or you can just use the following command, which does not require you to pre-download any .whl file (it just downloads it from the official Test PyPi repository)
pip install -i https://test.pypi.org/simple/ pysmu
This one will detect your Python version and choose the specific wheel(pip package) for it.

Thank you!
-Alexandra

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

4 participants