Re: [casper] python version for casperfpga

2021-05-11 Thread Adam Isaacson
Hi Jeff,

Well done on sorting this out - looking forward to this dark energy sensor
;).

Thanks for sharing these links. Just a reminder, that our toolflow supports
Matlab R2018a. The GUI socket timeout issue is because you are using Matlab
R2019a, I think? If you don't use Matlab R2018a, Vivado 2019.1.1 then you
can run into these issues.

The "no programming informs yet. Odd?" issue has burnt me on the Red Pitaya
boards too. Alexander Raymond from the CfA figured the solution out -
thanks Alex.

Thanks for the useful feedback Jeff!

Kind regards,

Adam


On Tue, 11 May 2021, 2:55 PM 'Kobesky, Jeffrey CIV USN NRL ()
Washington DC (USA)' via casper@lists.berkeley.edu, <
casper@lists.berkeley.edu> wrote:

> Spiro,  Adam,
>
>
>
> Thanks for the info. I’ve successfully programmed Red Pitaya_Tutorial 1,
> orange light is blinking, so now I can move onto dark energy sensors next
> (kidding).  I think my main problem was I did not understand the different
> python environments and how they could be used with the Simulink/Vivado
> toolflow and casperfpga, so the info below definitely helped me.
>
>
>
> Otherwise two specific problems were “GUI socket server timed out” solved
> by this post
> https://www.mail-archive.com/casper@lists.berkeley.edu/msg07886.html and
> “no programming informs yet.  Odd?” solved by adding “127.0.0.1 localhost”
> to /etc/hosts on the RP, per this post
> https://www.mail-archive.com/casper@lists.berkeley.edu/msg07885.html .
>
>
>
> Hope this helps other people just starting out!   – Jeff
>
>
>
> Jeffrey Kobesky
>
> Electronics Engineer, Naval Research Laboratory
>
> O: (202) 404-7109 M: (443) 243-1554
>
> OS:  Pop!_OS 18.04 LTS (derived from Ubuntu 18.04 LTS)
>
> Vivado 19.1.1MATLAB 2018amlib_devel branch:  master
>
> Python 2.7 for casperfpga and 3.6 running in (casper_venv) for toolflow
>
> Devices:  Red Pitaya, SKARAB
>
>
>
>
>
> *From:* Spiro Sarris 
> *Sent:* Wednesday, May 5, 2021 6:55 AM
> *To:* casper@lists.berkeley.edu
> *Subject:* Re: [casper] python version for casperfpga
>
>
>
> Hi Jeff,
>
> I have one more suggestion that might help.  When your python
> installation(s) become more complicated, sometimes the seemingly simple
> command "pip" or "pip3" doesn't do what you expect.  It can install
> packages or search for dependencies in directories that you don't expect
> (not matching the python installation / environment that you intend to
> install packages).  I have found helpful to use the command
>
> $ python -m pip 
>
> instead of
>
> $ pip 
>
>
>
> In my experience, this command format has allowed pip to search
> dependencies and install packages to the intended python (the same python
>  referred to by "python" in the command line).
>
>
>
> Cheers,
>
> Spiro
>
>
>
> On Tue, 2021-05-04 at 22:06 +0200, Adam Isaacson wrote:
>
> Hi Jeff,
>
>
>
> Please see my feedback in red below.
>
>
> Kind regards,
>
>
>
> Adam Isaacson
>
> South African Radio Astronomy Observatory (SARAO)
>
> Hardware Manager
>
> Cell: (+27) 825639602
>
> Tel:  (+27) 215067300
>
> email: aisaac...@ska.ac.za
>
>
>
>
>
> On Tue, May 4, 2021 at 4:34 PM 'Kobesky, Jeffrey CIV USN NRL ()
> Washington DC (USA)' via casper@lists.berkeley.edu <
> casper@lists.berkeley.edu> wrote:
>
> Hello CASPER,
>
>
>
> I thought I had the Python stuff figured out, but turns out I'm completely
> lost.
>
>
>
>
>
> AI: No worries, there is still plenty that I don't understand :).
>
>
>
> I followed the instructions on this page:
> https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html
>
>
>
> I did both the upper set of instructions using pip, and the lower set of
> instructions using the "traditional method". Both result in errors in the
> third set of instructions using ipython.  Am I supposed to do these steps
> in the vitual python environment casp-venv, or in non-virtual environment,
> or does it matter.  I've actually tried both, and neither works for me.
>
>
>
>
>
> AI: It all depends on which repo and branch you are using. Maybe specify
> the repo and branch. It looks like you are using casper-astro/casperfpga
> repo, but I could be wrong. There is a python 3 branch, which is not
> supported for the SKARAB and the python 2 branch, which is supported for
> SKARAB and SARAO uses that. Personally, I use a virtual environment (Python
> 3.5) for the toolflow and no virtual environment for casperpfga (python
> 2.7). I haven't tested all the permutations, but I know 

RE: [casper] python version for casperfpga

2021-05-11 Thread 'Kobesky, Jeffrey CIV USN NRL (5555) Washington DC (USA)' via casper@lists.berkeley.edu
Spiro,  Adam,

Thanks for the info. I’ve successfully programmed Red Pitaya_Tutorial 1, orange 
light is blinking, so now I can move onto dark energy sensors next (kidding).  
I think my main problem was I did not understand the different python 
environments and how they could be used with the Simulink/Vivado toolflow and 
casperfpga, so the info below definitely helped me.

Otherwise two specific problems were “GUI socket server timed out” solved by 
this post https://www.mail-archive.com/casper@lists.berkeley.edu/msg07886.html 
and “no programming informs yet.  Odd?” solved by adding “127.0.0.1 localhost” 
to /etc/hosts on the RP, per this post 
https://www.mail-archive.com/casper@lists.berkeley.edu/msg07885.html .

Hope this helps other people just starting out!   – Jeff

Jeffrey Kobesky
Electronics Engineer, Naval Research Laboratory
O: (202) 404-7109 M: (443) 243-1554
OS:  Pop!_OS 18.04 LTS (derived from Ubuntu 18.04 LTS)
Vivado 19.1.1MATLAB 2018amlib_devel branch:  master
Python 2.7 for casperfpga and 3.6 running in (casper_venv) for toolflow
Devices:  Red Pitaya, SKARAB


From: Spiro Sarris 
Sent: Wednesday, May 5, 2021 6:55 AM
To: casper@lists.berkeley.edu
Subject: Re: [casper] python version for casperfpga

Hi Jeff,
I have one more suggestion that might help.  When your python installation(s) 
become more complicated, sometimes the seemingly simple command "pip" or "pip3" 
doesn't do what you expect.  It can install packages or search for dependencies 
in directories that you don't expect (not matching the python installation / 
environment that you intend to install packages).  I have found helpful to use 
the command
$ python -m pip 
instead of
$ pip 

In my experience, this command format has allowed pip to search dependencies 
and install packages to the intended python (the same python  referred to by 
"python" in the command line).

Cheers,
Spiro

On Tue, 2021-05-04 at 22:06 +0200, Adam Isaacson wrote:
Hi Jeff,

Please see my feedback in red below.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za<mailto:aisaac...@ska.ac.za>






On Tue, May 4, 2021 at 4:34 PM 'Kobesky, Jeffrey CIV USN NRL () Washington 
DC (USA)' via casper@lists.berkeley.edu<mailto:casper@lists.berkeley.edu> 
mailto:casper@lists.berkeley.edu>> wrote:
Hello CASPER,

