Giter Club home page Giter Club logo

spider_python's Issues

关于KeyError: 'GPS GPSLatitude'的问题

自己原图形式测试正常,他人原图形式测试报错
报错代码如下:
Traceback (most recent call last):
File "C:/Users/Administrator/.PyCharm2017.1/config/皮卡丘/获取女朋友的位置/main.py", line 157, in
location.run()
File "C:/Users/Administrator/.PyCharm2017.1/config/皮卡丘/获取女朋友的位置/main.py", line 23, in run
coordinate = self.__get_image_ability()
File "C:/Users/Administrator/.PyCharm2017.1/config/皮卡丘/获取女朋友的位置/main.py", line 94, in __get_image_ability
latitude_gps = img_exif['GPS GPSLatitude']
KeyError: 'GPS GPSLatitude'

AttributeError: 'NoneType' object has no attribute 'get'

Traceback (most recent call last):
File "G:/python/test.py", line 323, in
location.run()
File "G:/python/test.py", line 197, in run
address = self.__get_address(coordinate)
File "G:/python/test.py", line 213, in __get_address
address = location_data.get('regeocode').get('formatted_address')
AttributeError: 'NoneType' object has no attribute 'get'

请求商务推广合作

作者您好,我们也是一家专业做IP代理的服务商,极速HTTP,想跟您谈谈是否能够达成商业推广上的合作。如果您,有意愿的话,可以联系我,微信:13982004324 谢谢(如果没有意愿的话,抱歉,打扰了)

AttributeError

AttributeError Traceback (most recent call last)
in ()
22
23 # 找到女朋友的地理位置
---> 24 location.run()

in run(self)
9
10 def run(self):
---> 11 coordinate = self.__get_image_ability()
12
13 print(f'获取到经度、纬度是:{coordinate}')

AttributeError: 'Location' object has no attribute '_Location__get_image_ability'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.