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

Cannot get CoPilot to run #6

Open
asmith2073 opened this issue Mar 7, 2018 · 14 comments
Open

Cannot get CoPilot to run #6

asmith2073 opened this issue Mar 7, 2018 · 14 comments

Comments

@asmith2073
Copy link

I have no clue what I am doing wrong lol. I double checked all packages were installed and I am running python 2.7. I attached a picture to hopefully help. Thank you in advanced!
capture

@rcpilotp51
Copy link

I have the same issue thanks

@MarioBG
Copy link

MarioBG commented Mar 23, 2018

I had the same issue and was able to fix it by changing the tabs.py file and changing the line displayed from dp(None) [...] to dp(0) [...]; however, do expect a myriad of more issues after that. With some luck we'll be able to fix them collaboratively

@rcpilotp51
Copy link

@MarioBG have you fixed any of the other issues:
#7

or anything with concurrent.futures

Thanks

@asmith2073
Copy link
Author

Thanks @MarioBG ! That worked!

@rcpilotp51
Copy link

hey all - here is another one for the lot:

`
[INFO ] [Kivy ] v1.10.1.dev0, git-1ccd294, 20180308
[INFO ] [Python ] v2.7.13 (default, Nov 24 2017, 17:33:09)
[GCC 6.3.0 20170516]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: egl_rpi
[INFO ] [GL ] Using the "OpenGL ES 2" graphics system
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version <OpenGL ES 2.0>
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] OpenGL parsed version: 2, 0
[INFO ] [GL ] Shading version <OpenGL ES GLSL ES 1.00>
[INFO ] [GL ] Texture max size <2048>
[INFO ] [GL ] Texture max units <8>
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [GL ] NPOT texture support is available
[INFO ] [Loader ] using a thread pool of 2 workers
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
Traceback (most recent call last):
File "main.py", line 2077, in
MainApp().run()
File "/usr/local/lib/python2.7/dist-packages/kivy/app.py", line 799, in run
self.load_kv(filename=self.kv_file)
File "/usr/local/lib/python2.7/dist-packages/kivy/app.py", line 596, in load_ kv
root = Builder.load_file(rfilename)
File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder.py", line 301, in load_file
return self.load_string(data, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder.py", line 382, in load_string
self._apply_rule(widget, parser.root, parser.root)
File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder.py", line 612, in _apply_rule
e), cause=tb)
kivy.lang.builder.BuilderException: Parser: File "/home/pi/CoPilot/main.kv", li ne 1297:
...
1295: o n_press: Animation(y=-100, duration=0).start(dock_normal_power)
1296: f ont_size: 30

1297: d isabled: True
1298: JZLargeB utton:
1299: t ext: "Night Gauge"
...
AttributeError: 'super' object has no attribute 'on_disabled'
File "/usr/local/lib/python2.7/dist-packages/kivy/lang/builder.py", line 601, in _apply_rule
setattr(widget_set, key, value)
File "kivy/weakproxy.pyx", line 33, in kivy.weakproxy.WeakProxy.setattr
File "kivy/properties.pyx", line 478, in kivy.properties.Property.set
File "kivy/properties.pyx", line 1471, in kivy.properties.AliasProperty.set
File "/usr/local/lib/python2.7/dist-packages/kivy/uix/widget.py", line 1313, in set_disabled
self.inc_disabled()
File "/usr/local/lib/python2.7/dist-packages/kivy/uix/widget.py", line 1320, in inc_disabled
self.property('disabled').dispatch(self)
File "kivy/properties.pyx", line 554, in kivy.properties.Property.dispatch
File "kivy/properties.pyx", line 571, in kivy.properties.Property.dispatch
File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy/_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
File "/home/pi/CoPilot/kivymd/button.py", line 495, in on_disabled
super(JZLargeButton, self).on_disabled(instance, value)
`

@MarioBG
Copy link

MarioBG commented Apr 3, 2018

Yeah, @rcpilotp51 that's a funny one - just go to main.kv, look for every "disabled = true" (on the Worms and Night clocks) and delete them. I think that's one of the last ones to get it running. I need to test it with the touchscreen, however, since it doesn't appear to recognise clicks where it should (and it doesn't display the mouse cursor either, so fat chance). I'll get back to it eventually.

@rcpilotp51
Copy link

rcpilotp51 commented Apr 3, 2018 via email

@rcpilotp51
Copy link

@MarioBG I get nothing but a white screen and
"libpng warning: Interlace handling should be turned on when using png_read_image"

@rcpilotp51
Copy link

Is there anywhere i can activate Interlace??

@rcpilotp51
Copy link

I got everything working and am even programming some new features. radio over rtl-sdr and gps updating the map. I also have some volume controls working and playing audio through the pi rather than just controlling the aux... should be pretty cool.

@chaoman
Copy link

chaoman commented May 28, 2018

I got everything working and am even programming some new features. radio over rtl-sdr and gps updating the map. I also have some volume controls working and playing audio through the pi rather than just controlling the aux... should be pretty cool.

@rcpilotp51 - how did you address the white Interlace issue? I got into the same issue as you had earlier.

chaoman added a commit to chaoman/CoPilot that referenced this issue May 28, 2018
Update the value based on issue Joelzeller#6.
@rcpilotp51
Copy link

rcpilotp51 commented May 31, 2018 via email

@chaoman
Copy link

chaoman commented Jun 2, 2018

I did try to remove the exception like below from file sudo nano /usr/local/lib/python2.7/dist-packages/kivy/core/image/img_pygame.py

        # image loader work only with rgb/rgba image
        if fmt not in ('rgb', 'rgba'):
            try:
                imc = im.convert(32)
                fmt = 'rgba'
            except:
                try:
                    imc = im.convert_alpha()
                    fmt = 'rgba'
                except:
                    #Logger.warning(
                    #   'Image: Unable to convert image %r to rgba (was %r)' %
                    #   (filename, im.fmt))
                    #raise
            im = imc

Still no luck. I am running Raspbian stretch but it shouldn't be much different than the Raspbian cli only version. I still got the white screen. Any other hint?

@chaoman
Copy link

chaoman commented Jan 14, 2019

Finally got it to run without commenting img_pygame.py file. The white screen is caused by insufficient GPU memory to render gauge related PNGs. I bumped the GPU split memory to 256 MB and got everything working.

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

4 participants