I thought I had the Python stuff figured out, but turns out I'm completely lost.


AI: No worries, there is still plenty that I don't understand :).

I followed the instructions on this page: 
https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html

I did both the upper set of instructions using pip, and the lower set of 
instructions using the "traditional method". Both result in errors in the third 
set of instructions using ipython.  Am I supposed to do these steps in the 
vitual python environment casp-venv, or in non-virtual environment, or does it 
matter.  I've actually tried both, and neither works for me.


AI: It all depends on which repo and branch you are using. Maybe specify the 
repo and branch. It looks like you are using casper-astro/casperfpga repo, but 
I could be wrong. There is a python 3 branch, which is not supported for the 
SKARAB and the python 2 branch, which is supported for SKARAB and SARAO uses 
that. Personally, I use a virtual environment (Python 3.5) for the toolflow and 
no virtual environment for casperpfga (python 2.7). I haven't tested all the 
permutations, but I know that works for me.

In the first set of instructions using pip, should I be using pip or pip3?


AI: Once again pip is for python 2.7 and above. Pip3 is for python 3.5 and 
above. If the branch you are using has "py3" in the name then you will need 
pip3. All the other branches use Python 2.7 and so pip is fine.

Some possible clues:

(casper_venv) labrat@pop-os:~$ python --version Python 3.6.9
(casper_venv) labrat@pop-os:~$ pip --version pip 9.0.1 from 
/home/labrat/casper_venv/lib/python3.6/site-packages (python 3.6)
(casper_venv) labrat@pop-os:~$ deactivate labrat@pop-os:~$ python --version 
Python 3.6.9 labrat@pop-os:~$ pip --version pip 9.0.1 from 
/usr/lib/python2.7/dist-packages (python 2.7)


AI: These versions should work, but I haven't tested on them. I think my pip 
version was 8.1, Python 3.5 and Python 2.7.

The closest I got in ipython, I think, yielded this (which is probably wrong 
version, but at least no errors):

In [1]: import casperfpga

In [2]: casperfpga.__version__
Out[2]: '0.0+unknown.202105040928'


AI: It looked like it has installed correctly. Don't worry too much about the 
"unknown" version. We have a ska-sa/casperfpga repo and the branch is devel. if 
you install this casperfpga version then you won't see the "unknown" in the 
field. I think once we have merged our changes into th

Re: [casper] python version for casperfpga

2021-05-04 Thread Adam Isaacson
Hi Jeff,

Please see my feedback in red below.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Tue, May 4, 2021 at 4:34 PM 'Kobesky, Jeffrey CIV USN NRL ()
Washington DC (USA)' via casper@lists.berkeley.edu <
casper@lists.berkeley.edu> wrote:

> Hello CASPER,
>
>
>
> I thought I had the Python stuff figured out, but turns out I'm completely
> lost.
>

AI: No worries, there is still plenty that I don't understand :).

>
>
> I followed the instructions on this page:
> https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html
>
>
>
> I did both the upper set of instructions using pip, and the lower set of
> instructions using the "traditional method". Both result in errors in the
> third set of instructions using ipython.  Am I supposed to do these steps
> in the vitual python environment casp-venv, or in non-virtual environment,
> or does it matter.  I've actually tried both, and neither works for me.
>

AI: It all depends on which repo and branch you are using. Maybe specify
the repo and branch. It looks like you are using casper-astro/casperfpga
repo, but I could be wrong. There is a python 3 branch, which is not
supported for the SKARAB and the python 2 branch, which is supported for
SKARAB and SARAO uses that. Personally, I use a virtual environment (Python
3.5) for the toolflow and no virtual environment for casperpfga (python
2.7). I haven't tested all the permutations, but I know that works for me.

>
>
> In the first set of instructions using pip, should I be using pip or pip3?
>

AI: Once again pip is for python 2.7 and above. Pip3 is for python 3.5 and
above. If the branch you are using has "py3" in the name then you will need
pip3. All the other branches use Python 2.7 and so pip is fine.

>
>
> Some possible clues:
>
>
>
> (casper_venv) labrat@pop-os:~$ python --version Python 3.6.9
>
> (casper_venv) labrat@pop-os:~$ pip --version pip 9.0.1 from
> /home/labrat/casper_venv/lib/python3.6/site-packages (python 3.6)
>
> (casper_venv) labrat@pop-os:~$ deactivate labrat@pop-os:~$ python
> --version Python 3.6.9 labrat@pop-os:~$ pip --version pip 9.0.1 from
> /usr/lib/python2.7/dist-packages (python 2.7)
>

AI: These versions should work, but I haven't tested on them. I think my
pip version was 8.1, Python 3.5 and Python 2.7.

>
>
> The closest I got in ipython, I think, yielded this (which is probably
> wrong version, but at least no errors):
>
>
>
> In [1]: import casperfpga
>
>
>
> In [2]: casperfpga.__version__
>
> Out[2]: '0.0+unknown.202105040928'
>

AI: It looked like it has installed correctly. Don't worry too much about
the "unknown" version. We have a ska-sa/casperfpga repo and the branch is
devel. if you install this casperfpga version then you won't see the
"unknown" in the field. I think once we have merged our changes into the
casper-astro/ casperfpga repo then this field will be populated.  Do you
have a board that you can connect to? Have you tried reading and writing
registers? That is the true test.

>
>
> Sorry for the discombobulated post, but I think there must be something
> basic I’m just not understanding.
>

AI: Please also send screen captures of the install errors - helps with the
debugging.

>
>
> Thanks  -- Jeff
>
>
>
> *From:* Adam Isaacson 
> *Sent:* Friday, April 16, 2021 5:18 AM
> *To:* Casper Lists 
> *Subject:* Re: [casper] python version for casperfpga
>
>
>
> Hi Jeff,
>
>
>
> This is great information. We had a recent "wheel" support request and it
> turns out it is not needed, but nice that you figured out how to install
> it. This should be added to our readthedocs.
>
>
>
> Thanks Jeff! Let me know how the SKARAB and Red Pitaya testing goes.
>
>
> Kind regards,
>
>
>
> Adam Isaacson
>
> South African Radio Astronomy Observatory (SARAO)
>
> Hardware Manager
>
> Cell: (+27) 825639602
>
> Tel:  (+27) 215067300
>
> email: aisaac...@ska.ac.za
>
>
>
>
>
> On Thu, Apr 15, 2021 at 10:26 PM 'Kobesky, Jeffrey CIV USN NRL ()
> Washington DC (USA)' via casper@lists.berkeley.edu <
> casper@lists.berkeley.edu> wrote:
>
> Hello CASPER,
>
>
>
> FYI, I ran into slight issue “building wheel” during:  (casper_venv)
>  ~/mlib_devel$ pip3 install –r requirements.txt
>
>
>
> See RED text in attached screenshot.  But I believe everything installed,
> even with the two errors.
>
>
>
> Anyway, I believe error was caused because “wheel” was not part of my
> python installation.
>
>
>
> I d

RE: [casper] python version for casperfpga

2021-05-04 Thread 'Kobesky, Jeffrey CIV USN NRL (5555) Washington DC (USA)' via casper@lists.berkeley.edu
Sorry, better formatting on this version:

Hello CASPER,

I thought I had the Python stuff figured out, but turns out I'm completely lost.

I followed the instructions on this page: 
https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html

I did both the upper set of instructions using pip, and the lower set of 
instructions using the "traditional method". Both result in errors in the third 
set of instructions using ipython.  Am I supposed to do these steps in the 
vitual python environment casp-venv, or in non-virtual environment, or does it 
matter.  I've actually tried both, and neither works for me.

In the first set of instructions using pip, should I be using pip or pip3?

Some possible clues:

(casper_venv) labrat@pop-os:~$ python --version
Python 3.6.9
(casper_venv) labrat@pop-os:~$ pip --version
pip 9.0.1 from /home/labrat/casper_venv/lib/python3.6/site-packages (python 3.6)
(casper_venv) labrat@pop-os:~$ deactivate

labrat@pop-os:~$ python --version
Python 3.6.9
labrat@pop-os:~$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

The closest I got in ipython, I think, yielded this (which is probably wrong 
version, but at least no errors):

In [1]: import casperfpga

In [2]: casperfpga.__version__
Out[2]: '0.0+unknown.202105040928'

Sorry for the discombobulated post, but I think there must be something basic 
I’m just not understanding.

Thanks  -- Jeff

From: Adam Isaacson mailto:aisaac...@ska.ac.za>>
Sent: Friday, April 16, 2021 5:18 AM
To: Casper Lists mailto:casper@lists.berkeley.edu>>
Subject: Re: [casper] python version for casperfpga

Hi Jeff,

This is great information. We had a recent "wheel" support request and it turns 
out it is not needed, but nice that you figured out how to install it. This 
should be added to our readthedocs.

Thanks Jeff! Let me know how the SKARAB and Red Pitaya testing goes.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za<mailto:aisaac...@ska.ac.za>






On Thu, Apr 15, 2021 at 10:26 PM 'Kobesky, Jeffrey CIV USN NRL () 
Washington DC (USA)' via 
casper@lists.berkeley.edu<mailto:casper@lists.berkeley.edu> 
mailto:casper@lists.berkeley.edu>> wrote:
Hello CASPER,

FYI, I ran into slight issue “building wheel” during:  (casper_venv)  
~/mlib_devel$ pip3 install –r requirements.txt

See RED text in attached screenshot.  But I believe everything installed, even 
with the two errors.

Anyway, I believe error was caused because “wheel” was not part of my python 
installation.

I did:  (casper_venv) $ sudo apt install python-wheel-common

Then re-ran (casper_venv)  ~/mlib_devel$ pip3 install –r requirements.txt  , no 
wheel errors.

Hope this helps someone.  – Jeff

Jeffrey Kobesky
Electronics Engineer
Naval Research Laboratory
O: (202) 404-7109
M: (443) 243-1554
OS:  Pop!_OS 18.04 LTS (derived from Ubuntu 18.04 LTS)
Vivado 19.1.1
MATLAB 2018a
mlib_devel branch:  master
Python 2.7 and 3.6, running in (casper_venv)
Devices:  Red Pitaya, SKARAB


From: Adam Isaacson mailto:aisaac...@ska.ac.za>>
Sent: Thursday, April 15, 2021 3:53 AM
To: Casper Lists mailto:casper@lists.berkeley.edu>>
Subject: Re: [casper] python version for casperfpga

Hi Jeff,

Well done on solving your problem. I must say I missed the single underscore 
completely :). It is wonderful when casperites solve their own problems :).

Yes, please keep me posted on Pop OS! or Pop!_OS. I had to look that up to be 
honest. I see it is indeed derived from Ubuntu 18.04LTS. If it works then we 
will update the documentation - this is what CASPER is about = collaboration!

Great to have your energies Jeff.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za<mailto:aisaac...@ska.ac.za>






On Wed, Apr 14, 2021 at 5:19 PM 'Kobesky, Jeffrey CIV USN NRL () Washington 
DC (USA)' via casper@lists.berkeley.edu<mailto:casper@lists.berkeley.edu> 
mailto:casper@lists.berkeley.edu>> wrote:
All good info, please keep hijacking ☺

I do want to add to the original post.  I figured out the original error I got 
was because I used single underscores (casperfpga._version_) instead of double 
underscores (casperfpga.__version__) in ipython.  It’s always the mundane 
details that get me.  But now at least I do understand the Python virtual 
environment which I’ve never used before but seems like a good idea.

Also, Adam, my operating system is Pop OS! 18.04 - which was derived from 
Ubuntu 18.04 - so I’ll report back on the SKARAB/Red Pitaya under that 
operating system.

Thanks again – jeff.

Jeffrey Kobesky
Electronics Engineer
Naval Research Laboratory
O: (202) 404-7109
M: (443) 243-1554

From: Adam Isaacson mailto:aisaac...@ska.ac.za>>
Sent: Wednesd

RE: [casper] python version for casperfpga

2021-05-04 Thread 'Kobesky, Jeffrey CIV USN NRL (5555) Washington DC (USA)' via casper@lists.berkeley.edu
Hello CASPER,

I thought I had the Python stuff figured out, but turns out I'm completely lost.

I followed the instructions on this page: 
https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html

I did both the upper set of instructions using pip, and the lower set of 
instructions using the "traditional method". Both result in errors in the third 
set of instructions using ipython.  Am I supposed to do these steps in the 
vitual python environment casp-venv, or in non-virtual environment, or does it 
matter.  I've actually tried both, and neither works for me.

In the first set of instructions using pip, should I be using pip or pip3?

Some possible clues:

(casper_venv) labrat@pop-os:~$ python --version Python 3.6.9
(casper_venv) labrat@pop-os:~$ pip --version pip 9.0.1 from 
/home/labrat/casper_venv/lib/python3.6/site-packages (python 3.6)
(casper_venv) labrat@pop-os:~$ deactivate labrat@pop-os:~$ python --version 
Python 3.6.9 labrat@pop-os:~$ pip --version pip 9.0.1 from 
/usr/lib/python2.7/dist-packages (python 2.7)

The closest I got in ipython, I think, yielded this (which is probably wrong 
version, but at least no errors):

In [1]: import casperfpga

In [2]: casperfpga.__version__
Out[2]: '0.0+unknown.202105040928'

Sorry for the discombobulated post, but I think there must be something basic 
I’m just not understanding.

Thanks  -- Jeff

From: Adam Isaacson 
Sent: Friday, April 16, 2021 5:18 AM
To: Casper Lists 
Subject: Re: [casper] python version for casperfpga

Hi Jeff,

This is great information. We had a recent "wheel" support request and it turns 
out it is not needed, but nice that you figured out how to install it. This 
should be added to our readthedocs.

Thanks Jeff! Let me know how the SKARAB and Red Pitaya testing goes.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za<mailto:aisaac...@ska.ac.za>






On Thu, Apr 15, 2021 at 10:26 PM 'Kobesky, Jeffrey CIV USN NRL () 
Washington DC (USA)' via 
casper@lists.berkeley.edu<mailto:casper@lists.berkeley.edu> 
mailto:casper@lists.berkeley.edu>> wrote:
Hello CASPER,

FYI, I ran into slight issue “building wheel” during:  (casper_venv)  
~/mlib_devel$ pip3 install –r requirements.txt

See RED text in attached screenshot.  But I believe everything installed, even 
with the two errors.

Anyway, I believe error was caused because “wheel” was not part of my python 
installation.

