Python Subprocess Windowserror Error 87 The Parameter Is Incorrect
Contents |
here for a quick overview of the site Help windows error 87 the parameter is incorrect Center Detailed answers to any questions you might have Meta
Oserror Winerror 87 The Parameter Is Incorrect
Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up OSError: [WinError87] The parameter is incorrect up vote 2 down vote favorite I have a python script written using python 3.4.3 and it pulls in a .csv file of ip addresses, usernames, and passwords to pass to another batch script. import pdb import csv import os import subprocess import datetime import time import signal from multiprocessing import Process def callGetDimmBatchFile(logFile, batchFileName, ipAddress, userName, passWord): print('\nId: {0}'.format(counter) + '\n', file=logFile, flush=True) command ='{0} -i {1} -u {2} -p {3}'.format(batchFileName, ipAddress, userName, passWord) print(command, file=logFile, flush=True) print("IP Address is {0}".format(ipAddress)) print("User name is {0}".format(userName)) print("Password is {0}".format(passWord)) timeout = 60 start = datetime.datetime.now() process = subprocess.Popen(command, stdout=logFile, stderr=logFile) while process.poll() is None: time.sleep(0.1) now = datetime.datetime.now() if (now - start).seconds > timeout: process.kill() # os.kill(process.pid, signal.SIGKILL) # os.waitpid(-1, os.Warning) return None rc = process.wait() print('\nReturn Code:', rc, file=logFile, flush=True) logFile = open('log.txt', 'w+') batchFileName = 'getfoo.bat' pathToCsv = 'autorun-input.csv' print('Path to CSV is {0}'.format(pathToCsv)) counter = 0 with open(pathToCsv)
GoogleВойтиСкрытые поляПоиск групп или сообщений
Sign in Pricing Blog Support Search GitHub This https://github.com/armadillica/flamenco/issues/125 repository Watch 43 Star 108 Fork 34 armadillica/flamenco Code Issues 24 Pull requests 3 Projects 0 Pulse Graphs New issue WindowsError: [Error 87] when trying to run a new job. #125 Closed callym opened this Issue Apr 8, 2015 · 9 comments Projects error 87 None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants callym commented Apr 8, 2015 I have followed the guide in the readme on how to run flamenco, and it all seems to be working okay, the error 87 the Blender plugin adds jobs to the web interface, but when the worker tries to run them, I get this error: Worker Loop Registering Quering for a new task New Task Found 1, job 1 Fetching job file 1 Extracting c:\users\callum\appdata\local\temp\flamenco-worker\1\taskfile_1.zip Fetching support file 1 Extracting c:\users\callum\appdata\local\temp\flamenco-worker\1\tasksupportfile_ 1.zip Fetching deppend file http://localhost:7777/static/storage/1/dependencies_1.zip Extracting c:\users\callum\appdata\local\temp\flamenco-worker\1\dependencies.zip Removing bad zipfile c:\users\callum\appdata\local\temp\flamenco-worker\1\depend encies.zip ERROR:root:Not a ZipFile 200 Running: -noaudio --background c:\users\callum\appdata\local\temp\flamenco-worker\1\1\\testflamenco.blend --render-output c:\users\callum\appdata\local\temp\flamenco-worker\1\output\1\#### --python c:\users\callum\appdata\local\temp\flamenco-worker\1\1\\pre_render.py --frame-start 1 --frame-end 1 --render-format PNG --render-anim --enable-autoexec Traceback (most recent call last): File "manage.py", line 63, in