ST. LOUIS AREA AND CHIRP

Status
Not open for further replies.

jhlewis10

Member
Joined
Apr 29, 2011
Messages
10
Can not get this area to download into Chirp. Subcat error. Hundreds of other zip codes work, ideas?

Trying to get 63129 to work.
 

ndnihil

Member
Premium Subscriber
Joined
Aug 14, 2014
Messages
39
I just bought a subscription to RR to download data for Chirp as well, and get the same error. I've tried several versions of Chirp from 0.1.12 to the latest daily build, all have the same error with St. Louis area data and no other areas. I've gone over the Chirp code (as much as I dislike python), and though it could handle the error a bit more elegantly, it appears the issue is with the RR databases missing a sub-category name.

Any chance of getting this sorted out? I'd really like to be able to use the RR subscription I paid for. It should be something as simple as adding a sub-category name in the database, or changing an existing sub-category name to something unique (if duplicated).

Full dump of transaction and error below, showing all successful polls to help narrow it down. If the admins can't/wont help, I'll try to script something up in perl for importing into Chirp.

Code:
Fetching category: Countywide Districts / Organizations
	St. Louis Metropolitan Sewer District (MSD)
|          | 0.8% Unknown	Metro -- MetroBus/MetroLink 
|          | 1.6% UnknownFetching category: Municipalities and Districts
	Warson Woods
|          | 2.4% Unknown	Crestwood
|          | 3.1% Unknown	Des Peres
|          | 3.9% Unknown	Sunset Hills
|          | 4.7% Unknown	Chesterfield
|          | 5.5% Unknown	Bel-Ridge
|          | 6.3% Unknown	Oakland
|          | 7.1% Unknown	Pagedale
|          | 7.9% Unknown	Olivette
|          | 8.7% Unknown	Eureka
|          | 9.4% Unknown	Eureka Fire Protection District
|=         | 10.2% Unknown	Overland
|=         | 11.0% Unknown	Hazelwood
|=         | 11.8% Unknown	Ballwin
|=         | 12.6% Unknown	Manchester
|=         | 13.4% Unknown	Cool Valley
|=         | 14.2% Unknown	Florissant
|=         | 15.0% Unknown	Ladue
|=         | 15.7% Unknown	Berkeley
|=         | 16.5% Unknown	Beverly Hills
|=         | 17.3% Unknown	Black Jack
|=         | 18.1% Unknown	Bridgeton
|=         | 18.9% Unknown	Charlack
|=         | 19.7% Unknown	Edmundson
|==        | 20.5% Unknown	Ellisville
|==        | 21.3% Unknown	Fenton
|==        | 22.0% Unknown	Ferguson
|==        | 22.8% Unknown	Glendale
|==        | 23.6% Unknown	Jennings
|==        | 24.4% Unknown	Kirkwood
|==        | 25.2% Unknown	Maryland Heights
|==        | 26.0% Unknown	Mehlville 
|==        | 26.8% Unknown	Monarch Fire Protection District (Chesterfield)
|==        | 27.6% Unknown	Normandy
|==        | 28.3% Unknown	Valley Park
|==        | 29.1% Unknown	Saint Ann
|==        | 29.9% Unknown	Pine Lawn
|===       | 30.7% Unknown	University City (U City)
|===       | 31.5% Unknown	Wildwood
|===       | 32.3% Unknown	Metro West Fire Protection District
|===       | 33.1% Unknown	Bel-Nor
|===       | 33.9% Unknown	Clarkson Valley
|===       | 34.6% Unknown	Pacific
|===       | 35.4% Unknown	Uplands Park
|===       | 36.2% Unknown	Affton
|===       | 37.0% UnknownFetching category: Consolidated Dispatch Centers
	Municipal Radio Service (MRS) [Needs updated]
|===       | 37.8% UnknownFetching category: Schools
	Special School District of St. Louis County (Town and Country)