I did:  (casper_venv) $ sudo apt install python-wheel-common

Then re-ran (casper_venv)  ~/mlib_devel$ pip3 install –r requirements.txt  , no 
wheel errors.

Hope this helps someone.  – Jeff

Jeffrey Kobesky
Electronics Engineer
Naval Research Laboratory
O: (202) 404-7109
M: (443) 243-1554
OS:  Pop!_OS 18.04 LTS (derived from Ubuntu 18.04 LTS)
Vivado 19.1.1
MATLAB 2018a
mlib_devel branch:  master
Python 2.7 and 3.6, running in (casper_venv)
Devices:  Red Pitaya, SKARAB


From: Adam Isaacson mailto:aisaac...@ska.ac.za>>
Sent: Thursday, April 15, 2021 3:53 AM
To: Casper Lists mailto:casper@lists.berkeley.edu>>
Subject: Re: [casper] python version for casperfpga

Hi Jeff,

Well done on solving your problem. I must say I missed the single underscore 
completely :). It is wonderful when casperites solve their own problems :).

Yes, please keep me posted on Pop OS! or Pop!_OS. I had to look that up to be 
honest. I see it is indeed derived from Ubuntu 18.04LTS. If it works then we 
will update the documentation - this is what CASPER is about = collaboration!

Great to have your energies Jeff.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za<mailto:aisaac...@ska.ac.za>






On Wed, Apr 14, 2021 at 5:19 PM 'Kobesky, Jeffrey CIV USN NRL () Washington 
DC (USA)' via casper@lists.berkeley.edu<mailto:casper@lists.berkeley.edu> 
mailto:casper@lists.berkeley.edu>> wrote:
All good info, please keep hijacking ☺

I do want to add to the original post.  I figured out the original error I got 
was because I used single underscores (casperfpga._version_) instead of double 
underscores (casperfpga.__version__) in ipython.  It’s always the mundane 
details that get me.  But now at least I do understand the Python virtual 
environment which I’ve never used before but seems like a good idea.

Also, Adam, my operating system is Pop OS! 18.04 - which was derived from 
Ubuntu 18.04 - so I’ll report back on the SKARAB/Red Pitaya under that 
operating system.

Thanks again – jeff.

Jeffrey Kobesky
Electronics Engineer
Naval Research Laboratory
O: (202) 404-7109
M: (443) 243-1554

From: Adam Isaacson mailto:aisaac...@ska.ac.za>>
Sent: Wednesday, April 14, 2021 4:23 AM
To: Casper Lists mailto:casper@lists.berkeley.edu>>
Subject: Re: [casper] python v

Re: [casper] python version for casperfpga

2021-04-16 Thread Adam Isaacson
Hi Jeff,

This is great information. We had a recent "wheel" support request and it
turns out it is not needed, but nice that you figured out how to install
it. This should be added to our readthedocs.

Thanks Jeff! Let me know how the SKARAB and Red Pitaya testing goes.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Thu, Apr 15, 2021 at 10:26 PM 'Kobesky, Jeffrey CIV USN NRL ()
Washington DC (USA)' via casper@lists.berkeley.edu <
casper@lists.berkeley.edu> wrote:

> Hello CASPER,
>
>
>
> FYI, I ran into slight issue “building wheel” during:  (casper_venv)
>  ~/mlib_devel$ pip3 install –r requirements.txt
>
>
>
> See RED text in attached screenshot.  But I believe everything installed,
> even with the two errors.
>
>
>
> Anyway, I believe error was caused because “wheel” was not part of my
> python installation.
>
>
>
> I did:  (casper_venv) $ sudo apt install python-wheel-common
>
>
>
> Then re-ran (casper_venv)  ~/mlib_devel$ pip3 install –r requirements.txt
> , no wheel errors.
>
>
>
> Hope this helps someone.  – Jeff
>
>
>
> Jeffrey Kobesky
>
> Electronics Engineer
>
> Naval Research Laboratory
>
> O: (202) 404-7109
>
> M: (443) 243-1554
>
> OS:  Pop!_OS 18.04 LTS (derived from Ubuntu 18.04 LTS)
>
> Vivado 19.1.1
>
> MATLAB 2018a
>
> mlib_devel branch:  master
>
> Python 2.7 and 3.6, running in (casper_venv)
>
> Devices:  Red Pitaya, SKARAB
>
>
>
>
>
> *From:* Adam Isaacson 
> *Sent:* Thursday, April 15, 2021 3:53 AM
> *To:* Casper Lists 
> *Subject:* Re: [casper] python version for casperfpga
>
>
>
> Hi Jeff,
>
>
>
> Well done on solving your problem. I must say I missed the single
> underscore completely :). It is wonderful when casperites solve their own
> problems :).
>
>
>
> Yes, please keep me posted on Pop OS! or Pop!_OS. I had to look that up to
> be honest. I see it is indeed derived from Ubuntu 18.04LTS. If it works
> then we will update the documentation - this is what CASPER is about =
> collaboration!
>
>
>
> Great to have your energies Jeff.
>
>
> Kind regards,
>
>
>
> Adam Isaacson
>
> South African Radio Astronomy Observatory (SARAO)
>
> Hardware Manager
>
> Cell: (+27) 825639602
>
> Tel:  (+27) 215067300
>
> email: aisaac...@ska.ac.za
>
>
>
>
>
> On Wed, Apr 14, 2021 at 5:19 PM 'Kobesky, Jeffrey CIV USN NRL ()
> Washington DC (USA)' via casper@lists.berkeley.edu <
> casper@lists.berkeley.edu> wrote:
>
> All good info, please keep hijacking J
>
>
>
> I do want to add to the original post.  I figured out the original error I
> got was because I used single underscores (casperfpga._version_) instead of
> double underscores (casperfpga.__version__) in ipython.  It’s always the
> mundane details that get me.  But now at least I do understand the Python
> virtual environment which I’ve never used before but seems like a good idea.
>
>
>
> Also, Adam, my operating system is Pop OS! 18.04 - which was derived from
> Ubuntu 18.04 - so I’ll report back on the SKARAB/Red Pitaya under that
> operating system.
>
>
>
> Thanks again – jeff.
>
>
>
> Jeffrey Kobesky
>
> Electronics Engineer
>
> Naval Research Laboratory
>
> O: (202) 404-7109
>
> M: (443) 243-1554
>
>
>
> *From:* Adam Isaacson 
> *Sent:* Wednesday, April 14, 2021 4:23 AM
> *To:* Casper Lists 
> *Subject:* Re: [casper] python version for casperfpga
>
>
>
> Hi Jeff and everyone,
>
>
>
> While we are hacking Jeff's thread (apologies, but this will be useful
> info), please note that our toolflow only supports the following Red Pitaya
> devices: STEMlab125-10 (10 bit ADC and DAC) and STEMlab125-14 (14 bit ADC
> and DAC). There are another three Red Pitaya boards that we don't support
> yet - check out:
>
>
>
> 1) CASPER Hardware:
> https://github.com/casper-astro/casper-hardware#casper-hardware
>
> 2) Red Pitaya Hardware comparison:
> https://redpitaya.readthedocs.io/en/latest/developerGuide/125-10/vs.html
>
>
>
> We encourage anyone who would like to add these boards to the toolflow and
> we are happy to support you in the process. I highly recommend attending
> the Hardware Porting Workshops that explain how to use the toolflow for
> development and target new hardware. The next Hardware Porting Workshop is
> likely to be next year, but an email will be sent out with these details
> once defined.
>
>
>
> Just a reminder of our CASPER conference that i

