Hi
I'm using Ubuntu 14.04 64 bits. I installed all of the following packages:

https://pypi.python.org/pypi/katcp/0.6.0
https://pypi.python.org/pypi/corr
https://pypi.python.org/pypi/pyephem
https://pypi.python.org/pypi/spead
https://pypi.python.org/pypi/construct
https://pypi.python.org/pypi/h5py/2.6.0

After installing everything correctly, I get this error:

rolando@rolando-MS-7815:~/codigo_ROACH/roach-adc-tutorial-master$ sudo
python adc_init.py -I roach040433 -q
Traceback (most recent call last):
  File "adc_init.py", line 44, in <module>
    roach = ADC.ADC(args.roach)
  File "/home/rolando/codigo_ROACH/roach-adc-tutorial-master/ADC.py", line
48, in __init__
    _katcp.FpgaClient.__init__(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.py", line
86, in __init__
    self.start(daemon = True)
TypeError: start() got an unexpected keyword argument 'daemon'
rolando@rolando-MS-7815:~/codigo_ROACH/roach-adc-tutorial-master$

A friend of mine from IRYA, suggested that I must use the katcp 0.3.4
version. I installed this katcp version and everything worked properly.

Why the most recent version of katcp (0.6.0) not work for me?

Regards

Rolando Paz

2016-06-21 15:20 GMT-06:00 Rolando Paz <flx...@gmail.com>:

> Hi Louis
>
> After installing the new versions of katcp and corr:
>
> https://pypi.python.org/pypi/katcp
> https://pypi.python.org/pypi/corr
>
> the following error occurs:
>
> rolando@rolando-MS-7815:~/Downloads/roach-adc-tutorial-master$ sudo
> python adc_init.py -I roach040433 -q
> /usr/local/lib/python2.7/dist-packages/katcp-0.6.0-py2.7.egg/katcp/__init__.py:43:
> UserWarning: Could not import some modules, fine during setup, but will
> prevent the library from working if you see this after installation
>   warnings.warn('Could not import some modules, fine during setup, '
> ERROR:root:Error importing:
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/katcp-0.6.0-py2.7.egg/katcp/__init__.py",
> line 23, in <module>
>     from .core import (Message, KatcpSyntaxError, MessageParser,
>   File
> "/usr/local/lib/python2.7/dist-packages/katcp-0.6.0-py2.7.egg/katcp/core.py",
> line 22, in <module>
>     from tornado.gen import with_timeout
> ImportError: cannot import name with_timeout
> Traceback (most recent call last):
>   File "adc_init.py", line 23, in <module>
>     import ADC
>   File "/home/rolando/Downloads/roach-adc-tutorial-master/ADC.py", line
> 25, in <module>
>     from corr import katcp_wrapper as _katcp
>   File "/usr/local/lib/python2.7/dist-packages/corr/__init__.py", line 11,
> in <module>
>     import cn_conf, katcp_wrapper, katcp_serial, log_handlers,
> corr_functions, bf_functions, corr_wb, corr_nb, corr_ddc, scroll, katadc,
> iadc, termcolors, rx, sim, snap, threaded
>   File "/usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.py",
> line 60, in <module>
>     class FpgaClient(CallbackClient):
> NameError: name 'CallbackClient' is not defined
> rolando@rolando-MS-7815:~/Downloads/roach-adc-tutorial-master$
>
> 2016-06-21 12:16 GMT-06:00 Louis P. Dartez <louisdar...@gmail.com>:
>
>> Hello Rolando,
>> It looks like your katcp and corr (which has the katcp_wrapper) are out
>> of sync with each other, and therefore incompatible. But I’m not expert in
>> either :P. I would suggest making sure you have the latest of both sets of
>> libraries. Here’s link to the wiki page with the relevant info:
>> https://casper.berkeley.edu/wiki/Corr
>>
>>
>>
>> Best wishes!
>> LD
>>
>> Louis P. Dartez
>>
>> Ph.D. Candidate
>>
>> STARGATE
>>
>> Center for Advanced Radio Astronomy
>>
>> University of Texas Rio Grande Valley
>>
>> (956) 372-5812
>>
>>
>> On Jun 21, 2016, at 10:23 AM, Rolando Paz <flx...@gmail.com> wrote:
>>
>> Hi
>>
>> I found this interesting tutorial:
>>
>> https://github.com/domagalski/roach-adc-tutorial
>>
>> When I run the initialization script, this error arises:
>>
>> rolando@rolando-MS-7815:~/Downloads/roach-adc-tutorial-master$ sudo
>> python adc_init.py -I roach040433 -q
>> Traceback (most recent call last):
>>   File "adc_init.py", line 44, in <module>
>>     roach = ADC.ADC(args.roach)
>>   File "/home/rolando/Downloads/roach-adc-tutorial-master/ADC.py", line
>> 48, in __init__
>>     _katcp.FpgaClient.__init__(self, *args, **kwargs)
>>   File "/usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.py",
>> line 86, in __init__
>>     self.start(daemon = True)
>> TypeError: start() got an unexpected keyword argument 'daemon'
>> rolando@rolando-MS-7815:~/Downloads/roach-adc-tutorial-master$
>>
>> I appreciate any comments.
>>
>> Regards
>>
>>
>>
>

Reply via email to