Giter VIP home page Giter VIP logo

blog-td-subprocess's People

Contributors

raganmd avatar

Stargazers

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

Watchers

 avatar  avatar

blog-td-subprocess's Issues

running python3 script on mac os

Hello, how is it going?

I am trying to run a python3 from script within touch designer 2019.19.160 on a mac osx 10.13.6 using the subprocces. It has args so what I have so far is

def LookForGenderAndAge():
    # point to our script that we're going to execute
    cmd_python_script = '{}/scripts/AgeGender.py'.format(project.folder)
    # cmd_python_script = '{}/Users/mraeclo/Documents/GitHub/learnopencv/AgeGender/AgeGender.py'.format(project.folder)

    # construct a list of arguments for out external script
    currentFuckface = str(op('currentFuckface').par.value0)
    pathToImage = '/Users/mraeclo/Documents/Touch Designer/RacistPurikura/Fuckfaces_capture/'
    script_args = ['--input', pathToImage + "fuckface" +
                   currentFuckface + ".png", '--fuckface', currentFuckface]

    # set python3 to be used instead of python
    python_exe = '/Library/Frameworks/Python.framework/Versions/3.5/Resources/Python.app'

    # join our python instructions with our scirpt args
    command_list = [python_exe, cmd_python_script] + script_args
    # command_list = ['python', cmd_python_script] + script_args

    # call our script with subprocess
    subprocess.Popen(command_list, shell=False)
    print("finished calling script")

Which gives me the following errors

Traceback (most recent call last):
  File "/project1/script_extractFeatures", line 8, in onValueChange
  File "/project1/script_extractFeatures", line 32, in LookForGenderAndAge
  File "/Applications/TouchDesigner099.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/Applications/TouchDesigner099.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1541, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

I tried other paths but they give the same error as the above

Am I pointing to the wrong place?

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.