Hi Guillermo, The branch that Danny sent you is the correct branch to use https://github.com/casper-astro/casperfpga/tree/py3-merge. The branch in the ska-sa repo is still a work in progress and needs to be fully tested. I have a feeling that both branches may not work for the SKARAB hardware - needs some tweaks. I can say that python 2.7 casperfpga works just fine for SKARAB though.
Kind regards, Adam Isaacson South African Radio Astronomy Observatory (SARAO) Hardware Manager Cell: (+27) 825639602 Tel: (+27) 215067300 email: [email protected] On Mon, Mar 22, 2021 at 3:53 PM Guillermo Gancio <[email protected]> wrote: > Hi Danny, > > Thank you very much, it seems to be ok! > What I did was... > Clone the git, change the branch to py3-merge, pip install -r > requirements, python setup.py install... > > Then from from Ipython I got: > > In [1]: import casperfpga > > In [2]: casperfpga.__version__ > Out[2]: '0.4.4.dev1032+py3.merge.c536a4d' > In [6]: fpga.is_connected() > Out[6]: True > > > Thank you very much! > > > El lun, 22 mar 2021 a las 10:35, Danny C Price (<[email protected]>) > escribió: > > > > Hi Guillermo, > > > > You could try this branch: > https://github.com/casper-astro/casperfpga/tree/py3-merge > > > > This works for my purposes in Py3 (with the snap board), with the *huge* > caveat that adc calibration doesnt work. (Ive heard that this has been > solved by Aaron and Jonathon but not merged). > > > > Cheers, > > Danny > > > > > > On Mon, 22 Mar 2021, 21:28 Guillermo Gancio, <[email protected]> wrote: > >> > >> Dear all, > >> > >> I'm trying the python3-port of casperfpga, from > >> https://github.com/ska-sa/casperfpga/tree/python3-port > >> I had to fix some minnor issues like > >> "except KatcpClientError, e: " to "(except KatcpClientError, e): > >> and > >> "from thread" to "from _thread" > >> which I'm not sure if they are ok.... > >> And then I got the following error while doing "import casperfpga" in > >> ipython, that I cannot figure out.. > >> > >> > /home/user1/casperfpga3/lib/python3.7/site-packages/katcp/resource_client.py > >> in <module>() > >> 847 '{1!s}'.format(sensor_name, > reply)) > >> 848 # Register with the ABC > >> --> 849 > resource.KATCPSensorsManager.register(KATCPClientResourceSensorsManager) > >> 850 > >> 851 class KATCPClientResourceRequest(resource.KATCPRequest): > >> > >> AttributeError: type object 'KATCPSensorsManager' has no attribute > 'register' > >> > >> Any idea? > >> Thanks. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups "[email protected]" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > >> To view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CA%2BEePfS%3DVnQKv-E%2ByQpDOWJm7gRxZn2HcX8N-2K-JefPqvHX2g%40mail.gmail.com > . > > > > -- > > You received this message because you are subscribed to the Google > Groups "[email protected]" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAAtMgq%3DdgbqHJK4iGw8t1Zfeji1dbLrcHOMUoP6FWs%2BpWd%2BC8w%40mail.gmail.com > . > > -- > You received this message because you are subscribed to the Google Groups " > [email protected]" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CA%2BEePfSJmqiL4mPdVNU%2B8kKmQEZdGDkm8zjdBOuwh4r75XFC3A%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnEp_pG%2BtR8cQCOYVp0Ozpz8soxBaSRDL8mGKqnETYt_fA%40mail.gmail.com.

