Giter Club home page Giter Club logo

Comments (11)

anxuae avatar anxuae commented on May 29, 2024

Hi Dommsel,

Yes it is normally possible to run pibooth without printer. Can you publish here the traceback error?

Thanks

from pibooth.

Dommsel avatar Dommsel commented on May 29, 2024

Here you are:

pi@raspberrypi:~ $ pibooth [ INFO ] pibooth : Starting the Photo Booth application... [ INFO ] pibooth : Show picture choice (no default set) [ INFO ] pibooth : Set 1 picture(s) mode [ INFO ] pibooth : Start new pictures sequence [ INFO ] pibooth : Take picture and save it in home/pi/usbstick/pibooth/2018-03-19-21-59-54/ptb000.jpg [ INFO ] pibooth : Creating merged picture [ INFO ] pibooth : Save the merged picture in home/pi/usbstick/pibooth/2018-03-19-21-59-54/2018-03-19-22-00-02_ptb.jpg [ INFO ] pibooth : Display the merged picture [ INFO ] pibooth : Send final picture to printer Traceback (most recent call last): File "/usr/local/bin/pibooth", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/pibooth/ptb.py", line 415, in main app.main_loop() File "/usr/local/lib/python2.7/dist-packages/pibooth/ptb.py", line 370, in main_loop self.state_machine.process(events) File "/usr/local/lib/python2.7/dist-packages/pibooth/states.py", line 57, in process self.active_state.do_actions(events) File "/usr/local/lib/python2.7/dist-packages/pibooth/ptb.py", line 43, in do_actions self.app.printer.print_file(self.app.previous_picture_file) File "/usr/local/lib/python2.7/dist-packages/pibooth/controls/printer.py", line 152, in print_file raise EnvironmentError("No printer found (check config file or CUPS config)")EnvironmentError: No printer found (check config file or CUPS config)

from pibooth.

Dommsel avatar Dommsel commented on May 29, 2024

Problem occures when the button 2 is pushed by displaying the image. Should be possible to hide the "Print foto afterwards"-function or disable button 2 at this time

from pibooth.

anxuae avatar anxuae commented on May 29, 2024

Yes you can hide the print state by setting the printer_delay=0 (see configuration details: https://github.com/werdeil/pibooth#configuration )

from pibooth.

anxuae avatar anxuae commented on May 29, 2024

Does it correspond to your needs? Can I close the issue?

from pibooth.

Dommsel avatar Dommsel commented on May 29, 2024

Hi anxuae, sorry for my delayed answer!
The suggested setting printer_delay=0 does not help me so much. My problem is marked in the upload. By hitting button 2 at this point, the program will abort. So I don't want do give users the possibility to print.
Don't worry about the monitor, it's 4:3 resolution ;)
2018-03-24 15 23 48

from pibooth.

anxuae avatar anxuae commented on May 29, 2024

Ok, I will look for a fix. The new behavior will be to skip print actions and print messages if one of following conditions is true:

  • pycups is not installed
  • no printer configured in CUPS

from pibooth.

anxuae avatar anxuae commented on May 29, 2024

Implemented in werdeil@227fc3f

from pibooth.

Dommsel avatar Dommsel commented on May 29, 2024

Hey anxuae,
thanks for your help, but I've got a last, dumb question :(
I justed started working with my raspi and so I still got not the possibility to gain much experience. I want to have commit #227fc3f run, but I don't know how. My steps were:

  • uninstalling pibooth by using pip uninstall pibooth
  • downloading zip from #227fc3f repository
  • unzip data to python directory in usr/local/lib

By starting pibooth through terminal I got the message: bash: pibooth: Command not found. Can you give me a short manual how to get the program run?

from pibooth.

anxuae avatar anxuae commented on May 29, 2024

Hi Dommsel,

The commande pibooth is only available for official release on the pypi server.

If you want to use an unstable version, follow this steps:

  • clone from github: git clone https://github.com/werdeil/pibooth.git
  • in a terminal, go in the cloned directory: cd pibooth
  • run the command: PYTHONPATH=. python3 pibooth/ptb.py

Be careful, sometime we push commits which are not fully debugged, thus it may not work.

from pibooth.

anxuae avatar anxuae commented on May 29, 2024

Available in v1.0.0

from pibooth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.