geoplotlib icon indicating copy to clipboard operation
geoplotlib copied to clipboard

OSX NotImplementedError: abstract

Open akogay opened this issue 7 years ago • 11 comments

MacOS after import geoplotlib raise error OSX NotImplementedError: abstract

used 3 pyglet versions (1.2.4, 1.3 and 1.4)

akogay avatar Feb 22 '18 21:02 akogay

Can you provide a full trackback?

benmoran56 avatar Feb 23 '18 03:02 benmoran56

Same in Windows:


NotImplementedError Traceback (most recent call last) in () 1 import scipy 2 import numpy ----> 3 import geoplotlib

~\Anaconda3\lib\site-packages\geoplotlib_init_.py in () 24 25 ---> 26 _global_config = AppConfig() 27 28

~\Anaconda3\lib\site-packages\geoplotlib_init_.py in init(self) 8 9 def init(self): ---> 10 self.reset() 11 12

~\Anaconda3\lib\site-packages\geoplotlib_init_.py in reset(self) 18 self.smoothing = False 19 self.map_alpha = 255 ---> 20 screen = pyglet.canvas.get_display().get_default_screen() 21 self.screen_w = int(screen.width * .9) 22 self.screen_h = int(screen.height * .9)

~\Anaconda3\lib\site-packages\pyglet\canvas\base.py in get_default_screen(self) 71 72 :rtype: :class:Screen ---> 73 ''' 74 return self.get_screens()[0] 75

~\Anaconda3\lib\site-packages\pyglet\canvas\base.py in get_screens(self) 63 64 :rtype: list of :class:Screen ---> 65 ''' 66 raise NotImplementedError('abstract') 67

NotImplementedError: abstract

dwolffenbuttel avatar Mar 07 '18 15:03 dwolffenbuttel

Same here! I am using Windows too!


NotImplementedError Traceback (most recent call last) in () ----> 1 import geoplotlib

~\Anaconda3\lib\site-packages\geoplotlib_init_.py in () 24 25 ---> 26 _global_config = AppConfig() 27 28

~\Anaconda3\lib\site-packages\geoplotlib_init_.py in init(self) 8 9 def init(self): ---> 10 self.reset() 11 12

~\Anaconda3\lib\site-packages\geoplotlib_init_.py in reset(self) 18 self.smoothing = False 19 self.map_alpha = 255 ---> 20 screen = pyglet.canvas.get_display().get_default_screen() 21 self.screen_w = int(screen.width * .9) 22 self.screen_h = int(screen.height * .9)

~\Anaconda3\lib\site-packages\pyglet\canvas\base.py in get_default_screen(self) 71 :rtype: :class:Screen 72 ''' ---> 73 return self.get_screens()[0] 74 75 def get_windows(self):

~\Anaconda3\lib\site-packages\pyglet\canvas\base.py in get_screens(self) 63 :rtype: list of :class:Screen 64 ''' ---> 65 raise NotImplementedError('abstract') 66 67 def get_default_screen(self):

NotImplementedError: abstract

nathdipankar avatar Mar 18 '18 01:03 nathdipankar

Give the current development version of pyglet a try. There were some fixes when running under specific IDEs like Spyder. pip install --upgrade https://bitbucket.org/pyglet/pyglet/get/tip.zip

benmoran56 avatar Mar 19 '18 03:03 benmoran56

Thanks for your response. I gave updating pyglet a try, however, did not solve the problem

dwolffenbuttel avatar Mar 19 '18 08:03 dwolffenbuttel

That's unfortunate, but it was worth a try. It looks like it might be a geoplotlib specific thing.

benmoran56 avatar Apr 11 '18 04:04 benmoran56

Same error here.

JayLiangMKT avatar Apr 24 '18 20:04 JayLiangMKT

I have the same error. Don't use Anaconda.

ghost avatar May 14 '18 14:05 ghost

Same error in Window 10 Anaconda. :(

xunhs avatar Jul 05 '18 00:07 xunhs

i'm still getting the same error message....


NotImplementedError Traceback (most recent call last) in () 1 import pandas as pd 2 import numpy as np ----> 3 import geoplotlib

~/anaconda3/lib/python3.6/site-packages/geoplotlib/init.py in () 24 25 ---> 26 _global_config = AppConfig() 27 28

~/anaconda3/lib/python3.6/site-packages/geoplotlib/init.py in init(self) 8 9 def init(self): ---> 10 self.reset() 11 12

~/anaconda3/lib/python3.6/site-packages/geoplotlib/init.py in reset(self) 18 self.smoothing = False 19 self.map_alpha = 255 ---> 20 screen = pyglet.canvas.get_display().get_default_screen() 21 self.screen_w = int(screen.width * .9) 22 self.screen_h = int(screen.height * .9)

~/anaconda3/lib/python3.6/site-packages/pyglet/canvas/base.py in get_default_screen(self) 106 :rtype: :class:Screen 107 """ --> 108 return self.get_screens()[0] 109 110 def get_windows(self):

~/anaconda3/lib/python3.6/site-packages/pyglet/canvas/base.py in get_screens(self) 98 :rtype: list of :class:Screen 99 """ --> 100 raise NotImplementedError('abstract') 101 102 def get_default_screen(self):

NotImplementedError: abstract

williamadams1 avatar Oct 02 '18 17:10 williamadams1

Downgrading pyglet from most recent version to version 1.2.4 did the trick for me.

snsei avatar Nov 28 '18 16:11 snsei