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

ikjtel ikj1234i at yahoo.com
Tue Jul 23 13:42:22 UTC 2019

 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.

    On Tuesday, July 23, 2019, 9:22:40 AM EDT, Bender, Theresa <tbender at wpi.edu> wrote:  
 #yiv0690413351 #yiv0690413351 -- _filtered #yiv0690413351 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv0690413351 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv0690413351 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv0690413351 #yiv0690413351 p.yiv0690413351MsoNormal, #yiv0690413351 li.yiv0690413351MsoNormal, #yiv0690413351 div.yiv0690413351MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:New serif;}#yiv0690413351 a:link, #yiv0690413351 span.yiv0690413351MsoHyperlink {color:blue;text-decoration:underline;}#yiv0690413351 a:visited, #yiv0690413351 span.yiv0690413351MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv0690413351 p.yiv0690413351msonormal0, #yiv0690413351 li.yiv0690413351msonormal0, #yiv0690413351 div.yiv0690413351msonormal0 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:New serif;}#yiv0690413351 p.yiv0690413351msonormal, #yiv0690413351 li.yiv0690413351msonormal, #yiv0690413351 div.yiv0690413351msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:New serif;}#yiv0690413351 p.yiv0690413351msochpdefault, #yiv0690413351 li.yiv0690413351msochpdefault, #yiv0690413351 div.yiv0690413351msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:New serif;}#yiv0690413351 span.yiv0690413351msohyperlink {}#yiv0690413351 span.yiv0690413351msohyperlinkfollowed {}#yiv0690413351 span.yiv0690413351emailstyle17 {}#yiv0690413351 p.yiv0690413351msonormal1, #yiv0690413351 li.yiv0690413351msonormal1, #yiv0690413351 div.yiv0690413351msonormal1 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv0690413351 span.yiv0690413351msohyperlink1 {color:#0563C1;text-decoration:underline;}#yiv0690413351 span.yiv0690413351msohyperlinkfollowed1 {color:#954F72;text-decoration:underline;}#yiv0690413351 span.yiv0690413351emailstyle171 {font-family:sans-serif;color:windowtext;}#yiv0690413351 p.yiv0690413351msochpdefault1, #yiv0690413351 li.yiv0690413351msochpdefault1, #yiv0690413351 div.yiv0690413351msochpdefault1 {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:sans-serif;}#yiv0690413351 span.yiv0690413351EmailStyle28 {font-family:sans-serif;color:#1F497D;}#yiv0690413351 .yiv0690413351MsoChpDefault {font-size:10.0pt;} _filtered #yiv0690413351 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv0690413351 div.yiv0690413351WordSection1 {}#yiv0690413351 
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.
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....
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/2102dd50/attachment-0001.html>

More information about the op25-dev mailing list