Python sytax error problem

kuchiyo

New member
Member
VIP
Local time
9:44 AM
Messages
99
Hi, i have a problem with this python file.

Its f-secure's ASCII World map. I dont know how to fix it. The part that has error is this:

formats = [
u"{name} / {country} {city}",
u"{name} / {country}",
u"{name}",
u"{type}",
]

Attached file below.
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Unknown
OS
Windows 7 Enterprise 64 Bit
CPU
INTEL Core i5-4670K 3,4GHz LGA1150 6MB Cache BOX Haswell CPU
Motherboard
ASUS Z87 Socket 1150 Z87-K HDMI DVI RGB 1 x PCIe 3.0/2.0 x16
Memory
KINGSTON 16GB 1600MHz DDR3 CL10 DIMM (Kit of 2) 2x8GB XMP H
Graphics Card(s)
NVIDIA GTX760 2048MB 256BIT D5 DVIx2+HDMI+DP
Sound Card
Realtek® ALC887 8-Channel High Definition Audio CODEC
Hard Drives
WD Desktop Blue 1TB SATA 6Gb/s 64MB Cache
Case
NZXT Tempest 410 - Black
Antivirus
F-secure client security
Browser
Chrome and firefox
I am no good at this prgram my High School Physics teacher makes us do this a lot
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Satellite C655-S5547
OS
Windows 7 Pro 64bit
CPU
Intel(R) Core(TM) i3-2350M CPU @ 2.30 GHZ
Memory
4.00 GB
Graphics Card(s)
Intel HD Graphiics
Sound Card
Conexant HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
TI106321W0B(C:) 450GB
Keyboard
Standard PS/2 Keyboard
Mouse
Synaptics Pointing Device
Internet Speed
51.68 mb/s download and 12.08 mb/s upload as of 6/24/15
Antivirus
Webroot Secure Anywhere
Browser
IE11, Mozilla Firefox 41.1.01, and Google Chrome if I must
Error im getting:

Code:
Traceback (most recent call last):
  File "C:\Users\koti\Desktop\wm3con-master\wm3con-master\wm3con.py", line 277,
in <module>
    sys.exit(main())
  File "C:\Users\koti\Desktop\wm3con-master\wm3con-master\wm3con.py", line 274,
in main
    return curses.wrapper(app.run_curses_app)
  File "C:\Python32\lib\curses\wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "C:\Users\koti\Desktop\wm3con-master\wm3con-master\wm3con.py", line 230,
in run_curses_app
    m.set_data(self.data)
  File "C:\Users\koti\Desktop\wm3con-master\wm3con-master\wm3con.py", line 114,
in set_data
    dets = data.get('detections', [])
AttributeError: 'NoneType' object has no attribute 'get'
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Unknown
OS
Windows 7 Enterprise 64 Bit
CPU
INTEL Core i5-4670K 3,4GHz LGA1150 6MB Cache BOX Haswell CPU
Motherboard
ASUS Z87 Socket 1150 Z87-K HDMI DVI RGB 1 x PCIe 3.0/2.0 x16
Memory
KINGSTON 16GB 1600MHz DDR3 CL10 DIMM (Kit of 2) 2x8GB XMP H
Graphics Card(s)
NVIDIA GTX760 2048MB 256BIT D5 DVIx2+HDMI+DP
Sound Card
Realtek® ALC887 8-Channel High Definition Audio CODEC
Hard Drives
WD Desktop Blue 1TB SATA 6Gb/s 64MB Cache
Case
NZXT Tempest 410 - Black
Antivirus
F-secure client security
Browser
Chrome and firefox
Back
Top