Giter Club home page Giter Club logo

runp's People

Contributors

vascop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

runp's Issues

Crontab issue: /bin/sh: 1: runp: not found

When I try to run runp from crontab, e.g. with 50 * * * * runp hello.py test >> hello.txt 2>&1 it fails and I get the following error: /bin/sh: 1: runp: not found How can I fix this?

Issue with compatibility picamera

I am trying to use runp with a python script that runs the camera on a raspberrypi with picamera. Although this works with python and in the script, I always get an error with runp:
picamera.exc.PiCameraRuntimeError: Cannot query frame information when camera is not recording

The script is as simple as

from picamera import PiCamera
from time import sleep

def test():
        camera = PiCamera()
        camera.start_preview()
        camera.start_recording('/home/pi/video.h264')
        sleep(10)
        camera.stop_recording()
        camera.stop_preview()

and the code I run: runp test.py test

runp.py on Python 3.6

I could install runp using pip, but it did not work right away. Besides the need to add parentheses to print statements, I found this error message:

Traceback (most recent call last):
[...]
File "[...]/lib/python3.6/site-packages/runp/runp.py", line 15, in filter_vars
    methods = inspect.getmembers(obj(), predicate=inspect.ismethod)

... for which a solution was to change obj() to obj. I am not knowledgeable enough to say this is the right solution, perhaps someone else could shed some light. With the above changes runp seems to work okay and continues to be a nifty little tool.

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.