Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX NotImplementedError: abstract #31

Open
akogay opened this issue Feb 22, 2018 · 11 comments
Open

OSX NotImplementedError: abstract #31

akogay opened this issue Feb 22, 2018 · 11 comments

Comments

@akogay
Copy link

akogay commented Feb 22, 2018

MacOS after
import geoplotlib
raise error
OSX NotImplementedError: abstract

used 3 pyglet versions (1.2.4, 1.3 and 1.4)

@benmoran56
Copy link

Can you provide a full trackback?

@dwolffenbuttel
Copy link

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

@nathdipankar
Copy link

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

@benmoran56
Copy link

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

@dwolffenbuttel
Copy link

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

@benmoran56
Copy link

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

@JayLiangMKT
Copy link

Same error here.

@ghost
Copy link

ghost commented May 14, 2018

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

@xunhs
Copy link

xunhs commented Jul 5, 2018

Same error in Window 10 Anaconda. :(

@williamadams1
Copy link

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

@snsei
Copy link

snsei commented Nov 28, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants