Hi Gonzalo,

You're not running your ipython shell within the casperfpga directory,
are you? I know that can cause weird problems with the import.

Cheers
Jack

On Mon, 29 Jul 2019 at 12:03, Gonzalo Burgos <[email protected]> wrote:
>
> Hello,
> I tried to use your suggestions but now I can't connect to the roach. This a 
> new error come up after the reinstall of the casperfpga v0.4.3 and I test the 
> same with the v0.4.2 and v0.4.1 getting the same error.
>
> what I can do?
>
> In [2]: fpga = casperfpga.CasperFpga('roach020e18')
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
> <ipython-input-2-11892628231f> in <module>()
> ----> 1 fpga = casperfpga.CasperFpga('roach020e18')
>
> AttributeError: 'module' object has no attribute 'CasperFpga'
>
> regards
>
> El jue., 18 jul. 2019 a las 4:35, Amish Patel (<[email protected]>) escribió:
>>
>> Hi Gonzalo,
>>
>> Also worth mentioning for completeness, please do remove any existing 
>> installation(s) of casperfpga on your machine/server via the command below.
>> - sudo rm -r 
>> /usr/local/lib/python2.7/dist-packages/casperfpga-<version-hash>.egg
>> - You should also check if there are any other items laying around in the 
>> /dist-packages/ folder from this casperfpga install
>>
>> Do let me/us know how it goes.
>>
>> Regards
>>
>> Amish Patel
>> SARAO
>>
>>
>> On Thu, 18 Jul 2019 at 08:52, James Smith <[email protected]> wrote:
>>>
>>> Hello Gonzalo,
>>>
>>> Your Casperfpga version seems to be a bit too recent - I stand under 
>>> correction here but later versions might have broken backwards 
>>> compatibility with ROACH2.
>>>
>>> Try checking out v0.4.3 or one of the other slightly older releases in your 
>>> casperfpga repo and reinstalling:
>>>
>>> cd /path/to/casperfpga
>>> git checkout v0.4.3
>>> sudo python setup.py install
>>>
>>> Give that a whirl and let us know how you get on.
>>>
>>> Regards,
>>> James
>>>
>>>
>>> On Thu, Jul 18, 2019 at 12:04 AM Gonzalo Burgos <[email protected]> wrote:
>>>>
>>>> Hi everyone.
>>>> I installed all toolflow for roach2
>>>>
>>>> -matlab2012b -
>>>> -ISE, xilinx 14.7 
>>>> https://github.com/casper-astro/mlib_devel/wiki/How-to-install-Xilinx-ISE 
>>>> and  import the ip cores from 11 de xilinx version
>>>> -Python libraries 
>>>> https://docs.google.com/document/d/1mqDIwhHo3981_Rq9Ma6Dl8UnQUzPah6DKQ55fsaeI4c/edit
>>>> -Simulink libraries
>>>>
>>>> but when i try to upload .fpg file on roach, python shows me this error.
>>>>
>>>>
>>>> In [3]: fpga.upload_to_ram_and_program('roach2_tut_intro.fpg')
>>>> ---------------------------------------------------------------------------
>>>> TypeError                                 Traceback (most recent call last)
>>>> <ipython-input-3-60d12d4aaa3e> in <module>()
>>>> ----> 1 fpga.upload_to_ram_and_program('roach2_tut_intro.fpg')
>>>>
>>>> /usr/local/lib/python2.7/dist-packages/casperfpga-3.2.dev629+master.19c93d9-py2.7-linux-x86_64.egg/casperfpga/casperfpga.pyc
>>>>  in upload_to_ram_and_program(self, filename, wait_complete, 
>>>> legacy_reg_map, chunk_size)
>>>>     268             filename = self.bitstream
>>>>     269         rv = self.transport.upload_to_ram_and_program(
>>>> --> 270             filename=filename, wait_complete=wait_complete, 
>>>> chunk_size=chunk_size)
>>>>     271         if not wait_complete:
>>>>     272             return True
>>>>
>>>> TypeError: upload_to_ram_and_program() got an unexpected keyword argument 
>>>> 'chunk_size
>>>>
>>>> Thanks and cheers!
>>>> --
>>>>
>>>> --
>>>> 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/CALGU03RzpOhO7D5gauqaKNxm_0hUrcnwwc4kfpYdApHmGwGKCA%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/CAG67D37T0b-sshLsMW%2BdLN7Vx7RcLJOLuqKU2ucRugdvbvHs_w%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/CANfrX%3D_G45-N-efgeLPpbPruDZJDXv1xMfnN1sqvVuFT0%3DCVJw%40mail.gmail.com.
>
>
>
> --
> Gonzalo Burgos F.
> CePIA, Astronomy Department
> Universidad de Concepción, Chile
> Cell: +56 9 6122 9380
>
> --
> 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/CALGU03TmryTQnvqArYqtNe50C872HDGyUt%2BpE55Aa8w7QAqHpw%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/CAG1GKSkosv7BSQjX26NAXfBjALjKqSt6OHJR%2BYLs1YvkmN%2BSPQ%40mail.gmail.com.

Reply via email to