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

Unable to run app #4

Open
benwood19 opened this issue Feb 19, 2018 · 18 comments
Open

Unable to run app #4

benwood19 opened this issue Feb 19, 2018 · 18 comments

Comments

@benwood19
Copy link

Hi there,

Is there an updated version to work with the TKinter format changes for python3. I am also using a raspberry Pi 3 board if this makes a difference? Also it is saying that the PIL is missing even though I have installed it. Any help would be great.

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Feb 19, 2018 via email

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Feb 19, 2018 via email

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Feb 21, 2018 via email

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Feb 27, 2018 via email

@benwood19
Copy link
Author

Thank you for doing the updates they work very well and I am having a large amount of success using this app. I was wondering if you may add a feature that adds an overlay onto the video/photos captured. Such as GPS, or even RTC data. or may already know a way of doing this? however, the time stamped files are a useful alternative. I think a lot of people have been waiting for a RPi camera GUI like this for a very long time and this does every job it needs too really. :)

Ben

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Mar 13, 2018 via email

@benwood19
Copy link
Author

No problem,

One option I know of is that adafruit produce a board that is compatible with the raspberry pi that is called their GPS breakout board. So I don't know whether the data coming from that could be read by the Pi and implemented into the App. Or another possibility I was looking at was using a GNSS antenna to produce a raw NAV string that could then be fed into the raspberry pi using a serial port and that data then transferred into the App, however this is a more complex option.

Thanks
Ben

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Mar 16, 2018 via email

@vidapp
Copy link

vidapp commented Aug 4, 2018

Having some issues getting this to work with PiCam v2 and RPi 3 B+. Any new info on this configuration ? Cant wait to test!

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Aug 5, 2018 via email

@thiagogalvao
Copy link

Hi @vidapp, try these commands:

  1. sudo pip3 install pillow --upgrade

  2. sudo python3 PiCameraApp.py

I had some issues on RPi 3 B+ to install imagetk, after upgrade the pillow with pip3 the problem was solved.

@l4es
Copy link

l4es commented Sep 7, 2018

Hello,
I'd like to know if any restriction in terms camera types, please? I'm using Logitech C920 and have following problem:

$ sudo python PiCameraApp.py
running....
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Error creating PiCamera instance! Shutting down.

Press any key...
$ sudo python3 PiCameraApp.py
running....
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Error creating PiCamera instance! Shutting down.

Press any key...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _init_camera
    self._camera = mo.MMALCamera()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __init__
    super(MMALCamera, self).__init__()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __init__
    prefix="Failed to create MMAL component %s" % self.component_type)
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "PiCameraApp.py", line 1115, in Run
    camera = picamera.PiCamera(sensor_mode=1)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __init__
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _init_camera
    "Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "PiCameraApp.py", line 1130, in <module>
    Run()
  File "PiCameraApp.py", line 1119, in Run
    raw_input()
NameError: name 'raw_input' is not defined

System Info: RPi 3 + Raspbian Stretch 2018-06-27.

Thanks,

@Billwilliams1952
Copy link
Owner

Billwilliams1952 commented Sep 7, 2018 via email

@dmeylman
Copy link

dmeylman commented Jan 3, 2019

@Billwilliams1952 --Very nice, useful and professional looking gui for rpi camera. Just want to know if time stamp can be displayed at the bottom of frame (just curious, no problem at all). Again, great App. Thanks for sharing.

@robin-weaver
Copy link

Hi, having issues running the app. Was initially the tk module but now it isn't detecting the picamera module for some reason?
ImportError: you do not seem to have picamera installed

I definitely do, and have run the test they recommend on their documentation:
python -c "import picamera"
With no errors

@robin-weaver
Copy link

Hi, having issues running the app. Was initially the tk module but now it isn't detecting the picamera module for some reason?
ImportError: you do not seem to have picamera installed

I definitely do, and have run the test they recommend on their documentation:
python -c "import picamera"
With no errors

PSA: figured a few things out
1- You have to install picamera via apt install, it won't work if you do it via pip
2- if you're getting the error of certain assets not being there, make sure you are in the source directory (which is actually in the readme but easy to miss)

@Experiment4
Copy link

Hi, having issues running the app. Was initially the tk module but now it isn't detecting the picamera module for some reason?
ImportError: you do not seem to have picamera installed

I definitely do, and have run the test they recommend on their documentation:
python -c "import picamera"
With no errors
hi ozymandias,
i also encounter some problem running the app.
my current startsetup is python3 /home/pi/PiCameraApp-master/Source/PiCameraApp.py
which leads to "Traceback (most recent call last):

File "/home/pi/PiCameraApp-master/Source/AnnotationOverlay.py", line 61, in
import picamera
ModuleNotFoundError: No module named 'picamera'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/PiCameraApp-master/Source/PiCameraApp.py", line 38, in
from AnnotationOverlay import *
File "/home/pi/PiCameraApp-master/Source/AnnotationOverlay.py", line 65, in
raise ImportError("You do not seem to have picamera installed")
ImportError: You do not seem to have picamera installed

and i do startup it from sourcedirectory.

You say

I definitely do, and have run the test they recommend on their documentation:
python -c "import picamera"
With no errors
where have you found that help ? do you have a link ? I am also not sure about PiCameraApp vs. picamera ...is it only some abreviation or is it a different name ...
cu
Thomas

@Experiment4
Copy link

pi@octopi:/PiCameraApp-master/Source $ python3 -c PiCameraApp.py
Traceback (most recent call last):
File "", line 1, in
NameError: name 'PiCameraApp' is not defined
pi@octopi:
/PiCameraApp-master/Source $

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