Re: [casper] python version for casperfpga

2021-04-15 Thread Adam Isaacson
Hi Jeff,

Well done on solving your problem. I must say I missed the single
underscore completely :). It is wonderful when casperites solve their own
problems :).

Yes, please keep me posted on Pop OS! or Pop!_OS. I had to look that up to
be honest. I see it is indeed derived from Ubuntu 18.04LTS. If it works
then we will update the documentation - this is what CASPER is about =
collaboration!

Great to have your energies Jeff.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Wed, Apr 14, 2021 at 5:19 PM 'Kobesky, Jeffrey CIV USN NRL ()
Washington DC (USA)' via casper@lists.berkeley.edu <
casper@lists.berkeley.edu> wrote:

> All good info, please keep hijacking J
>
>
>
> I do want to add to the original post.  I figured out the original error I
> got was because I used single underscores (casperfpga._version_) instead of
> double underscores (casperfpga.__version__) in ipython.  It’s always the
> mundane details that get me.  But now at least I do understand the Python
> virtual environment which I’ve never used before but seems like a good idea.
>
>
>
> Also, Adam, my operating system is Pop OS! 18.04 - which was derived from
> Ubuntu 18.04 - so I’ll report back on the SKARAB/Red Pitaya under that
> operating system.
>
>
>
> Thanks again – jeff.
>
>
>
> Jeffrey Kobesky
>
> Electronics Engineer
>
> Naval Research Laboratory
>
> O: (202) 404-7109
>
> M: (443) 243-1554
>
>
>
> *From:* Adam Isaacson 
> *Sent:* Wednesday, April 14, 2021 4:23 AM
> *To:* Casper Lists 
> *Subject:* Re: [casper] python version for casperfpga
>
>
>
> Hi Jeff and everyone,
>
>
>
> While we are hacking Jeff's thread (apologies, but this will be useful
> info), please note that our toolflow only supports the following Red Pitaya
> devices: STEMlab125-10 (10 bit ADC and DAC) and STEMlab125-14 (14 bit ADC
> and DAC). There are another three Red Pitaya boards that we don't support
> yet - check out:
>
>
>
> 1) CASPER Hardware:
> https://github.com/casper-astro/casper-hardware#casper-hardware
>
> 2) Red Pitaya Hardware comparison:
> https://redpitaya.readthedocs.io/en/latest/developerGuide/125-10/vs.html
>
>
>
> We encourage anyone who would like to add these boards to the toolflow and
> we are happy to support you in the process. I highly recommend attending
> the Hardware Porting Workshops that explain how to use the toolflow for
> development and target new hardware. The next Hardware Porting Workshop is
> likely to be next year, but an email will be sent out with these details
> once defined.
>
>
>
> Just a reminder of our CASPER conference that is taking place the week of
> the 17th May via Zoom and is completely free! If interested please check
> out:
>
>
>
> https://casper.berkeley.edu/index.php/meetings-workshops/
>
>
>
> Sorry for the additional advertising! ;)
>
>
> Kind regards,
>
>
>
> Adam Isaacson
>
> South African Radio Astronomy Observatory (SARAO)
>
> Hardware Manager
>
> Cell: (+27) 825639602
>
> Tel:  (+27) 215067300
>
> email: aisaac...@ska.ac.za
>
>
>
>
>
> On Wed, Apr 14, 2021 at 8:02 AM Morag Brown  wrote:
>
> Hi all,
>
>
>
> To add to Amish's info, for ease of access, the design files for said
> projects can be found here
> <https://github.com/casper-astro/tutorials_devel/tree/master/red_pitaya>.
>
>
>
> Morag
>
>
>
> (Sorry Jeffrey!)
>
>
>
> On Wed, Apr 14, 2021 at 7:55 AM Amish Patel  wrote:
>
> Xin chào, Hien,
>
>
>
> CASPER's Tutorials
> <https://casper-toolflow.readthedocs.io/projects/tutorials/en/latest/> have
> three small projects that use the Red Pitaya with the CASPER toolflow.
> First, you will need to do some general setup
> <https://casper-toolflow.readthedocs.io/projects/tutorials/en/latest/tutorials/redpitaya/red_pitaya_setup.html>
>  for
> the Red Pitaya, and (if necessary) install casperfpga on a machine you plan
> on using to interface with it.
>
>
>
> Please do let us know if this is what you are looking for, and/or if you
> have any questions once you're working through it.
>
>
> Regards
>
>
>
> Amish Patel
>
> SARAO
>
>
>
> (Apologies to Jeffrey for hijacking your thread!)
>
>
>
>
>
> On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich  wrote:
>
> Greeting
>
> Can any one point out the link to some small projects that use the Red
> Pitya board with the CASPER flow ?
>
> Regards
>
> Hien Vo
>
> Vietnamese German University
>
>
>
> On T

RE: [casper] python version for casperfpga

2021-04-14 Thread 'Kobesky, Jeffrey CIV USN NRL (5555) Washington DC (USA)' via casper@lists.berkeley.edu
All good info, please keep hijacking ☺

I do want to add to the original post.  I figured out the original error I got 
was because I used single underscores (casperfpga._version_) instead of double 
underscores (casperfpga.__version__) in ipython.  It’s always the mundane 
details that get me.  But now at least I do understand the Python virtual 
environment which I’ve never used before but seems like a good idea.

Also, Adam, my operating system is Pop OS! 18.04 - which was derived from 
Ubuntu 18.04 - so I’ll report back on the SKARAB/Red Pitaya under that 
operating system.

Thanks again – jeff.

Jeffrey Kobesky
Electronics Engineer
Naval Research Laboratory
O: (202) 404-7109
M: (443) 243-1554

From: Adam Isaacson 
Sent: Wednesday, April 14, 2021 4:23 AM
To: Casper Lists 
Subject: Re: [casper] python version for casperfpga

Hi Jeff and everyone,

While we are hacking Jeff's thread (apologies, but this will be useful info), 
please note that our toolflow only supports the following Red Pitaya devices: 
STEMlab125-10 (10 bit ADC and DAC) and STEMlab125-14 (14 bit ADC and DAC). 
There are another three Red Pitaya boards that we don't support yet - check out:

1) CASPER Hardware: 
https://github.com/casper-astro/casper-hardware#casper-hardware
2) Red Pitaya Hardware comparison: 
https://redpitaya.readthedocs.io/en/latest/developerGuide/125-10/vs.html

We encourage anyone who would like to add these boards to the toolflow and we 
are happy to support you in the process. I highly recommend attending the 
Hardware Porting Workshops that explain how to use the toolflow for development 
and target new hardware. The next Hardware Porting Workshop is likely to be 
next year, but an email will be sent out with these details once defined.

Just a reminder of our CASPER conference that is taking place the week of the 
17th May via Zoom and is completely free! If interested please check out:

https://casper.berkeley.edu/index.php/meetings-workshops/

Sorry for the additional advertising! ;)

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za<mailto:aisaac...@ska.ac.za>






On Wed, Apr 14, 2021 at 8:02 AM Morag Brown 
mailto:mbr...@ska.ac.za>> wrote:
Hi all,

