teerytko / python-video4linux2

Automatically exported from code.google.com/p/python-video4linux2
0 stars 0 forks source link

TypeError: %d format: a number is required, not str (pyv4l2.py, line 466) #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
# ./streampics.py -d /dev/video0 -i 0 -p BGR3 -x 640 -y 480 -o testpics
Traceback (most recent call last):
  File "./streampics.py", line 94, in <module>
    Run()
  File "./streampics.py", line 56, in Run
    d.SetStandard( d.standards['NTSC'] )
  File "/root/python_motion/python-video4linux2-read-only/pyv4l2.py", line 466, in 
SetStandard
    lib.Error()
TypeError: %d format: a number is required, not str

What version of the product are you using? On what operating system?

Running svn revision 15
on 2.6.28-13-server #45-Ubuntu SMP Ubuntu Jaunty

Original issue reported on code.google.com by fusetech...@googlemail.com on 18 Jul 2009 at 12:48

GoogleCodeExporter commented 8 years ago
Same problem here:

$ ./pyv4l2.py 
Available devices:  ['/dev/video0']
    /dev/video0
Capabilities:   
    Capture
    Streaming
Input 0:
        Name:   Camera 1
        Type:   camera
        Standards: []
Traceback (most recent call last):
  File "./pyv4l2.py", line 763, in <module>
    d.SetStandard(d.standards['NTSC'])
  File "./pyv4l2.py", line 466, in SetStandard
    lib.Error()
TypeError: %d format: a number is required, not str

The webcam is on my Dell Mini 9 and lsusb shows:
ID 064e:a118 Suyin Corp.

Original comment by nauj27 on 11 Oct 2009 at 9:21

GoogleCodeExporter commented 8 years ago
Same error here too. My info:
  Camera: Bus 005 Device 002: ID 046d:08b1 Logitech, Inc. QuickCam Notebook Pro
  OS:     Ubuntu - Karmic Koala

Original comment by timsfanm...@gmail.com on 2 Dec 2009 at 4:59

GoogleCodeExporter commented 8 years ago
Same to me. My info:

Camera: Bus 001 Device 002: ID 045e:00f8 Microsoft Corp. LifeCam NX-6000
OS: Ubuntu 9.10 ( kernel 2.6.31-14-generic )
Python 2.6.4rc2

Original comment by suxiao...@gmail.com on 7 Dec 2009 at 7:55

GoogleCodeExporter commented 8 years ago
Same here

Original comment by hacke...@gmail.com on 28 May 2010 at 1:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
See Issue 11.

Original comment by marcus@wanners.net on 17 Jul 2010 at 9:49