GithubHelp home page GithubHelp logo

Comments (5)

semuadmin avatar semuadmin commented on June 27, 2024

Hi @japs386

Sorry but I’m unclear where exactly you’re seeing this error. The pygnssutils library doesn’t use Pillow and as far as I’m aware PyGPSClient no longer uses the ANTIALIAS flag. Can you clarify which version of PyGPSClient you’re seeing this in and provide the FULL error traceback please. Thanks

from pygpsclient.

japs386 avatar japs386 commented on June 27, 2024

PyGPSClient: 1.3.25

[japs@japspc ~]$ pygpsclient
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib64/python3.9/tkinter/init.py", line 1892, in call
return self.func(*args)
File "/usr/local/lib/python3.9/site-packages/pygpsclient/app.py", line 556, in on_gnss_read
self.process_data(raw_data, parsed_data)
File "/usr/local/lib/python3.9/site-packages/pygpsclient/app.py", line 669, in process_data
frm.update_frame()
File "/usr/local/lib/python3.9/site-packages/pygpsclient/map_frame.py", line 108, in update_frame
self._draw_static_map(lat, lon)
File "/usr/local/lib/python3.9/site-packages/pygpsclient/map_frame.py", line 128, in _draw_static_map
Image.open(IMG_WORLD).resize((w, h), Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

from pygpsclient.

semuadmin avatar semuadmin commented on June 27, 2024

You’re using a very old version - the issue you’re referring to was addressed back in 1.3.28. I strongly recommend upgrading to the latest version 1.4.8.

python3 -m pip install —upgrade pygpsclient

If you’re able, I also recommend installing Python 3.12, which offers some worthwhile performance improvements.

from pygpsclient.

japs386 avatar japs386 commented on June 27, 2024

I just did a few minutes ago, but pygpsclient/map_frame.py still contains
Image.open(IMG_WORLD).resize((w, h)) # , Image.ANTIALIAS)
It may give rise to some confusion. Anyway problem solved.

from pygpsclient.

semuadmin avatar semuadmin commented on June 27, 2024

Not sure why a comment would cause confusion, but happy to remove it in next release.

Assuming you’ve upgraded, are you happy to close the issue?

from pygpsclient.

Related Issues (20)

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.