To add to Amish's info, for ease of access, the design files for said projects 
can be found 
here<https://github.com/casper-astro/tutorials_devel/tree/master/red_pitaya>.

Morag

(Sorry Jeffrey!)

On Wed, Apr 14, 2021 at 7:55 AM Amish Patel 
mailto:apa...@ska.ac.za>> wrote:
Xin chào, Hien,

CASPER's 
Tutorials<https://casper-toolflow.readthedocs.io/projects/tutorials/en/latest/> 
have three small projects that use the Red Pitaya with the CASPER toolflow. 
First, you will need to do some general 
setup<https://casper-toolflow.readthedocs.io/projects/tutorials/en/latest/tutorials/redpitaya/red_pitaya_setup.html>
 for the Red Pitaya, and (if necessary) install casperfpga on a machine you 
plan on using to interface with it.

Please do let us know if this is what you are looking for, and/or if you have 
any questions once you're working through it.

Regards

Amish Patel
SARAO

(Apologies to Jeffrey for hijacking your thread!)


On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich 
mailto:hien...@vgu.edu.vn>> wrote:
Greeting
Can any one point out the link to some small projects that use the Red Pitya 
board with the CASPER flow ?
Regards
Hien Vo
Vietnamese German University

On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson 
mailto:aisaac...@ska.ac.za>> wrote:
Hi Jeff,

The toolflow is normally used with a Python virtual environment setup with 
Python 3. The casperfpga tool (provides comms to the board) uses just python 
2.7. This is the way we use the toolflow and casperpfga at SARAO (South African 
Radio Astronomy Observatory). We support the SKARAB and Red Pitaya. There are 
Python 3 versions for casperfpga, but we haven't really tested these on the 
SKARAB or Red Pitaya.

I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu 
18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will do in 
the next couple of weeks.

Here is some documentation to install the toolflow on your system and explains 
the virtual environment:

https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html

 Here is some documentation to install casperfpga on your system:

https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html

Here are the ska-sa (SARAO) repos which has the latest for SKARAB and Red 
Pitaya:

1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)

Here are the casper-astro repos, which the majority of the CASPER community 
uses:

1) https://github.com/casper-astro/mlib_devel - this actually does work with 
the SKARAB and Red Pitaya too. You still need

Re: [casper] python version for casperfpga

2021-04-14 Thread Adam Isaacson
Hi Jeff and everyone,

While we are hacking Jeff's thread (apologies, but this will be useful
info), please note that our toolflow only supports the following Red Pitaya
devices: STEMlab125-10 (10 bit ADC and DAC) and STEMlab125-14 (14 bit ADC
and DAC). There are another three Red Pitaya boards that we don't support
yet - check out:

1) CASPER Hardware:
https://github.com/casper-astro/casper-hardware#casper-hardware
2) Red Pitaya Hardware comparison:
https://redpitaya.readthedocs.io/en/latest/developerGuide/125-10/vs.html

We encourage anyone who would like to add these boards to the toolflow and
we are happy to support you in the process. I highly recommend attending
the Hardware Porting Workshops that explain how to use the toolflow for
development and target new hardware. The next Hardware Porting Workshop is
likely to be next year, but an email will be sent out with these details
once defined.

Just a reminder of our CASPER conference that is taking place the week of
the 17th May via Zoom and is completely free! If interested please check
out:

https://casper.berkeley.edu/index.php/meetings-workshops/

Sorry for the additional advertising! ;)

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Wed, Apr 14, 2021 at 8:02 AM Morag Brown  wrote:

> Hi all,
>
> To add to Amish's info, for ease of access, the design files for said
> projects can be found here
> .
>
> Morag
>
> (Sorry Jeffrey!)
>
> On Wed, Apr 14, 2021 at 7:55 AM Amish Patel  wrote:
>
>> Xin chào, Hien,
>>
>> CASPER's Tutorials
>>  have
>> three small projects that use the Red Pitaya with the CASPER toolflow.
>> First, you will need to do some general setup
>> 
>>  for
>> the Red Pitaya, and (if necessary) install casperfpga on a machine you plan
>> on using to interface with it.
>>
>> Please do let us know if this is what you are looking for, and/or if you
>> have any questions once you're working through it.
>>
>> Regards
>>
>> Amish Patel
>> SARAO
>>
>> (Apologies to Jeffrey for hijacking your thread!)
>>
>>
>> On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich  wrote:
>>
>>> Greeting
>>> Can any one point out the link to some small projects that use the Red
>>> Pitya board with the CASPER flow ?
>>> Regards
>>> Hien Vo
>>> Vietnamese German University
>>>
>>> On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson 
>>> wrote:
>>>
 Hi Jeff,

 The toolflow is normally used with a Python virtual environment setup
 with Python 3. The casperfpga tool (provides comms to the board) uses just
 python 2.7. This is the way we use the toolflow and casperpfga at SARAO
 (South African Radio Astronomy Observatory). We support the SKARAB and Red
 Pitaya. There are Python 3 versions for casperfpga, but we haven't really
 tested these on the SKARAB or Red Pitaya.

 I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu
 18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will
 do in the next couple of weeks.

 Here is some documentation to install the toolflow on your system and
 explains the virtual environment:


 https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html

  Here is some documentation to install casperfpga on your system:


 https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html

 Here are the ska-sa (SARAO) repos which has the latest for SKARAB and
 Red Pitaya:

 1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
 2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)

 Here are the casper-astro repos, which the majority of the CASPER
 community uses:

 1) https://github.com/casper-astro/mlib_devel - this actually does
 work with the SKARAB and Red Pitaya too. You still need a Python 3 virtual
 environment if your default python package is 2.7.
 2) https://github.com/casper-astro/casperfpga - this should work with
 SKARAB and Red Pitaya too (Python 2.7)
 3) https://github.com/casper-astro/casperfpga/tree/py3-merge - this
 works with SNAP, but I haven't tested it on SKARAB or the Red Pitaya. It
 may work on the Red Pitaya, but I believe there are still issues with
 SKARAB (Python 3)

 I hope this helps!

 Kind regards,

 Adam Isaacson
 South African Radio Astronomy Observatory (SARAO)
 Hardware Manager
 Cell: (+27) 825639602
 Tel:  (+27) 215067300
 email: aisaac...@ska.ac.za



 On Tue, Apr 13, 2021 at 4:36 PM 'Kobesky, Jeffrey CIV USN NRL 

Re: [casper] python version for casperfpga

2021-04-14 Thread Morag Brown
Hi all,

To add to Amish's info, for ease of access, the design files for said
projects can be found here
.

Morag

(Sorry Jeffrey!)

On Wed, Apr 14, 2021 at 7:55 AM Amish Patel  wrote:

> Xin chào, Hien,
>
> CASPER's Tutorials
>  have
> three small projects that use the Red Pitaya with the CASPER toolflow.
> First, you will need to do some general setup
> 
>  for
> the Red Pitaya, and (if necessary) install casperfpga on a machine you plan
> on using to interface with it.
>
> Please do let us know if this is what you are looking for, and/or if you
> have any questions once you're working through it.
>
> Regards
>
> Amish Patel
> SARAO
>
> (Apologies to Jeffrey for hijacking your thread!)
>
>
> On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich  wrote:
>
>> Greeting
>> Can any one point out the link to some small projects that use the Red
>> Pitya board with the CASPER flow ?
>> Regards
>> Hien Vo
>> Vietnamese German University
>>
>> On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson 
>> wrote:
>>
>>> Hi Jeff,
>>>
>>> The toolflow is normally used with a Python virtual environment setup
>>> with Python 3. The casperfpga tool (provides comms to the board) uses just
>>> python 2.7. This is the way we use the toolflow and casperpfga at SARAO
>>> (South African Radio Astronomy Observatory). We support the SKARAB and Red
>>> Pitaya. There are Python 3 versions for casperfpga, but we haven't really
>>> tested these on the SKARAB or Red Pitaya.
>>>
>>> I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu
>>> 18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will
>>> do in the next couple of weeks.
>>>
>>> Here is some documentation to install the toolflow on your system and
>>> explains the virtual environment:
>>>
>>>
>>> https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html
>>>
>>>  Here is some documentation to install casperfpga on your system:
>>>
>>>
>>> https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html
>>>
>>> Here are the ska-sa (SARAO) repos which has the latest for SKARAB and
>>> Red Pitaya:
>>>
>>> 1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
>>> 2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)
>>>
>>> Here are the casper-astro repos, which the majority of the CASPER
>>> community uses:
>>>
>>> 1) https://github.com/casper-astro/mlib_devel - this actually does work
>>> with the SKARAB and Red Pitaya too. You still need a Python 3 virtual
>>> environment if your default python package is 2.7.
>>> 2) https://github.com/casper-astro/casperfpga - this should work with
>>> SKARAB and Red Pitaya too (Python 2.7)
>>> 3) https://github.com/casper-astro/casperfpga/tree/py3-merge - this
>>> works with SNAP, but I haven't tested it on SKARAB or the Red Pitaya. It
>>> may work on the Red Pitaya, but I believe there are still issues with
>>> SKARAB (Python 3)
>>>
>>> I hope this helps!
>>>
>>> Kind regards,
>>>
>>> Adam Isaacson
>>> South African Radio Astronomy Observatory (SARAO)
>>> Hardware Manager
>>> Cell: (+27) 825639602
>>> Tel:  (+27) 215067300
>>> email: aisaac...@ska.ac.za
>>>
>>>
>>>
>>> On Tue, Apr 13, 2021 at 4:36 PM 'Kobesky, Jeffrey CIV USN NRL ()
>>> Washington DC (USA)' via casper@lists.berkeley.edu <
>>> casper@lists.berkeley.edu> wrote:
>>>
 Hello CASPER,



 I’m installing tool flow and am confused about which python version to
 use for casperfpga.  I have both python 2.7 and 3.6 on my machine.



 For my equipment (red pitaya and skarab) this link
 https://casper-toolflow.readthedocs.io/en/latest/ says to use
 python3.  But if I follow the steps in this link
 https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html
 then casperfpga gets installed under the python 2.7 folder.



 This leads to errors (for example, I get error doing
 “casperfpga._version_” in ipython), but I think I can clear those errors by
 reconfiguring python versioning on my machine.



 For now, big picture questions are:  Should we really be using python3
 for casperfpga with red pitaya and skarab?  If so is there a script
 available that would install casperfpga in the correct python3 folder?
 I’ve looked in the email archives but can’t find answers.



 Thanks!  -- Jeff



 Jeffrey Kobesky

 Electronics Engineer

 Naval Research Laboratory

 O: (202) 404-7109

 M: (443) 243-1554



 --
 You received this message because you are subscribed to the Google
 Groups "casper@lists.berkeley.edu" group.
 To unsubscribe 

Re: [casper] python version for casperfpga

2021-04-13 Thread Amish Patel
Xin chào, Hien,

CASPER's Tutorials
 have
three small projects that use the Red Pitaya with the CASPER toolflow.
First, you will need to do some general setup

for
the Red Pitaya, and (if necessary) install casperfpga on a machine you plan
on using to interface with it.

Please do let us know if this is what you are looking for, and/or if you
have any questions once you're working through it.

Regards

Amish Patel
SARAO

(Apologies to Jeffrey for hijacking your thread!)


On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich  wrote:

> Greeting
> Can any one point out the link to some small projects that use the Red
> Pitya board with the CASPER flow ?
> Regards
> Hien Vo
> Vietnamese German University
>
> On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson  wrote:
>
>> Hi Jeff,
>>
>> The toolflow is normally used with a Python virtual environment setup
>> with Python 3. The casperfpga tool (provides comms to the board) uses just
>> python 2.7. This is the way we use the toolflow and casperpfga at SARAO
>> (South African Radio Astronomy Observatory). We support the SKARAB and Red
>> Pitaya. There are Python 3 versions for casperfpga, but we haven't really
>> tested these on the SKARAB or Red Pitaya.
>>
>> I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu
>> 18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will
>> do in the next couple of weeks.
>>
>> Here is some documentation to install the toolflow on your system and
>> explains the virtual environment:
>>
>>
>> https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html
>>
>>  Here is some documentation to install casperfpga on your system:
>>
>>
>> https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html
>>
>> Here are the ska-sa (SARAO) repos which has the latest for SKARAB and Red
>> Pitaya:
>>
>> 1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
>> 2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)
>>
>> Here are the casper-astro repos, which the majority of the CASPER
>> community uses:
>>
>> 1) https://github.com/casper-astro/mlib_devel - this actually does work
>> with the SKARAB and Red Pitaya too. You still need a Python 3 virtual
>> environment if your default python package is 2.7.
>> 2) https://github.com/casper-astro/casperfpga - this should work with
>> SKARAB and Red Pitaya too (Python 2.7)
>> 3) https://github.com/casper-astro/casperfpga/tree/py3-merge - this
>> works with SNAP, but I haven't tested it on SKARAB or the Red Pitaya. It
>> may work on the Red Pitaya, but I believe there are still issues with
>> SKARAB (Python 3)
>>
>> I hope this helps!
>>
>> Kind regards,
>>
>> Adam Isaacson
>> South African Radio Astronomy Observatory (SARAO)
>> Hardware Manager
>> Cell: (+27) 825639602
>> Tel:  (+27) 215067300
>> email: aisaac...@ska.ac.za
>>
>>
>>
>> On Tue, Apr 13, 2021 at 4:36 PM 'Kobesky, Jeffrey CIV USN NRL ()
>> Washington DC (USA)' via casper@lists.berkeley.edu <
>> casper@lists.berkeley.edu> wrote:
>>
>>> Hello CASPER,
>>>
>>>
>>>
>>> I’m installing tool flow and am confused about which python version to
>>> use for casperfpga.  I have both python 2.7 and 3.6 on my machine.
>>>
>>>
>>>
>>> For my equipment (red pitaya and skarab) this link
>>> https://casper-toolflow.readthedocs.io/en/latest/ says to use python3.
>>> But if I follow the steps in this link
>>> https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html
>>> then casperfpga gets installed under the python 2.7 folder.
>>>
>>>
>>>
>>> This leads to errors (for example, I get error doing
>>> “casperfpga._version_” in ipython), but I think I can clear those errors by
>>> reconfiguring python versioning on my machine.
>>>
>>>
>>>
>>> For now, big picture questions are:  Should we really be using python3
>>> for casperfpga with red pitaya and skarab?  If so is there a script
>>> available that would install casperfpga in the correct python3 folder?
>>> I’ve looked in the email archives but can’t find answers.
>>>
>>>
>>>
>>> Thanks!  -- Jeff
>>>
>>>
>>>
>>> Jeffrey Kobesky
>>>
>>> Electronics Engineer
>>>
>>> Naval Research Laboratory
>>>
>>> O: (202) 404-7109
>>>
>>> M: (443) 243-1554
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "casper@lists.berkeley.edu" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to casper+unsubscr...@lists.berkeley.edu.
>>> To view this discussion on the web visit
>>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/cfbc6d4fdd764eac96224b1df77016aa%40nrl.navy.mil
>>> 
>>> .

