Python sytax error problem


  1. Posts : 99
    Windows 7 Enterprise 64 Bit
       #1

    Python sytax error problem


    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.
    Python sytax error problem Attached Files
      My Computer


  2. Posts : 542
    Windows 7 Pro 64bit
       #2

    I am no good at this prgram my High School Physics teacher makes us do this a lot
      My Computer


  3. Posts : 99
    Windows 7 Enterprise 64 Bit
    Thread Starter
       #3

    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


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:41.
Find Us