[op25-dev] Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/op25-dev@lists.osmocom.org/.

ikjtel ikj1234i at yahoo.com
Tue Jul 23 17:43:06 UTC 2019


 OK, osmosdr_swig is, or should be, installed by the system package gr-osmosdr...
The first command shows what should be installed by the named installed package, (filtered)
$ dpkg-query -L gr-osmosdr | grep osmosdr_swig
/usr/include/osmosdr/swig/osmosdr_swig_doc.i
/usr/include/osmosdr/swig/osmosdr_swig.i
/usr/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.so
/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py
The second shows what's actually installed:
$ find /usr/lib/  | grep osmosdr_swig 
/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.pyc
/usr/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.so
/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py
If there is a difference, perhaps do a remove and/or install of gr-osmosdr?  It may be that _osmosdr_swig.x86_64-linux-gnu.so should be symlinked as _osmosdr_swig.so ?

In any case this problem is wholly outside of OP25.  The root problem could be traced with more work, or a full wipe/reinstall may be easiest...

Max

    On Tuesday, July 23, 2019, 1:25:35 PM EDT, Bender, Theresa <tbender at wpi.edu> wrote:  
 
 #yiv2005206691 #yiv2005206691 -- P {margin-top:0;margin-bottom:0;}#yiv2005206691 

I removed osmosdr from /usr/local/lib, but now I'm getting an error that there is no module _osmosdr_swig.

Python 2.7.15+ (default, Nov 27 2018, 23:36:35)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import osmosdr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/osmosdr/__init__.py", line 26, in <module>
    from osmosdr_swig import *
  File "/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 17, in <module>
    _osmosdr_swig = swig_import_helper()
  File "/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 16, in swig_import_helper
    return importlib.import_module('_osmosdr_swig')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named _osmosdr_swig
>>> 


When i run the command:  ls /usr/lib/python2.7/dist-packages/osmosdr it doesn't show an _osmosdr_swig. Is it possible I don't have the right version installed?

__init__.py              osmosdr_swig.py
__init__.pyc             osmosdr_swig.pyc
osmocom_siggen_base.py   _osmosdr_swig.x86_64-linux-gnu.so
osmocom_siggen_base.pyc




From: ikjtel <ikj1234i at yahoo.com>
Sent: Tuesday, July 23, 2019 9:53:45 AM
To: op25-dev at lists.osmocom.org <op25-dev at lists.osmocom.org>; Bender, Theresa <tbender at wpi.edu>
Subject: Re: [op25-dev] Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust' OK right.  There are two conflicting versions of osmosdr installed, they may be fighting with each other.  This is technically a problem that is wholly outside of OP25, but no worries!  

However, before proceeding it's necessary to put out the standard disclaimers/warnings about potentially causing further damage ESPECIALLY if there are other SDR apps on the system, other than OP25 that could be impacted negatively by these changes.
If this were my system I'd simply nuke all remnants of osmosdr in /usr/local/lib [*not* /usr/lib] (your printout gives a list of all such files).  You can use the 'rm' command unless you have the original source tree that was used to manually install osmosdr into /usr/local (in which case you would run "sudo make uninstall" from the appropriate place within that source tree).
Once /usr/local/ is clean, run 
        sudo ldconfig 
to clean the ld.so cache.
When things are working correctly it should be possible to run the python command (with no args), and then:

     $ python
     Python 2.7.12 (default, Nov 12 2018, 14:36:49) 
     [GCC 5.4.0 20160609] on linux2
     Type "help", "copyright", "credits" or "license" for more information.
     >>> import osmosdr 
     linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

     >>> 

Once the "import osmosdr" command works manually in straight python, it should no longer crash in dv_tx.py . . . . .

Max

On Tuesday, July 23, 2019, 12:39:05 PM EDT, Bender, Theresa <tbender at wpi.edu> wrote:

#yiv2005206691 #yiv2005206691 --#yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418 -- p {margin-top:0;margin-bottom:0;}#yiv2005206691 
Here's the result from dpkg-query -l | grep osmosdr :






