Hi Adam, Thanks for your reply, The idea is to start by program a redpitaya with the bof file from the git/tutorial, so at this point i'm not using any model/slx, mlib_evel. Can this afect the casperfpga for the communication with a casperized board?
The problem that I have is right after "import casperfpga", I put the complete error in a txt file with it, for (I hope) a better clarity. The ipython is executed from my home directory. Thanks again, El vie, 12 feb 2021 a las 14:01, Adam Isaacson (<[email protected]>) escribió: > Hi Guillermo, > > Please can I have a more detailed screenshot of your steps. I don't just > want to see the error. I want to see all the steps proceeding the error. > This is not clear to me from your screen shot. > > 1) What board are you targeting? I see you are using the tengbe library? > Is this perhaps a ROACH2 or SNAP? ROACH2 may or may not have issues when > using the latest casperfpga githash, so be aware. There is a ROACH2 > casperfpga githash, but it doesn't have all the latest fixes. > 2) Send me your slx, so that I can build and verify if needed > 3) What repo of mlib_devel (include the githash and branch) and casperfpga > are you using? > > I know I have had that progska issue before when running ipython under the > casperfpga cloned directory. This is clearly a new issue now related to the > tengbe component. > > Please note that I am busy installing my new Ubuntu 18.04LTS machine and > so it will take some time for me to look at this further until my > development is setup and working properly. > > Kind regards, > > Adam Isaacson > South African Radio Astronomy Observatory (SARAO) > Hardware Manager > Cell: (+27) 825639602 > Tel: (+27) 215067300 > email: [email protected] > > > > On Fri, Feb 12, 2021 at 6:09 PM Guillermo Gancio <[email protected]> > wrote: > >> Hi, >> Thanks for all the replies, I tried with " I think try going into the >> progska directory, `make && make install` then try again? It's been a >> while since I've done this." with no success.. >> >> Then I follow the steps from Adam with no success, but a different >> error.... >> The install procedure goes without any error. >> >> 1) You are not running the python3 virtual machine. No virtual machine >> should be used. >> That's correct, I'm not using a virtual machine (or virtual env) >> >> 2) When you run "ipython" you are doing it outside the closed >> "casperfpga" repo. This is important >> Aha, I was inside casperfpga, when doing it outside the casperfpga >> directory I got other error.... >> " KeyError: 'casperfpga/tengbe_mmap.txt' " >> >> 3) point three gives the error, so I can't get the casperfpga_version- >> >> 4) What githash of casperfpga are you using? >> git rev-parse HEAD gives: eac2d4625c88da575a7fe82df2582cf2be43e37e >> >> >> >> Thanks again!!! >> Cheers, >> >> >> El vie, 12 feb 2021 a las 4:17, Adam Isaacson (<[email protected]>) >> escribió: >> > >> > Hi Guillermo, >> > >> > The instructions you are following should work to install casperfpga. I >> find the following install procedure works for me: >> > >> > # remove current casperfpga install files >> > 1) $ cd /usr/local/lib/python2.7/dist-packages >> > 2) $ sudo rm -rf casper* >> > >> > # clone the repository to your working directory >> > 3) $ cd /path/to/working/directory >> > 4) $ git clone https://github.com/casper-astro/casperfpga.git >> > 5) $ cd casperfpga >> > 6) $ git checkout master >> > 7) $ sudo pip install -r requirements.txt >> > 8) $ sudo python setup.py install >> > >> > Please confirm/provide the following for me: >> > >> > 1) You are not running the python3 virtual machine. No virtual machine >> should be used. >> > >> > 2) When you run "ipython" you are doing it outside the closed >> "casperfpga" repo. This is important >> > >> > 3) Run the following steps at the terminal: >> > >> > a) ipython >> > >> > b) import casperfpga >> > >> > c) casperfpga.__version__ (What version do you read back?) >> > >> > 4) What githash of casperfpga are you using? >> > >> > 5) Send screen captures - this helps with debugging! >> > >> > Kind regards, >> > >> > >> > Adam Isaacson >> > South African Radio Astronomy Observatory (SARAO) >> > Hardware Manager >> > Cell: (+27) 825639602 >> > Tel: (+27) 215067300 >> > email: [email protected] >> > >> > >> > >> > On Fri, Feb 12, 2021 at 8:09 AM Colm Bracken <[email protected]> >> wrote: >> >> >> >> Have you definitely downloaded and installed all the python programs? >> >> >> >> On Thu 11 Feb 2021, 5:02 PM Guillermo Gancio, <[email protected]> >> wrote: >> >>> >> >>> Hi all, >> >>> I'm having a silly error that I Can't figure out. >> >>> I'm installing casperfpga on a Ubuntu 18.04, python 2.7 and I get the >> error, >> >>> >> >>> ImportError: No module named progska >> >>> >> >>> I followed the steps from >> https://github.com/casper-astro/casperfpga#installation with no apparent >> errors... >> >>> >> >>> 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%2BEePfQiGYL3iG5E4V19SXXGhoSUDnLjkzsUT3CSaOOu_W7OQA%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/CAEx9wh_d85iT2fM9TJ77ug1MVus_Qy3henpyGVY8zmkbBJCgrQ%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%3DnF%3DuePD5zB8F%2B8s4SboXXwBSSS9r9rE7Zp%2B4PTBY1_Y6g%40mail.gmail.com >> . >> >> >> >> -- >> Instituto Argentino de Radioastronomia >> [Argentine Institute of Radioastronomy] >> >> Guillermo M. Gancio >> Responsable Área Observatorio >> [Head of Observatory] >> >> Tel: (0054-0221) 482-4903 Int: 106 >> Mail laboral [email protected] >> >> -- >> 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%2BEePfSC_L-e4iU%3D%2Bmih9KwaYu_YLC34aHKNg59WJ6c_G4NWSQ%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%3DnG1XMAUp1inqJLZ13U4zGkY93C%2Bssk56hE%2B_UJg7O0Ymg%40mail.gmail.com > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CADTJ%3DnG1XMAUp1inqJLZ13U4zGkY93C%2Bssk56hE%2B_UJg7O0Ymg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Instituto Argentino de Radioastronomia [Argentine Institute of Radioastronomy] Guillermo M. Gancio Responsable Área Observatorio [Head of Observatory] Tel: (0054-0221) 482-4903 Int: 106 Mail laboral [email protected] -- 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%2BEePfQg%3DyejS%2B%3DAU0K3C5hCS0dwY4-1xBzOu-ST1-gyFL%3DdBw%40mail.gmail.com.
$ ipython Python 2.7.17 (default, Sep 30 2020, 13:38:04) Type "copyright", "credits" or "license" for more information. IPython 5.3.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import casperfpga --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-1-8e84a7e1c9ad> in <module>() ----> 1 import casperfpga build/bdist.linux-x86_64/egg/casperfpga/__init__.py in <module>() build/bdist.linux-x86_64/egg/casperfpga/casperfpga.py in <module>() build/bdist.linux-x86_64/egg/casperfpga/tengbe.py in <module>() /usr/lib/python2.7/dist-packages/pkg_resources/__init__.pyc in resource_filename(self, package_or_requirement, resource_name) 1135 """Return a true filesystem path for specified resource""" 1136 return get_provider(package_or_requirement).get_resource_filename( -> 1137 self, resource_name 1138 ) 1139 /usr/lib/python2.7/dist-packages/pkg_resources/__init__.pyc in get_resource_filename(self, manager, resource_name) 1644 for name in eagers: 1645 self._extract_resource(manager, self._eager_to_zip(name)) -> 1646 return self._extract_resource(manager, zip_path) 1647 1648 @staticmethod /usr/lib/python2.7/dist-packages/pkg_resources/__init__.pyc in _extract_resource(self, manager, zip_path) 1665 return os.path.dirname(last) 1666 -> 1667 timestamp, size = self._get_date_and_size(self.zipinfo[zip_path]) 1668 1669 if not WRITE_SUPPORT: KeyError: 'casperfpga/tengbe_mmap.txt' In [2]:

