FarmersMarketFinderTutorial icon indicating copy to clipboard operation
FarmersMarketFinderTutorial copied to clipboard

Cancel not referenced

Open srugano opened this issue 4 years ago • 3 comments

This line produces an error: AttributeError: 'NoneType' object has no attribute 'cancel'

https://github.com/Dirk-Sandberg/FarmersMarketFinderTutorial/blob/30295797691bf6a88bfebee077a4f14b5785dcf2/part2/farmersmapview.py#L12

srugano avatar Feb 16 '21 13:02 srugano

Try changing the try/except block to something like:

if self.getting_markets_timer: self.getting_markets_timer.cancel() self.getting_markets_timer = None Let me know if that addresses the problem!

Dirk-Sandberg avatar Feb 16 '21 14:02 Dirk-Sandberg

Did that and everything worked. Thanks. But you should add a pip freeze > requirements.txt file to outline the version of the packages you used. For example, Kivy 2.0.0 removed some of the classes you have used extensively. It should be Kivy==1.1.1, KivyMD==0.104.0 and Mapview==1.0.4.

Thanks

srugano avatar Feb 21 '21 17:02 srugano

You're totally right -- if you have that already set up would you mind opening a PR?

Dirk-Sandberg avatar Feb 22 '21 15:02 Dirk-Sandberg