|===       | 38.6% Unknown	Hazelwood School District
|===       | 39.4% Unknown	Fergeson-Florissant School District R2
|====      | 40.2% Unknown	Mehlville School District R9
|====      | 40.9% Unknown	Parkway School District (Chesterfield)
|====      | 41.7% Unknown	Riverview Gardens School District (Bellefontaine Neighbors)
|====      | 42.5% Unknown	University City School District
|====      | 43.3% Unknown	Hancock Place School District
|====      | 44.1% Unknown	Rockwood School District R6 
|====      | 44.9% Unknown	St. Louis City Public Schools
|====      | 45.7% Unknown	First Student Buses
|====      | 46.5% Unknown	Atlantic Express of Missouri (St Louis)
|====      | 47.2% Unknown	Lindbergh School District (Kirkwood)
|====      | 48.0% Unknown	Kirkwood School District
|====      | 48.8% Unknown	Ladue Schools
|====      | 49.6% Unknown	Jennings School District
|=====     | 50.4% Unknown	Pattonville School District (Maryland Heights)
|=====     | 51.2% UnknownFetching category: EMS Agencies / Hospitals
	Abbott EMS - Missouri
|=====     | 52.0% Unknown	Common
|=====     | 52.8% Unknown	Gateway Ambulance
|=====     | 53.5% UnknownFetching category: Colleges and Universities
	Washington University (St. Louis)
|=====     | 54.3% Unknown	St. Louis Community Colleges
|=====     | 55.1% Unknown	University of Missouri - St. Louis
|=====     | 55.9% Unknown	Christian Brothers College (St. Louis)
|=====     | 56.7% Unknown	St. Louis University (SLU) / Parks College
|=====     | 57.5% Unknown	Harris-Stowe State College (St. Louis)
|=====     | 58.3% Unknown	Missouri Baptist College
|=====     | 59.1% Unknown	Fontbonne University
|=====     | 59.8% Unknown	Webster University (Maplewood)
|======    | 60.6% Unknown	Concordia Seimary (Richmond Heights)
|======    | 61.4% Unknown	Ranken Technical College
|======    | 62.2% Unknown	Lindenwood University
|======    | 63.0% Unknown	Logan College of Chiropractic (Chesterfield)
|======    | 63.8% UnknownFetching category: Schools (Private, Parochial)
	Mary Institute St Louis Country Day School (Creve Coeur)
|======    | 64.6% Unknown	The Principia (Town and Country)
|======    | 65.4% UnknownFetching category: St. Louis County Police Department 
	St. Louis County Police Department
|======    | 66.1% Unknown	Office of Emergency Management
|======    | 66.9% Unknown	Interoperability
|======    | 67.7% UnknownFetching category: St. Louis County Government
	St. Louis County Jail and Government Center
|======    | 68.5% Unknown	St. Louis County Parks Department 
|======    | 69.3% Unknown	St. Louis County Government  
|=======   | 70.1% UnknownFetching category: Missouri Department of Health & Senior Services
	Bellefontaine Habilitation Center (St. Louis)
|=======   | 70.9% Unknown	Missouri Institute of Mental Health (St. Louis)
|=======   | 71.7% Unknown	Missouri Veteran's Home (Bellfontaine Neighbors)
|=======   | 72.4% UnknownFetching category:  East Central Dispatch Center (Richmond Heights) 
	Brentwood / Rock Hill
|=======   | 73.2% Unknown	Clayton
|=======   | 74.0% Unknown	Maplewood
|=======   | 74.8% Unknown	Webster Groves
|=======   | 75.6% Unknown	Shrewsbury
|=======   | 76.4% Unknown	Richmond Heights
|=======   | 77.2% Unknown	Area Wide
|=======   | 78.0% UnknownFetching category: West County Dispatch Center 
	Huntleigh
|=======   | 78.7% Unknown	Creve Coeur
|=======   | 79.5% Unknown	Town and Country
|========  | 80.3% Unknown	Frontenac
|========  | 81.1% Unknown	Area Wide
|========  | 81.9% UnknownFetching category: Amateur Radio
	Office of Emergency Management / SKYWARN / R.A.C.E.S
|========  | 82.7% Unknown	Miscellaneous
|========  | 83.5% UnknownFetching category: Central County Emergency 911
	Central County Emergency 911
