analogdevicesinc / alice

Active Learning Interface for Circuits and Electronics
Other
16 stars 4 forks source link

Python3 ALICE #1

Closed jpnielsen closed 5 years ago

jpnielsen commented 5 years ago

I'm not an expert, but here's my log of converting ALICE 2.0.2 to python3. (See https://www.python.org/dev/peps/pep-0373/)

Running Windows 10, I installed msys2 x86_64 from msys2.org

Start MSYS2 MinGW 64 shell and update MSYS2 using: pacman -Syu

Install required packages - unzip, python3, pip and numpy. pacman -S unzip mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python3-numpy

Download ALICE from github.com

mkdir ~/src && cd ~/src
wget https://github.com/analogdevicesinc/alice/archive/2.0.2.zip
unzip 2.0.2.zip
cd alice-2.0.2

Convert code from Python2 to Python3, using 2to3

pip install 2to3
2to3 alice-desktop-2.0.pyw --write
2to3 iio.py --write

start ALICE python alice-desktop-2.0.pyw

jpnielsen commented 5 years ago

The compiled version dosn't run great, but ti seems to be the same as the binary from github. number inputs in AWG is strange cannot enter negative min value AWG on a sine gave up on ALICE, going with scopy.