ii  gr-osmosdr                                 0.1.4.127-myriadrf1~bionic                   amd64        Gnuradio blocks from the OsmoSDR project
ii  libgnuradio-osmosdr0.1.4:amd64             0.1.4.127-myriadrf1~bionic                   amd64        Gnuradio blocks from the OsmoSDR project - library
ii  libosmosdr0:amd64                          0.1.8.effcaa7-7                              amd64        Software defined radio support for OsmoSDR hardware (library)




Result from find /usr/lib | grep osmosdr: 






/usr/lib/x86_64-linux-gnu/pkgconfig/gnuradio-osmosdr.pc
/usr/lib/x86_64-linux-gnu/libosmosdr.so.0
/usr/lib/x86_64-linux-gnu/libgnuradio-osmosdr.so.0.1.5git
/usr/lib/x86_64-linux-gnu/libgnuradio-osmosdr.so
/usr/lib/x86_64-linux-gnu/libosmosdr.so.0.0.0
/usr/lib/python2.7/dist-packages/osmosdr
/usr/lib/python2.7/dist-packages/osmosdr/osmocom_siggen_base.pyc
/usr/lib/python2.7/dist-packages/osmosdr/__init__.pyc
/usr/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.x86_64-linux-gnu.so
/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py
/usr/lib/python2.7/dist-packages/osmosdr/osmocom_siggen_base.py
/usr/lib/python2.7/dist-packages/osmosdr/__init__.py
/usr/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.pyc

Result from find /usr/local/lib | grep osmosdr : 







/usr/local/lib/pkgconfig/gnuradio-osmosdr.pc
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so
/usr/local/lib/python2.7/dist-packages/osmosdr
/usr/local/lib/python2.7/dist-packages/osmosdr/osmocom_siggen_base.pyc
/usr/local/lib/python2.7/dist-packages/osmosdr/__init__.pyc
/usr/local/lib/python2.7/dist-packages/osmosdr/__init__.pyo
/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py
/usr/local/lib/python2.7/dist-packages/osmosdr/osmocom_siggen_base.py
/usr/local/lib/python2.7/dist-packages/osmosdr/__init__.py
/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.pyo
/usr/local/lib/python2.7/dist-packages/osmosdr/_osmosdr_swig.so
/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.pyc
/usr/local/lib/python2.7/dist-packages/osmosdr/osmocom_siggen_base.pyo
/usr/local/lib/libgnuradio-osmosdr.so
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0

Thanks so much for all of this help, 



Theresa 




From: ikjtel <ikj1234i at yahoo.com>
Sent: Tuesday, July 23, 2019 9:32:04 AM
To: op25-dev at lists.osmocom.org <op25-dev at lists.osmocom.org>; Bender, Theresa <tbender at wpi.edu>
Subject: Re: [op25-dev] Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust' OK as a guess it's possible there are two conflicting versions of osmosdr installed.  Before checking other possibilities I'd like to rule this out . . . . . Let's have you do these commands, please paste the commands and the output:

dpkg-query -l | grep osmosdrfind /usr/lib | grep osmosdr 

-We already know there appears to be a version in /usr/local/lib so it's not technically necessary to redo the find command there, but let's do so anyway:
find /usr/local/lib | grep osmosdr 

Max

On Tuesday, July 23, 2019, 11:37:31 AM EDT, Bender, Theresa <tbender at wpi.edu> wrote:

#yiv2005206691 #yiv2005206691 --#yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418 -- #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014 -- p {margin-top:0;margin-bottom:0;}#yiv2005206691 
I did what you suggested, and now I'm getting the following error. I think it should be an easy fix, but I haven't been able to figure out how to correctly install osmosdr so that it works.






Multiprotocol Digital Voice TX (C) Copyright 2017 Max H. Parke KA1RBI
Traceback (most recent call last):
  File "./dv_tx.py", line 251, in <module>
    my_top_block().run()
  File "./dv_tx.py", line 205, in __init__
    self.setup_sdr_output(options, mod_adjust[options.protocol])
  File "./dv_tx.py", line 225, in setup_sdr_output
    import osmosdr
  File "/usr/local/lib/python2.7/dist-packages/osmosdr/__init__.py", line 26, in <module>
    from osmosdr_swig import *
  File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 17, in <module>
    _osmosdr_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 16, in swig_import_helper
    return importlib.import_module('_osmosdr_swig')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named _osmosdr_swig




From: ikjtel <ikj1234i at yahoo.com>
Sent: Tuesday, July 23, 2019 7:52:19 AM
To: op25-dev at lists.osmocom.org <op25-dev at lists.osmocom.org>; Bender, Theresa <tbender at wpi.edu>
Subject: Re: [op25-dev] Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust' OK that doesn't appear to be a current version of OP25.
The line in question 
    if options.protocol == 'p25':should instead be    if options.protocol == 'p25' and not options.test:
That line is correct in the osmocom version of OP25 (branch 'max').
Suggest that you try something like this
   cd to your current top-level op25 directory        [the directory named 'build' should be a subdir of this]
   cd build   sudo make uninstall
Then clone the repo 
    cd ~
    git clone https://git.osmocom.org/op25
    cd op25    git checkout max
Then run the install.sh script from there......

Max


On Tuesday, July 23, 2019, 10:03:36 AM EDT, Bender, Theresa <tbender at wpi.edu> wrote:

#yiv2005206691 #yiv2005206691 --#yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418 -- #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014 -- #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 -- p {margin-top:0;margin-bottom:0;}#yiv2005206691 

Here's the command that i typed: 

./dv_tx.py -p p25 --args 'uhd' -t ./1011.dat -r -Q 430137500 -q 1 --gains 'PGA:90' -v 3 -i 400000

Here's the output from that command: 

Multiprotocol Digital Voice TX (C) Copyright 2017 Max H. Parke KA1RBI
Traceback (most recent call last):
  File "./dv_tx.py", line 224, in <module>
    my_top_block().run()
  File "./dv_tx.py", line 139, in __init__
    ENCODER.set_gain_adjust(gain_adjust_fullrate[options.protocol])
AttributeError: 'file_source_sptr' object has no attribute 'set_gain_adjust'


Here's the results from the command to verify the code level:






commit a77c18d745efb0660b76a3e699dbc0a42f2bff35
Author: Max <ikj1234i at yahoo.com>
Date:   Mon Feb 19 20:17:04 2018 -0500

    sync install.sh with max branch

commit 7ae554682a8c78796211fe05f0da4ec52c43a45b
Author: Max <ikj1234i at yahoo.com>
Date:   Wed Oct 18 20:03:39 2017 -0400

    install.sh update

commit aa7a4be3490f83a9900ddc9aad5bcbca16e9ccbf
Author: Max <ikj1234i at yahoo.com>
Date:   Wed Oct 18 20:02:58 2017 -0400


Thanks, 


Theresa 





From: ikjtel <ikj1234i at yahoo.com>
Sent: Tuesday, July 23, 2019 6:42:22 AM
To: op25-dev at lists.osmocom.org <op25-dev at lists.osmocom.org>; Bender, Theresa <tbender at wpi.edu>
Subject: Re: [op25-dev] Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust' OK, did you receive a backtrace in addition to that error message?   If so, could I have you paste (not retype) the entire sequence, including the full command that was typed and the full backtrace?  The set_gain_adjust() operation should really not even be getting invoked in the first place since you're using the "test" (-t) option . . . .

Also, let's have you verify the code level of OP25 that you're running - please issue the command
    git log | head -15                 [from within the OP25 directory structure]
and include the results.
Thx

Max
On Tuesday, July 23, 2019, 9:22:40 AM EDT, Bender, Theresa <tbender at wpi.edu> wrote:

#yiv2005206691 #yiv2005206691 --#yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418 -- #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014 -- #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 -- #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 -- filtered #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 {font-family:Helvetica;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 filtered #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 {font-family:Calibri;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 p.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351MsoNormal, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 li.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351MsoNormal, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 div.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:New serif;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 a:link, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 span.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351MsoHyperlink {color:blue;text-decoration:underline;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 a:visited, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 span.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 p.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal0, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 li.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal0, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 div.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal0 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:New serif;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 p.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 li.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 div.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:New serif;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 p.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msochpdefault, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 li.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msochpdefault, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 div.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:New serif;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 p.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal1, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 li.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal1, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 div.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msonormal1 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 span.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msohyperlink1 {color:#0563C1;text-decoration:underline;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 span.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msohyperlinkfollowed1 {color:#954F72;text-decoration:underline;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 span.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351emailstyle171 {font-family:sans-serif;color:windowtext;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 p.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msochpdefault1, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 li.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msochpdefault1, #yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 div.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351msochpdefault1 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:sans-serif;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 span.yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351EmailStyle28 {font-family:sans-serif;color:#1F497D;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 .yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351MsoChpDefault {font-size:10.0pt;}#yiv2005206691 #yiv2005206691x_yiv8483789418 #yiv2005206691x_yiv8483789418x_yiv2546047014 #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797 filtered #yiv2005206691x_yiv8483789418x_yiv2546047014x_yiv1161088797x_yiv0690413351 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv2005206691 
Hi Max, 

 

Thanks so much for your reply. I’ve been emailing using a different computer (Windows) than what I’m running the TX on (Linux). I had quickly typed out the command line on this email so you’d know what command line I was talking about. I just verified it on the Linux, and they are all single quotes and I do have the unquote after the PGA:90.

 

Thanks,

Theresa 

 

From: ikjtel [mailto:ikj1234i at yahoo.com]
Sent: Tuesday, July 23, 2019 9:14 AM
To: op25-dev at lists.osmocom.org; Bender, Theresa <tbender at wpi.edu>
Subject: Re: [op25-dev] Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust'

 

Hello Teresa

 

We don't have a huge number of success reports for the TX - so accordingly this is high priority and I'd very much like to get it nailed down.  Looking at the command line, I copy/pasted it into a terminal and some of the single quotes appear to have pasted as strange backtick characters (‘) rather than as single quotes (').  If these characters actually appear in your command (as opposed to being an artifact of copying/pasting) they will cause trouble.  Looking at these characters on-screen they also appear incorrect, but I need a magnifying glass to see them in detail.   Could I have you try fixing this first before we proceed to look at the actual error message.   Noting also that there should be a matching (un)quote following the string "PGA:90" that also appears to be missing lends some additional corroboration to the possibility of a malformed command line....

 

Max

 

p.s. I ran the results of the paste thru "od -t x1" and there appear to be several non-ASCII characters (anything greater than or equal to 0x80 is invalid):

 

0000000 2e 2f 64 76 5f 74 78 2e 70 79 20 2d 70 20 70 32
0000020 35 20 2d 2d 61 72 67 73 20 e2 80 98 75 68 64 e2
0000040 80 99 20 2d 74 20 2e 2f 31 30 31 31 2e 64 61 74
0000060 20 2d 72 20 2d 51 20 34 33 30 31 33 37 35 30 30
0000100 20 2d 71 20 31 20 2d 67 61 69 6e 73 20 e2 80 98
0000120 50 47 41 3a 39 30 20 2d 76 20 33 20 2d 69 20 34
0000140 30 30 30 30 30 0a

 

On Monday, July 22, 2019, 6:13:53 PM EDT, Bender, Theresa <tbender at wpi.edu> wrote:

 

 

I’m trying to make a OP25 Transmitter with a B200 mini, as in the video. I’m using the same command line as in the video (./dv_tx.py -p p25 --args ‘uhd’ -t ./1011.dat -r -Q 430137500 -q 1 -gains ‘PGA:90 -v 3 -i 400000). I keep receiving the error “Attribute Error: 'file_source_sptr' object has no attribute 'set_gain_adjust'”.

 

I’m new to using SDRs and the B200 mini, so I’d appreciate any advice! Thanks!
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20190723/b8f7185b/attachment.htm>


More information about the op25-dev mailing list