-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors with uTorrentPostProcess.py #635
Comments
Here is another log entry from utorrent and the errors observed /home/plex/mp4_automator/uTorrentPostProcess.py tv http://explodie.org:6969/announce /home/plex/torrents/complete/tv/Conviction.S01E11.HDTV.x264-FLEET[PRiME] multi Conviction.S01E11.HDTV.x264-FLEET[PRiME].mkv 48C63CEBA82346C38D1BE6306DC5C8A2F1C49591 |
I just get this 2017-01-11 18:18:01 - uTorrentPostProcess - INFO - uTorrent post processing started. |
Your commands aren't being passed to the script by uTorrent. Check and make sure you have uTorrent configured correctly. If you do then make sure you have Windows configured properly to pass command line arguments to Python
…Sent from my iPhone
On Jan 11, 2017, at 18:30, badincite ***@***.***> wrote:
I just get this
2017-01-11 18:18:01 - uTorrentPostProcess - INFO - uTorrent post processing started.
2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - Not enough command line parameters present, are you launching this from uTorrent?
2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - #Args: %L %T %D %K %F %I %N Label, Tracker, Directory, single|multi, NameofFile(if single), InfoHash, Name
2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - Length was 1
2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - []
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thank's for taking the time to respond I have the following entered in my
utorrent "D:\Plex\sickbeard_mp4_automator-master\uTorrentPostProcess.py"
"%L" "%T" "%D" "%K" "%F" "%I" "%N". And I have associated the .py files
with python I also checked the registry for the python file command value
and its is correct ("C:\Python27\python.exe" "%1" %*).
On Wed, Jan 11, 2017 at 7:26 PM, Michael Higgins <notifications@github.com>
wrote:
… Your commands aren't being passed to the script by uTorrent. Check and
make sure you have uTorrent configured correctly. If you do then make sure
you have Windows configured properly to pass command line arguments to
Python
Sent from my iPhone
> On Jan 11, 2017, at 18:30, badincite ***@***.***> wrote:
>
> I just get this
>
> 2017-01-11 18:18:01 - uTorrentPostProcess - INFO - uTorrent post
processing started.
> 2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - Not enough command
line parameters present, are you launching this from uTorrent?
> 2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - #Args: %L %T %D %K
%F %I %N Label, Tracker, Directory, single|multi, NameofFile(if single),
InfoHash, Name
> 2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - Length was 1
> 2017-01-11 18:18:01 - uTorrentPostProcess - ERROR - []
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#635 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHC0sj0DknVxMjs4Sru-kt_YaUHu_jI_ks5rRXNQgaJpZM4Ldvz7>
.
--
JB Pollard
|
If you try to run a python script from the command line with command line parameters are they appropriately passed? |
I am able to run the manual.py from command line
python D:\Plex\sickbeard_mp4_automator-master\Manual.py -i
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]
-a
Manual processor started.
C:\Python27\python.exe
32bit Python.
Settings imported.
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]\marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].mkv
is valid.
Processing file
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]\marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].mkv
Matched TV episode as Marvels Agents of S.H.I.E.L.D. (TVDB ID:263365) S04E09
Processing Marvel's Agents of S.H.I.E.L.D. Season 04 Episode 09 - Broken
Promises
Settings imported.
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]\marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].mkv
is valid.
Settings imported.
Process started.
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]\marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].mkv
is valid.
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]\marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].mkv
needs processing.
Reading video stream.
Video codec detected: h264.
Pix Fmt: yuv420p.
Video codec: nvenc_h264.
Video bitrate: 5000.
Reading audio streams.
No audio streams detected in any appropriate language, relaxing
restrictions so there will be some audio stream present.
Audio detected for stream #1: aac [und].
Creating audio stream 0 from source stream 1.
Overriding default channel settings because iOS audio is enabled but the
source is stereo [iOS-audio].
Audio codec: copy.
Channels: 2.
Bitrate: 256.
Language: und
Filter: None
Audio Track is number 1 setting disposition to default
Reading subtitle streams.
{
"subtitle": {},
"preopts": [
"-fix_sub_duration",
"-hwaccel",
"cuvid",
"-c:v",
"h264_cuvid"
],
"audio": {
"0": {
"map": 1,
"language": "und",
"channels": 2,
"codec": "copy",
"disposition": "default",
"bitrate": 256,
"filter": null
}
},
"video": {
"map": 0,
"scale_npp_enabled": false,
"nvenc_profile": "2",
"qmax": "",
"nvenc_preset": "slow",
"qmin": "17",
"bufsize": "39000",
"bitrate": 5000,
"nvenc_temporal_aq": true,
"nvenc_hwaccel_enabled": true,
"level": null,
"nvenc_rc_lookahead": "64",
"minrate": "",
"codec": "nvenc_h264",
"nvenc_rate_control": "vbr_2pass",
"maxrate": "75000",
"global_quality": ""
},
"format": "mp4"
}
Starting conversion.
Input directory:
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv].
File name: marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].
Input extension: mkv.
Output directory:
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv].
Output file:
F:\postprocessing\Marvels.Agents.of.S.H.I.E.L.D.S04E09.HDTV.x264-LOL[ettv]\marvels.agents.of.s.h.i.e.l.d.409.hdtv-lol[ettv].mp4.
[##### ] 55%
…On Wed, Jan 11, 2017 at 8:12 PM, Michael Higgins ***@***.***> wrote:
If you try to run a python script from the command line with command line
parameters are they appropriately passed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#635 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHC0sv8zZB2rGUqLR7YTQ_1JwXDuCibvks5rRX4ZgaJpZM4Ldvz7>
.
--
JB Pollard
|
Hm then its unclear why the command line parameters aren't being passed. Dunno if this is perhaps a bug with uTorrent? I usually recommend anyone using uTorrent switch to Deluge anyway for other reasons but I'm not sure here. The error you're seeing is what you'd expect when the script doesn't recognized any command line arguments being present. I suppose you could try using a batch file to test if uTorrent is passing anything |
I went through the registry and edited everything I could find now I'm seeing Length was 2. I was running deluge at one point but I noticed utorrent was finding more peers then deluge I ran them side by side so I dumped deluge. 2017-01-11 20:11:19 - uTorrentPostProcess - INFO - uTorrent post processing started. |
I have had the exact same problem on linux - same error message. |
After looking at the uTorrent forums it seems others have had issues. Try playing around with the double quotes you have in the uTorrent settings and see if that has any impact, like try removing them from around the .py file Other than that I would maybe seek some assistance on the uTorrent forums to see if there's any known issues. |
Hi Michael, I did already test double quotes and single quotes and have not been able to make the utorrentpostprocess work at all. Utorrent logs show it passes the correct command line.... if you take the command line passed from the log and run it in terminal you get the errors reported. Hope this helps... Cheers, |
I have resorted to using the manual process and passing variables to it from utorrent... i am in the process of testing my custom script that will be for any torrent or nzb client and uses your manual script. Cheers, |
I was able to get further using the suggested utorrent format however nothing seem's to happen after readSettings 2017-01-11 21:09:07 - uTorrentPostProcess - INFO - uTorrent post processing started. |
It's passing the parameters to the batch file does length 2 mean its faulting on the tracker parameter?
|
Nevermind that doesn't make since the log clearly shows it has all the parameters so why is it even throwing the error?' It has everything
|
I'm having a hard time determining where that last error you posted is being triggered from |
Here's the full log, It's saying it not enough parameters are present but then list all of the them which is confusing. 2017-01-12 18:59:17 - uTorrentPostProcess - INFO - uTorrent post processing started. |
So it looks like the individual arguments aren't being split up into the array, and instead are all lumped together as one big item. You didn't by chance wrap everything in quotes did you? Maybe post a screenshot of your uTorrent 'run program' settings page |
If I change the code ( settings = ReadSettings(os.path.dirname(sys.argv[0]), "autoProcess.ini") Log shows |
I've tried it this way And This way both show the same in the log when run Just ran them back to back here is the log 2017-01-12 20:10:02 - uTorrentPostProcess - ERROR - Not enough command line parameters present, are you launching this from uTorrent? |
What's happening is your arguments aren't being broken up into a list, and its seeing all of the arguments as one long argument So when python checks the argument count, its not getting the right number cause all of the 6 arguments uTorrent is passing are only seen as a single entity. Now why this is happening isn't clear. One thing I would try is wrapping the path to the python file in quotes in addition to the parameters, example
The fact that manual. py runs makes me think its not a systemic issue but a problem with how uTorrent is passing the commands You could also make a simple python file like this
And then run the file from the command line with a couple parameters and post the output for me |
I got it!!!!!!!!!!!!!!!!! it was on my side here is the fix. Thanks for the help
|
Awesome. Yeah the last debug script was really helpful in showing that it was a systemic problem. |
Hey Michael, I did get it working on Linux - you need to specify the path to python on the utorrent command line - worth updating the doco on this. @mdhiggins also can you pass a variable to the utorrent post process for the output path? in other words, override the default in the autoprocess.ini? The reason this should be available (if it isn't) is that if you are downloading a tv show you may like to output this to a different path than for a movie and then have the post processors for either movie or tv pick it up... Or can we add 2 paths to the autoprocess.ini - once for movies and one for tv? |
@mdhiggins I have added some updates to the readme.md doco regarding this for your review and approval 👍 |
If you wanna make a pull request I'll merge the readme update into the master branch |
Hi Michael,
Please forgive my ignorance (I have never done a pull request) I will look into that today.
Cheers,
Darren
From: Michael Higgins <notifications@github.com>
Reply-To: mdhiggins/sickbeard_mp4_automator <reply@reply.github.com>
Date: Friday, 13 January 2017 at 10:07 pm
To: mdhiggins/sickbeard_mp4_automator <sickbeard_mp4_automator@noreply.github.com>
Cc: Darren Blackley <darren.blackley@gmail.com>, Mention <mention@noreply.github.com>
Subject: Re: [mdhiggins/sickbeard_mp4_automator] errors with uTorrentPostProcess.py (#635)
If you wanna make a pull request I'll merge the readme update into the master branch
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Im trying to do the steps outlined by @badincite
I cant find HKEY_CLASSES_ROOT\Applications\python.exe in my registry im using python 2.7.14 could anyone help me figure this out? There is also no HKEY_CLASSES_ROOT\py_auto_file available either |
/home/plex/mp4_automator/uTorrentPostProcess.py movie udp://tracker.openbittorrent.com:80/announce /home/plex/torrents/complete/movie/Interstellar.Wars.2016.BRRip.AC3.2.0.x264-BDP[PRiME] multi Interstellar.Wars.2016.BRRip.AC3.2.0.x264-BDP[PRiME].mkv D50DDE62D882A0E85B20DF368B6E936BD40B37F9
import: unable to open image
os': Permission denied @ error/blob.c/OpenBlob/2712. import: unable to open image
re': Permission denied @ error/blob.c/OpenBlob/2712.import: unable to open image
sys': Permission denied @ error/blob.c/OpenBlob/2712. import: unable to open image
shutil': Permission denied @ error/blob.c/OpenBlob/2712.from: too many arguments
from: too many arguments
from: too many arguments
import: unable to open image
logging': Permission denied @ error/blob.c/OpenBlob/2712. from: too many arguments /home/plex/mp4_automator/uTorrentPostProcess.py: line 11: syntax error near unexpected token
os.path.join'/home/plex/mp4_automator/uTorrentPostProcess.py: line 11: `fileConfig(os.path.join(os.path.dirname(sys.argv[0]), 'logging.ini'), defaults={'logfilename': os.path.join(os.path.dirname(sys.argv[0]), 'info.log').replace("\", "/")})'�
The text was updated successfully, but these errors were encountered: