Excellent insight about Python, Jack.
For the information of anyone interested, I did our port and tested it
on SKARAB. Amish Patel did some testing of the katcp stuff on Red Pitaya
- but I'm not sure that I remember what the outcome was. I think it
didn't work and I did not have a chance at the time to fix the problem.
But then it may have worked. I forget.
Regards,
James
On 2020/05/07 13:46, Jack Hickish wrote:
Hi all
It seems a bunch of people have made Py3 versions which, for very
understandable reasons, mostly only work for the boards they have on
hand to test. E.g., the ska-sa branch has only been tested (as far as
I'm aware) with SKARAB, and when I used it wouldn't work out the box
on SNAP. I've been trying to gather different people's work in the
casper-astro py3-merge branch, this includes the ska-sa/python3-port
branch, SNAP work from others, and will at some point incorporate some
SNAP2 stuff from me.
I've no idea what the state of katcp (i.e. ROACH2 / SNAP+raspberry pi)
comms is - I suspect it won't be without issues. ROACH2 also
potentially creates issues in that most of the earlier ROACH2 boot
images don't support casperfpga's mechanism for programming. So shout
if you get into trouble. FWIW the way I've been installing casperfpga is:
git clone it; cd casperfpga
pip install -r build_requirements.txt
python setup.py install
I have no idea if this is the recommended way. It is python after all,
so it's important that there should be at least 4 ways to install, and
ideally only 2.5 of these should actually work.
Cheers
Jack
On Thu, 7 May 2020 at 09:01, Adam Isaacson <aisaac...@ska.ac.za
<mailto:aisaac...@ska.ac.za>> wrote:
Hi Sean and Wael,
Yes, that is correct. Casperfpga is only supported with python 2.x
for now. We have been working on porting this to python3. I know
at SARAO we have a python3 compatible version, but I haven't
tested it fully yet.
You are welcome to try and let me/James Smith know:
https://github.com/ska-sa/casperfpga/tree/python3-port
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, May 7, 2020 at 2:38 AM Wael Farah <wael.a.fa...@gmail.com
<mailto:wael.a.fa...@gmail.com>> wrote:
Hi Sean,
I might be wrong, but this error is due to the fact that the
casperfpga module that you are using (when you do "pip
install" and/or the master branch of the github repo) is meant
to work on python 2.x.
What I can suggest doing is the following:
Uninstall casperfpga
>> pip uninstall casperfpga
Then in your git directory, do a
>> git checkout py3-merge
This will switch to the python3 version of the module, and
then install it.
Hope this will fix the problem!
Cheers,
Wael
On Wed, 6 May 2020 at 10:23, Sean Mckee <semc8...@colorado.edu
<mailto:semc8...@colorado.edu>> wrote:
Greetings Casperites,
I'm new to Linux, and I think I must have some simple
setting adjusted incorrectly.
I'm running ubuntu 16.04 and tried this on a fresh install.
I first simply tried "pip install casperfpga", but this
gave me the error message:
ERROR: Could not find a version that satisfies the
requirement casperfpga (from versions: none)
ERROR: No matching distribution found for casperfpga
I then cloned from
https://github.com/casper-astro/casperfpga.git and
installed. The installation seemed to go fine, but when I
open up an ipython instance and type "import casperfpga" I
get the following:
----> 1 import casperfpga
/home/sean/Casper/casper_venv/lib/python3.5/site-packages/casperfpga-0.1.3-py3.5-linux-x86_64.egg/casperfpga/__init__.py
in <module>()
4
5 # import all the main classes that we'll use often
----> 6 from bitfield import Bitfield, Field
7 from katadc import KatAdc
8 from casperfpga import CasperFpga
ImportError: No module named 'bitfield'
I tried installing bitfield via "pip install bitfield",
but this seems to be a different version of bitfield than
expected by casperfpga. I get this error message:
----> 1 import casperfpga
/home/sean/Casper/casper_venv/lib/python3.5/site-packages/casperfpga-0.1.3-py3.5-linux-x86_64.egg/casperfpga/__init__.py
in <module>()
4
5 # import all the main classes that we'll use often
----> 6 from bitfield import Bitfield, Field
7 from katadc import KatAdc
8 from casperfpga import CasperFpga
ImportError: cannot import name 'Field'
All of this was run from a python 3 virtual environment.
Any insight into this?
Thanks,
Sean
--
You received this message because you are subscribed to
the Google Groups "casper@lists.berkeley.edu
<mailto: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
<mailto:casper+unsubscr...@lists.berkeley.edu>.
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/b00b1193-9742-480b-87df-f4e5a110b683%40lists.berkeley.edu
<https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/b00b1193-9742-480b-87df-f4e5a110b683%40lists.berkeley.edu?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the
Google Groups "casper@lists.berkeley.edu
<mailto: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
<mailto:casper+unsubscr...@lists.berkeley.edu>.
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CALO2pVeJM3N3khtta4dF1B7Unui7fGj9bP9Ooy_rR%3DOZzd-4wA%40mail.gmail.com
<https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CALO2pVeJM3N3khtta4dF1B7Unui7fGj9bP9Ooy_rR%3DOZzd-4wA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google
Groups "casper@lists.berkeley.edu
<mailto: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
<mailto: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%3DnE4RE3gVbJxfaVTjTkJQsBNcQsv1dRbK4bp6njbD%3DTarQ%40mail.gmail.com
<https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnE4RE3gVbJxfaVTjTkJQsBNcQsv1dRbK4bp6njbD%3DTarQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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
<mailto:casper+unsubscr...@lists.berkeley.edu>.
To view this discussion on the web visit
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkwEPZkh9cWVsV%2BMrOQpdCtCzXmTuL4w%3DMC4WFgHcXEqg%40mail.gmail.com
<https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkwEPZkh9cWVsV%2BMrOQpdCtCzXmTuL4w%3DMC4WFgHcXEqg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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/a0017ac3-ce20-fcf7-2012-350483ff5426%40ska.ac.za.