Re: [casper] python version for casperfpga

2021-04-13 Thread Hien Vo Bich
Greeting
Can any one point out the link to some small projects that use the Red
Pitya board with the CASPER flow ?
Regards
Hien Vo
Vietnamese German University

On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson  wrote:

> Hi Jeff,
>
> The toolflow is normally used with a Python virtual environment setup with
> Python 3. The casperfpga tool (provides comms to the board) uses just
> python 2.7. This is the way we use the toolflow and casperpfga at SARAO
> (South African Radio Astronomy Observatory). We support the SKARAB and Red
> Pitaya. There are Python 3 versions for casperfpga, but we haven't really
> tested these on the SKARAB or Red Pitaya.
>
> I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu
> 18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will
> do in the next couple of weeks.
>
> Here is some documentation to install the toolflow on your system and
> explains the virtual environment:
>
>
> https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html
>
>  Here is some documentation to install casperfpga on your system:
>
>
> https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html
>
> Here are the ska-sa (SARAO) repos which has the latest for SKARAB and Red
> Pitaya:
>
> 1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
> 2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)
>
> Here are the casper-astro repos, which the majority of the CASPER
> community uses:
>
> 1) https://github.com/casper-astro/mlib_devel - this actually does work
> with the SKARAB and Red Pitaya too. You still need a Python 3 virtual
> environment if your default python package is 2.7.
> 2) https://github.com/casper-astro/casperfpga - this should work with
> SKARAB and Red Pitaya too (Python 2.7)
> 3) https://github.com/casper-astro/casperfpga/tree/py3-merge - this works
> with SNAP, but I haven't tested it on SKARAB or the Red Pitaya. It may work
> on the Red Pitaya, but I believe there are still issues with SKARAB (Python
> 3)
>
> I hope this helps!
>
> Kind regards,
>
> Adam Isaacson
> South African Radio Astronomy Observatory (SARAO)
> Hardware Manager
> Cell: (+27) 825639602
> Tel:  (+27) 215067300
> email: aisaac...@ska.ac.za
>
>
>
> On Tue, Apr 13, 2021 at 4:36 PM 'Kobesky, Jeffrey CIV USN NRL ()
> Washington DC (USA)' via casper@lists.berkeley.edu <
> casper@lists.berkeley.edu> wrote:
>
>> Hello CASPER,
>>
>>
>>
>> I’m installing tool flow and am confused about which python version to
>> use for casperfpga.  I have both python 2.7 and 3.6 on my machine.
>>
>>
>>
>> For my equipment (red pitaya and skarab) this link
>> https://casper-toolflow.readthedocs.io/en/latest/ says to use python3.
>> But if I follow the steps in this link
>> https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html
>> then casperfpga gets installed under the python 2.7 folder.
>>
>>
>>
>> This leads to errors (for example, I get error doing
>> “casperfpga._version_” in ipython), but I think I can clear those errors by
>> reconfiguring python versioning on my machine.
>>
>>
>>
>> For now, big picture questions are:  Should we really be using python3
>> for casperfpga with red pitaya and skarab?  If so is there a script
>> available that would install casperfpga in the correct python3 folder?
>> I’ve looked in the email archives but can’t find answers.
>>
>>
>>
>> Thanks!  -- Jeff
>>
>>
>>
>> Jeffrey Kobesky
>>
>> Electronics Engineer
>>
>> Naval Research Laboratory
>>
>> O: (202) 404-7109
>>
>> M: (443) 243-1554
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "casper@lists.berkeley.edu" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to casper+unsubscr...@lists.berkeley.edu.
>> To view this discussion on the web visit
>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/cfbc6d4fdd764eac96224b1df77016aa%40nrl.navy.mil
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnHqgYbkB2eymR-Vf6k6Lsug-YS14TZfPYEMhZKBx-yMFw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To 

Re: [casper] python version for casperfpga

2021-04-13 Thread Adam Isaacson
Hi Jeff,

The toolflow is normally used with a Python virtual environment setup with
Python 3. The casperfpga tool (provides comms to the board) uses just
python 2.7. This is the way we use the toolflow and casperpfga at SARAO
(South African Radio Astronomy Observatory). We support the SKARAB and Red
Pitaya. There are Python 3 versions for casperfpga, but we haven't really
tested these on the SKARAB or Red Pitaya.

I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu
18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will
do in the next couple of weeks.

Here is some documentation to install the toolflow on your system and
explains the virtual environment:

https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html

 Here is some documentation to install casperfpga on your system:

https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html

Here are the ska-sa (SARAO) repos which has the latest for SKARAB and Red
Pitaya:

1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)

Here are the casper-astro repos, which the majority of the CASPER community
uses:

1) https://github.com/casper-astro/mlib_devel - this actually does work
with the SKARAB and Red Pitaya too. You still need a Python 3 virtual
environment if your default python package is 2.7.
2) https://github.com/casper-astro/casperfpga - this should work with
SKARAB and Red Pitaya too (Python 2.7)
3) https://github.com/casper-astro/casperfpga/tree/py3-merge - this works
with SNAP, but I haven't tested it on SKARAB or the Red Pitaya. It may work
on the Red Pitaya, but I believe there are still issues with SKARAB (Python
3)

I hope this helps!

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Tue, Apr 13, 2021 at 4:36 PM 'Kobesky, Jeffrey CIV USN NRL ()
Washington DC (USA)' via casper@lists.berkeley.edu <
casper@lists.berkeley.edu> wrote:

> Hello CASPER,
>
>
>
> I’m installing tool flow and am confused about which python version to use
> for casperfpga.  I have both python 2.7 and 3.6 on my machine.
>
>
>
> For my equipment (red pitaya and skarab) this link
> https://casper-toolflow.readthedocs.io/en/latest/ says to use python3.
> But if I follow the steps in this link
> https://casper-toolflow.readthedocs.io/en/latest/src/How-to-install-casperfpga.html
> then casperfpga gets installed under the python 2.7 folder.
>
>
>
> This leads to errors (for example, I get error doing
> “casperfpga._version_” in ipython), but I think I can clear those errors by
> reconfiguring python versioning on my machine.
>
>
>
> For now, big picture questions are:  Should we really be using python3 for
> casperfpga with red pitaya and skarab?  If so is there a script available
> that would install casperfpga in the correct python3 folder?  I’ve looked
> in the email archives but can’t find answers.
>
>
>
> Thanks!  -- Jeff
>
>
>
> Jeffrey Kobesky
>
> Electronics Engineer
>
> Naval Research Laboratory
>
> O: (202) 404-7109
>
> M: (443) 243-1554
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/cfbc6d4fdd764eac96224b1df77016aa%40nrl.navy.mil
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnHqgYbkB2eymR-Vf6k6Lsug-YS14TZfPYEMhZKBx-yMFw%40mail.gmail.com.