|========  | 84.3% Unknown	South County Fire Alarm Association [Disbanded]
|========  | 85.0% Unknown	North Central County Fire Alarm System [Disbanded]
|========  | 85.8% Unknown	Mid-County Fire Protection District
|========  | 86.6% Unknown	Pattonville Fire Protection District
|========  | 87.4% Unknown	Robertson Fire Protection District
|========  | 88.2% Unknown	Community Fire Protection District (*update location)
|========  | 89.0% UnknownFetching category: Lambert-St. Louis International Airport (STL)
	Air Traffic Control
|========  | 89.1% Unknown	Airport Services - Miscellaneous
|========  | 89.8% Unknown	St. Louis Airport Authority
|========= | 90.6% Unknown	St. Louis Terminal Radar Approach Control (T75 TRACON)
|========= | 91.4% Unknown	Parking/Transit/Valet/Rental Cars
|========= | 92.2% Unknown	Public Safety
|========= | 93.0% UnknownFetching category: Airport Related Companies
	Boeing
|========= | 93.8% Unknown	Miscellaneous
|========= | 94.5% UnknownFetching category: Airlines
	Continental
|========= | 95.3% Unknown	Delta Air Lines
|========= | 96.1% Unknown	American
|========= | 96.9% Unknown	Other Airlines
|========= | 97.7% Unknown	Southwest
|========= | 98.4% UnknownFetching category: Military
	Missouri Air National Guard - 131st Fight Wing (F-15's)
|========= | 99.2% Unknown	St Louis Airport and TRACON (T75) Military ATC
|==========| 100.0% UnknownFetching category: Radio
	Hubbard Broadcasting
|========  | 89.6% Unknown	CBS Radio East 
|========= | 90.3% Unknown	Clear Channel Communications
|========= | 91.0% Unknown	Radio One
|========= | 91.7% Unknown	St. Louis Cardinals Broadcasting
|========= | 92.4% Unknown	Emmis
|========= | 93.1% Unknown	Miscellaneous
|========= | 93.8% Unknown	Covenant Network
|========= | 94.4% UnknownFetching category: Television
	KSDK-TV Channel 5 - NBC 
|========= | 95.1% Unknown	KTVI-TV Channel 2 - Fox
|========= | 95.8% Unknown	KMOV-TV Channel 4 - CBS (Belo)
|========= | 96.5% Unknown	KPLR-TV Channel 11 - WB (Tribune)
|========= | 97.2% Unknown	KDNL-TV Channel 30 - ABC (Sinclair)
|========= | 97.9% Unknown	WRBU-TV Channel 46 (Roberts Broadcasting Company)
|========= | 98.6% Unknown	Miscellaneous
|========= | 99.3% UnknownFetching category: Newspapers
	St. Louis Post-Dispatch
|==========| 100.0% UnknownFetching category: Taxi Cabs
	St Louis County Cab Company
|========= | 91.2% Unknown	Laclede Cab Company (St. Louis/Overland)
|========= | 91.8% Unknown	ABC Cab of St Louis County
|========= | 92.5% Unknown	Miscellaneous
|========= | 93.1% UnknownFetching category: Miscellaneous
	Penske Logistics (Bridgeton)
|========= | 93.7% Unknown	Miscellaneous
|========= | 94.3% Unknown	Automobile Club of Missouri
|========= | 95.0% Unknown	United Parcel Service - UPS (Earth City)
|========= | 95.6% Unknown	Parking Garages/Valet
|========= | 96.2% Unknown	Miscellaneous
|========= | 96.9% Unknown	Car Rentals
|========= | 97.5% UnknownFetching category: Railroads
	Norfolk Southern Railway Company (St Louis)
|========= | 98.1% Unknown	Inter Rail
|========= | 98.7% Unknown	Amtrak (Gateway Transportation Center)
|========= | 99.4% Unknown	Miscellaneous
|==========| 100.0% UnknownFetching category: Near Airport
	Hilton St. Louis Airport
|========= | 97.0% Unknown	Suburbs
|========= | 97.6% UnknownFetching category: Hotels/Motels
	Doubletree Hotel and Conference Center (Chesterfield)
|========= | 98.2% Unknown	The Mariott West Hotel (PMO III LLC)
|========= | 98.8% Unknown	Outisde of I-270
|========= | 99.4% Unknown	Inside of 270
|==========| 100.0% UnknownFetching category: Miscellaneous
	Promise Keepers
|========= | 96.0% Unknown	Miscellaneous
|========= | 96.5% Unknown	Security Agencies
|========= | 97.1% Unknown	Churches
|========= | 97.7% UnknownFetching category: Healthcare - Miscellaneous
	Service Master Company
|========= | 98.3% Unknown	Retirement Communities / Nursing Homes
|========= | 98.8% Unknown	St. Louis Connectcare
|========= | 99.4% UnknownFetching category: Property Managment
	Apartment Buildings
|==========| 100.0% UnknownFetching category: GMRS
	Unidentified GMRS Repeaters
|========= | 95.1% UnknownFetching category: Communications Companies
	Other Companies
|========= | 95.6% Unknown	Volunteer Communications (St. Louis City)
|========= | 96.2% UnknownFetching category: Warner Communications
	Warner #4 (St. Louis/Jefferson)
|========= | 96.7% Unknown	Warner #3 (Clayton)
|========= | 97.3% Unknown	Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/chirpui/mainapp.py", line 1374, in mh
    self.do_radioreference(action[0] == "i")
  File "/usr/local/lib/python2.7/dist-packages/chirpui/mainapp.py", line 1107, in do_radioreference
    self.do_open_live(radio, read_only=True)
  File "/usr/local/lib/python2.7/dist-packages/chirpui/mainapp.py", line 362, in do_open_live
    eset = editorset.EditorSet(radio, self, tempname=tempname)
  File "/usr/local/lib/python2.7/dist-packages/chirpui/editorset.py", line 126, in __init__
    self.rf = self.radio.get_features()
  File "/usr/local/lib/python2.7/dist-packages/chirp/radioreference.py", line 104, in get_features
    self.do_fetch()
  File "/usr/local/lib/python2.7/dist-packages/chirp/radioreference.py", line 95, in do_fetch
    print "\t", subcat.scName
AttributeError: subcat instance has no attribute 'scName'
 

ndnihil

Member
Premium Subscriber
Joined
Aug 14, 2014
Messages
39
Also noticed looking through the Chirp code that it's using unencrypted call to the RR API. Since RR provides SSL for the API URI, it doesn't make sense not to use it. The fix for this is:

Code:
cd /usr/local/lib/python2.7/dist-packages/chirp

perl -pi -e 's/http:\/\/api/https:\/\/api/i' radioreference.py

python -m compileall .

Those commands in order:
- Change directory to Chirp install dir (may need to alter path for your installation)

- Some perl with regex to change http://api... to https://api...

- Then recompile the python bytecode

You will probably have to do this as root, again depending on your particular install.

I will also mention this to the Chirp developer.

----------------------------

Edit: disregard the above change for now, it appears that either Chirp or RR behaves differently using SSL, and does not function.
 
Last edited:

ndnihil

Member
Premium Subscriber
Joined
Aug 14, 2014
Messages
39
After doing some packet dumps and adding debugging to Chirps radioreference.py, I found the issue in the RR database. It seems that subcategory ID 40874 does not have an scName field associated with it:

Last successful sub-category poll:
(subcat){
scid = 40873
scName = "Warner #3 (Clayton)"
}

Error with next in line:
(subcat){
scid = 40874
}
AttributeError: subcat instance has no attribute 'scName'

Is there a mod/admin who can correct this for us?
 

kma371

QRT
Joined
Feb 20, 2001
Messages
6,204
After doing some packet dumps and adding debugging to Chirps radioreference.py, I found the issue in the RR database. It seems that subcategory ID 40874 does not have an scName field associated with it:

Last successful sub-category poll:
(subcat){
scid = 40873
scName = "Warner #3 (Clayton)"
}

Error with next in line:
(subcat){
scid = 40874
}
AttributeError: subcat instance has no attribute 'scName'

Is there a mod/admin who can correct this for us?

I would suggest submitting a correction to the DB. The admin there can update what you need.
 

ndnihil

Member
Premium Subscriber
Joined
Aug 14, 2014
Messages
39
The scid field appears to be a unique identifier used by the database (primary key type thing), and is not displayed on the website, nor in the PDF/CSV files for download. With that, I have no idea what entry the scid value designates, nor what its corresponding scName should be. It'll likely have to be handled by the backend database administrator.
 
Status
Not open for further replies.
Top