clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
673 stars 176 forks source link

Upgrade failed #1473

Closed Tiwas closed 5 years ago

Tiwas commented 5 years ago

Got the following while post processing a download this morning:

fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
[08:45:04] [INFO]::MAIN: Loading config from [C:\SickRage\Scripts\nzbToMedia\autoProcessMedia.cfg]
[08:45:04] [INFO]::ENVIRONMENT: TMP: X:\xxx\xxx\AppData\Local\Temp
[08:45:04] [INFO]::ENVIRONMENT: ONEDRIVECONSUMER: X:\xxx\xxx\OneDrive
[08:45:04] [INFO]::ENVIRONMENT: COMPUTERNAME: MEDIACENTER
[08:45:04] [INFO]::ENVIRONMENT: PROGRAMDATA: C:\ProgramData
[08:45:04] [INFO]::ENVIRONMENT: SAB_SCRIPT: nzbToSickBeard.py
[08:45:04] [INFO]::ENVIRONMENT: USERDOMAIN: MEDIACENTER
[08:45:04] [INFO]::ENVIRONMENT: SAB_ORIG_NZB_GZ: X:\xxx\xxx\Downloads\incomplete\yyy.yyyy.S03E13.720p.HEVC.x2\__ADMIN__\yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta.nzb.gz
[08:45:04] [INFO]::ENVIRONMENT: SAB_PAR2_COMMAND: C:\Program Files\SABnzbd\win\par2\par2.exe
[08:45:04] [INFO]::ENVIRONMENT: PSMODULEPATH: C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
[08:45:04] [INFO]::ENVIRONMENT: SAB_ENCRYPTED: 0
[08:45:04] [INFO]::ENVIRONMENT: SAB_PP_STATUS: 0
[08:45:04] [INFO]::ENVIRONMENT: COMMONPROGRAMFILES: C:\Program Files\Common Files
[08:45:04] [INFO]::ENVIRONMENT: PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
[08:45:04] [INFO]::ENVIRONMENT: LOGONSERVER: \\MEDIACENTER
[08:45:04] [INFO]::ENVIRONMENT: SAB_VERSION: 2.3.6
[08:45:04] [INFO]::ENVIRONMENT: PROGRAMFILES: C:\Program Files
[08:45:04] [INFO]::ENVIRONMENT: PROCESSOR_REVISION: 3a09
[08:45:04] [INFO]::ENVIRONMENT: PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;X:\xxx\xxx\AppData\Local\Microsoft\WindowsApps;;C:\Python27\lib\site-packages\pywin32_system32
[08:45:04] [INFO]::ENVIRONMENT: SYSTEMROOT: C:\WINDOWS
[08:45:04] [INFO]::ENVIRONMENT: SAB_BYTES: 212201913
[08:45:04] [INFO]::ENVIRONMENT: PROGRAMFILES(X86): C:\Program Files (x86)
[08:45:04] [INFO]::ENVIRONMENT: DRIVERDATA: C:\Windows\System32\Drivers\DriverData
[08:45:04] [INFO]::ENVIRONMENT: SAB_AGE: 1h
[08:45:04] [INFO]::ENVIRONMENT: SAB_UNWANTED_EXT: 0
[08:45:04] [INFO]::ENVIRONMENT: TEMP: X:\xxx\xxx\AppData\Local\Temp
[08:45:04] [INFO]::ENVIRONMENT: SAB_FAIL_MSG:
[08:45:04] [INFO]::ENVIRONMENT: SAB_NZO_ID: SABnzbd_nzo_rwvjmt
[08:45:04] [INFO]::ENVIRONMENT: SAB_GROUP: alt.binaries.kenpsx
[08:45:04] [INFO]::ENVIRONMENT: PROCESSOR_ARCHITECTURE: AMD64
[08:45:04] [INFO]::ENVIRONMENT: SAB_CAT: tv
[08:45:04] [INFO]::ENVIRONMENT: ALLUSERSPROFILE: C:\ProgramData
[08:45:04] [INFO]::ENVIRONMENT: SAB_COMPLETE_DIR: Z:\.sabnzbd\complete\TV\yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta
[08:45:04] [INFO]::ENVIRONMENT: LOCALAPPDATA: X:\xxx\xxx\AppData\Local
[08:45:04] [INFO]::ENVIRONMENT: FPS_BROWSER_USER_PROFILE_STRING: Default
[08:45:04] [INFO]::ENVIRONMENT: HOMEPATH: \Users\Kodi
[08:45:04] [INFO]::ENVIRONMENT: SAB_OVERSIZED: 0
[08:45:04] [INFO]::ENVIRONMENT: SAB_PASSWORD:
[08:45:04] [INFO]::ENVIRONMENT: SAB_STATUS: Running
[08:45:04] [INFO]::ENVIRONMENT: PROGRAMW6432: C:\Program Files
[08:45:04] [INFO]::ENVIRONMENT: SAB_7ZIP_COMMAND: C:\Program Files\SABnzbd\win\7zip\7za.exe
[08:45:04] [INFO]::ENVIRONMENT: USERNAME: Kodi
[08:45:04] [INFO]::ENVIRONMENT: SAB_BYTES_TRIED: 212201913
[08:45:04] [INFO]::ENVIRONMENT: SAB_ZIP_COMMAND:
[08:45:04] [INFO]::ENVIRONMENT: SAB_AVG_BPS: 17778
[08:45:04] [INFO]::ENVIRONMENT: COMSPEC: C:\WINDOWS\system32\cmd.exe
[08:45:04] [INFO]::ENVIRONMENT: SAB_FILENAME: yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta.nzb
[08:45:04] [INFO]::ENVIRONMENT: SAB_DUPLICATE: 0
[08:45:04] [INFO]::ENVIRONMENT: NUMBER_OF_PROCESSORS: 4
[08:45:04] [INFO]::ENVIRONMENT: SSL_CERT_FILE: C:\Program Files\SABnzbd\cacert.pem
[08:45:04] [INFO]::ENVIRONMENT: SAB_DOWNLOAD_TIME: 11
[08:45:04] [INFO]::ENVIRONMENT: ONEDRIVE: X:\xxx\xxx\OneDrive
[08:45:04] [INFO]::ENVIRONMENT: SAB_BYTES_DOWNLOADED: 201805453
[08:45:04] [INFO]::ENVIRONMENT: SAB_PP: 3
[08:45:04] [INFO]::ENVIRONMENT: FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer
[08:45:04] [INFO]::ENVIRONMENT: PROMPT: $P$G
[08:45:04] [INFO]::ENVIRONMENT: USERDOMAIN_ROAMINGPROFILE: MEDIACENTER
[08:45:04] [INFO]::ENVIRONMENT: SAB_PROGRAM_DIR: C:\Program Files\SABnzbd
[08:45:04] [INFO]::ENVIRONMENT: PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[08:45:04] [INFO]::ENVIRONMENT: SAB_URL: Z:\.sabnzbd\watch\TV\yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta.nzb
[08:45:04] [INFO]::ENVIRONMENT: SAB_REPAIR: 1
[08:45:04] [INFO]::ENVIRONMENT: SAB_UNPACK: 1
[08:45:04] [INFO]::ENVIRONMENT: SESSIONNAME: Console
[08:45:04] [INFO]::ENVIRONMENT: SAB_FAILURE_URL:
[08:45:04] [INFO]::ENVIRONMENT: WINDIR: C:\WINDOWS
[08:45:04] [INFO]::ENVIRONMENT: SAB_PRIORITY: 0
[08:45:04] [INFO]::ENVIRONMENT: HOMEDRIVE: C:
[08:45:04] [INFO]::ENVIRONMENT: SAB_MULTIPAR_COMMAND: C:\Program Files\SABnzbd\win\par2\multipar\par2j64.exe
[08:45:04] [INFO]::ENVIRONMENT: SYSTEMDRIVE: C:
[08:45:04] [INFO]::ENVIRONMENT: COMMONPROGRAMFILES(X86): C:\Program Files (x86)\Common Files
[08:45:04] [INFO]::ENVIRONMENT: PUBLIC: C:\Users\Public
[08:45:04] [INFO]::ENVIRONMENT: SAB_RAR_COMMAND: C:\Program Files\SABnzbd\win\unrar\x64\UnRAR.exe
[08:45:04] [INFO]::ENVIRONMENT: APPDATA: X:\xxx\xxx\AppData\Roaming
[08:45:04] [INFO]::ENVIRONMENT: PROCESSOR_LEVEL: 6
[08:45:04] [INFO]::ENVIRONMENT: COMMONPROGRAMW6432: C:\Program Files\Common Files
[08:45:04] [INFO]::ENVIRONMENT: OS: Windows_NT
[08:45:04] [INFO]::ENVIRONMENT: SAB_FINAL_NAME: yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta
[08:45:04] [INFO]::ENVIRONMENT: USERPROFILE: X:\xxx\xxx
[08:45:04] [INFO]::MAIN: Checking database structure...
[08:45:04] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[08:45:04] [DB]::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
[08:45:04] [DB]::MAIN: nzbtomedia.db: SELECT db_version FROM db_version
[08:45:04] [DEBUG]::MAIN: InitialSchema upgrade not required
[08:45:04] [INFO]::MAIN: Checking if source needs an update
[08:45:05] [DEBUG]::MAIN: cur_commit = 33d95751bacfa9bf4d1106742494146b00fc74b0 % (newest_commit)= c5dad747633eb0f9bebe3bc0938fb784b98f51d4, num_commits_behind = 10
[08:45:05] [INFO]::MAIN: There is a newer version available (you're 10 commits behind)
[08:45:05] [INFO]::MAIN: Auto-Updating nzbToMedia, Please wait ...
[08:45:06] [DEBUG]::MAIN: cur_commit = 33d95751bacfa9bf4d1106742494146b00fc74b0 % (newest_commit)= c5dad747633eb0f9bebe3bc0938fb784b98f51d4, num_commits_behind = 10
[08:45:06] [INFO]::MAIN: Creating update folder C:\SickRage\Scripts\nzbToMedia\sb-update before extracting
[08:45:06] [INFO]::MAIN: Downloading update from 'https://github.com/clinton-hall/nzbToMedia/tarball/master'
[08:45:08] [INFO]::MAIN: Extracting file C:\SickRage\Scripts\nzbToMedia\sb-update\nzbtomedia-update.tar
[08:45:15] [INFO]::MAIN: Deleting file C:\SickRage\Scripts\nzbToMedia\sb-update\nzbtomedia-update.tar
[08:45:15] [INFO]::MAIN: Moving files from C:\SickRage\Scripts\nzbToMedia\sb-update\clinton-hall-nzbToMedia-c5dad74 to C:\SickRage\Scripts\nzbToMedia
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
[08:45:17] [INFO]::MAIN: Restarting nzbToMedia with ['C:\\Python27\\python.exe', 'C:\\SickRage\\Scripts\\nzbToMedia\\nzbToSickBeard.py', 'Z:\\.sabnzbd\\complete\\TV\\yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta', 'yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta.nzb', 'yyy.yyyy.S03E13.720p.HEVC.x265-MeGusta', '', 'tv', 'alt.binaries.kenpsx', '0', '']
Changing to directory: C:\SickRage\Scripts\nzbToMedia

-- Cleaning bytecode --
Removing cleanup.pyc
Removing core/__init__.pyc
Removing core/autoProcess/__init__.pyc
Removing core/autoProcess/autoProcessComics.pyc
Removing core/autoProcess/autoProcessGames.pyc
Removing core/autoProcess/autoProcessMovie.pyc
Removing core/autoProcess/autoProcessMusic.pyc
Removing core/autoProcess/autoProcessTV.pyc
Removing core/databases/__init__.pyc
Removing core/databases/mainDB.pyc
Removing core/extractor/__init__.pyc
Removing core/extractor/extractor.pyc
Removing core/gh_api.pyc
Removing core/linktastic/__init__.pyc
Removing core/linktastic/linktastic.pyc
Removing core/logger.pyc
Removing core/nzbToMediaAutoFork.pyc
Removing core/nzbToMediaConfig.pyc
Removing core/nzbToMediaDB.pyc
Removing core/nzbToMediaSceneExceptions.pyc
Removing core/nzbToMediaUserScript.pyc
Removing core/nzbToMediaUtil.pyc
Removing core/qbittorrent/__init__.pyc
Removing core/qbittorrent/client.pyc
Removing core/synchronousdeluge/__init__.pyc
Removing core/synchronousdeluge/client.pyc
Removing core/synchronousdeluge/exceptions.pyc
Removing core/synchronousdeluge/protocol.pyc
Removing core/synchronousdeluge/rencode.pyc
Removing core/synchronousdeluge/transfer.pyc
Removing core/transcoder/__init__.pyc
Removing core/transcoder/transcoder.pyc
Removing core/transmissionrpc/__init__.pyc
Removing core/transmissionrpc/client.pyc
Removing core/transmissionrpc/constants.pyc
Removing core/transmissionrpc/error.pyc
Removing core/transmissionrpc/httphandler.pyc
Removing core/transmissionrpc/session.pyc
Removing core/transmissionrpc/six.pyc
Removing core/transmissionrpc/torrent.pyc
Removing core/transmissionrpc/utils.pyc
Removing core/utorrent/__init__.pyc
Removing core/utorrent/client.pyc
Removing core/utorrent/upload.pyc
Removing core/versionCheck.pyc
Removing libs/__init__.pyc
Removing libs/babelfish/__init__.pyc
Removing libs/babelfish/converters/__init__.pyc
Removing libs/babelfish/converters/alpha2.pyc
Removing libs/babelfish/converters/alpha3b.pyc
Removing libs/babelfish/converters/countryname.pyc
Removing libs/babelfish/converters/name.pyc
Removing libs/babelfish/converters/opensubtitles.pyc
Removing libs/babelfish/country.pyc
Removing libs/babelfish/exceptions.pyc
Removing libs/babelfish/language.pyc
Removing libs/babelfish/script.pyc
Removing libs/beets/__init__.pyc
Removing libs/beets/util/__init__.pyc
Removing libs/beets/util/confit.pyc
Removing libs/beets/util/hidden.pyc
Removing libs/bs4/__init__.pyc
Removing libs/bs4/builder/__init__.pyc
Removing libs/bs4/builder/_html5lib.pyc
Removing libs/bs4/builder/_htmlparser.pyc
Removing libs/bs4/builder/_lxml.pyc
Removing libs/bs4/dammit.pyc
Removing libs/bs4/element.pyc
Removing libs/chardet/__init__.pyc
Removing libs/concurrent/__init__.pyc
Removing libs/concurrent/futures/__init__.pyc
Removing libs/concurrent/futures/_base.pyc
Removing libs/concurrent/futures/process.pyc
Removing libs/concurrent/futures/thread.pyc
Removing libs/configobj/__init__.pyc
Removing libs/configobj/_version.pyc
Removing libs/configobj/configobj.pyc
Removing libs/dateutil/__init__.pyc
Removing libs/dateutil/parser.pyc
Removing libs/dateutil/relativedelta.pyc
Removing libs/dateutil/tz.pyc
Removing libs/dateutil/tzwin.pyc
Removing libs/dogpile/__init__.pyc
Removing libs/dogpile/cache/__init__.pyc
Removing libs/dogpile/cache/api.pyc
Removing libs/dogpile/cache/backends/__init__.pyc
Removing libs/dogpile/cache/compat.pyc
Removing libs/dogpile/cache/exception.pyc
Removing libs/dogpile/cache/proxy.pyc
Removing libs/dogpile/cache/region.pyc
Removing libs/dogpile/cache/util.pyc
Removing libs/dogpile/core/__init__.pyc
Removing libs/dogpile/core/dogpile.pyc
Removing libs/dogpile/core/legacy.pyc
Removing libs/dogpile/core/nameregistry.pyc
Removing libs/dogpile/core/readwrite_lock.pyc
Removing libs/dogpile/core/util.pyc
Removing libs/enum/LICENSE
Removing libs/enum/README
Removing libs/enzyme/__init__.pyc
Removing libs/enzyme/compat.pyc
Removing libs/enzyme/exceptions.pyc
Removing libs/enzyme/mkv.pyc
Removing libs/enzyme/parsers/__init__.pyc
Removing libs/enzyme/parsers/ebml/__init__.pyc
Removing libs/enzyme/parsers/ebml/core.pyc
Removing libs/enzyme/parsers/ebml/readers.pyc
Removing libs/guessit/__init__.pyc
Removing libs/guessit/__version__.pyc
Removing libs/guessit/api.pyc
Removing libs/guessit/options.pyc
Removing libs/guessit/reutils.pyc
Removing libs/guessit/rules/__init__.pyc
Removing libs/guessit/rules/common/__init__.pyc
Removing libs/guessit/rules/common/comparators.pyc
Removing libs/guessit/rules/common/date.pyc
Removing libs/guessit/rules/common/formatters.pyc
Removing libs/guessit/rules/common/numeral.pyc
Removing libs/guessit/rules/common/validators.pyc
Removing libs/guessit/rules/common/words.pyc
Removing libs/guessit/rules/markers/__init__.pyc
Removing libs/guessit/rules/markers/groups.pyc
Removing libs/guessit/rules/markers/path.pyc
Removing libs/guessit/rules/processors.pyc
Removing libs/guessit/rules/properties/__init__.pyc
Removing libs/guessit/rules/properties/audio_codec.pyc
Removing libs/guessit/rules/properties/bonus.pyc
Removing libs/guessit/rules/properties/cds.pyc
Removing libs/guessit/rules/properties/container.pyc
Removing libs/guessit/rules/properties/country.pyc
Removing libs/guessit/rules/properties/crc.pyc
Removing libs/guessit/rules/properties/date.pyc
Removing libs/guessit/rules/properties/edition.pyc
Removing libs/guessit/rules/properties/episode_title.pyc
Removing libs/guessit/rules/properties/episodes.pyc
Removing libs/guessit/rules/properties/film.pyc
Removing libs/guessit/rules/properties/format.pyc
Removing libs/guessit/rules/properties/language.pyc
Removing libs/guessit/rules/properties/mimetype.pyc
Removing libs/guessit/rules/properties/other.pyc
Removing libs/guessit/rules/properties/part.pyc
Removing libs/guessit/rules/properties/release_group.pyc
Removing libs/guessit/rules/properties/screen_size.pyc
Removing libs/guessit/rules/properties/title.pyc
Removing libs/guessit/rules/properties/type.pyc
Removing libs/guessit/rules/properties/video_codec.pyc
Removing libs/guessit/rules/properties/website.pyc
Removing libs/pkg_resources.pyc
Removing libs/pysrt/__init__.pyc
Removing libs/pysrt/comparablemixin.pyc
Removing libs/pysrt/compat.pyc
Removing libs/pysrt/srtexc.pyc
Removing libs/pysrt/srtfile.pyc
Removing libs/pysrt/srtitem.pyc
Removing libs/pysrt/srttime.pyc
Removing libs/pysrt/version.pyc
Removing libs/rarfile.pyc
Removing libs/rarfile1/LICENSE
Removing libs/rarfile1/Makefile
Removing libs/rarfile1/PKG-INFO
Removing libs/rarfile1/doc/Makefile
Removing libs/rarfile1/test/Makefile
Removing libs/rebulk/__init__.pyc
Removing libs/rebulk/chain.pyc
Removing libs/rebulk/debug.pyc
Removing libs/rebulk/formatters.pyc
Removing libs/rebulk/introspector.pyc
Removing libs/rebulk/loose.pyc
Removing libs/rebulk/match.pyc
Removing libs/rebulk/pattern.pyc
Removing libs/rebulk/processors.pyc
Removing libs/rebulk/rebulk.pyc
Removing libs/rebulk/remodule.pyc
Removing libs/rebulk/rules.pyc
Removing libs/rebulk/toposort.pyc
Removing libs/rebulk/utils.pyc
Removing libs/rebulk/validators.pyc
Removing libs/requests/__init__.pyc
Removing libs/requests/adapters.pyc
Removing libs/requests/api.pyc
Removing libs/requests/auth.pyc
Removing libs/requests/certs.pyc
Removing libs/requests/compat.pyc
Removing libs/requests/cookies.pyc
Removing libs/requests/exceptions.pyc
Removing libs/requests/hooks.pyc
Removing libs/requests/models.pyc
Removing libs/requests/packages/__init__.pyc
Removing libs/requests/packages/chardet/__init__.pyc
Removing libs/requests/packages/urllib3/__init__.pyc
Removing libs/requests/packages/urllib3/_collections.pyc
Removing libs/requests/packages/urllib3/connection.pyc
Removing libs/requests/packages/urllib3/connectionpool.pyc
Removing libs/requests/packages/urllib3/contrib/__init__.pyc
Removing libs/requests/packages/urllib3/contrib/pyopenssl.pyc
Removing libs/requests/packages/urllib3/exceptions.pyc
Removing libs/requests/packages/urllib3/fields.pyc
Removing libs/requests/packages/urllib3/filepost.pyc
Removing libs/requests/packages/urllib3/packages/__init__.pyc
Removing libs/requests/packages/urllib3/packages/ordered_dict.pyc
Removing libs/requests/packages/urllib3/packages/six.pyc
Removing libs/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc
Removing libs/requests/packages/urllib3/poolmanager.pyc
Removing libs/requests/packages/urllib3/request.pyc
Removing libs/requests/packages/urllib3/response.pyc
Removing libs/requests/packages/urllib3/util/__init__.pyc
Removing libs/requests/packages/urllib3/util/connection.pyc
Removing libs/requests/packages/urllib3/util/request.pyc
Removing libs/requests/packages/urllib3/util/response.pyc
Removing libs/requests/packages/urllib3/util/retry.pyc
Removing libs/requests/packages/urllib3/util/ssl_.pyc
Removing libs/requests/packages/urllib3/util/timeout.pyc
Removing libs/requests/packages/urllib3/util/url.pyc
Removing libs/requests/sessions.pyc
Removing libs/requests/status_codes.pyc
Removing libs/requests/structures.pyc
Removing libs/requests/utils.pyc
Removing libs/six.pyc
Removing libs/stevedore/__init__.pyc
Removing libs/stevedore/driver.pyc
Removing libs/stevedore/enabled.pyc
Removing libs/stevedore/extension.pyc
Removing libs/stevedore/hook.pyc
Removing libs/stevedore/named.pyc
Removing libs/subliminal/__init__.pyc
Removing libs/subliminal/cache.pyc
Removing libs/subliminal/converters/__init__.pyc
Removing libs/subliminal/converters/thesubdb.pyc
Removing libs/subliminal/core.pyc
Removing libs/subliminal/exceptions.pyc
Removing libs/subliminal/extensions.pyc
Removing libs/subliminal/providers/__init__.pyc
Removing libs/subliminal/providers/addic7ed.pyc
Removing libs/subliminal/providers/legendastv.pyc
Removing libs/subliminal/providers/opensubtitles.pyc
Removing libs/subliminal/providers/podnapisi.pyc
Removing libs/subliminal/providers/shooter.pyc
Removing libs/subliminal/providers/subscenter.pyc
Removing libs/subliminal/providers/thesubdb.pyc
Removing libs/subliminal/providers/tvsubtitles.pyc
Removing libs/subliminal/refiners/__init__.pyc
Removing libs/subliminal/refiners/metadata.pyc
Removing libs/subliminal/refiners/omdb.pyc
Removing libs/subliminal/refiners/tvdb.pyc
Removing libs/subliminal/score.pyc
Removing libs/subliminal/subtitle.pyc
Removing libs/subliminal/utils.pyc
Removing libs/subliminal/video.pyc
Removing libs/yaml/__init__.pyc
Removing libs/yaml/composer.pyc
Removing libs/yaml/constructor.pyc
Removing libs/yaml/cyaml.pyc
Removing libs/yaml/dumper.pyc
Removing libs/yaml/emitter.pyc
Removing libs/yaml/error.pyc
Removing libs/yaml/events.pyc
Removing libs/yaml/loader.pyc
Removing libs/yaml/nodes.pyc
Removing libs/yaml/parser.pyc
Removing libs/yaml/reader.pyc
Removing libs/yaml/representer.pyc
Removing libs/yaml/resolver.pyc
Removing libs/yaml/scanner.pyc
Removing libs/yaml/serializer.pyc
Removing libs/yaml/tokens.pyc
Removing nzbToMedia.pyc

Removing cleanup.pyc
Removing core/__init__.pyc
Removing core/autoProcess/__init__.pyc
Removing core/autoProcess/autoProcessComics.pyc
Removing core/autoProcess/autoProcessGames.pyc
Removing core/autoProcess/autoProcessMovie.pyc
Removing core/autoProcess/autoProcessMusic.pyc
Removing core/autoProcess/autoProcessTV.pyc
Removing core/databases/__init__.pyc
Removing core/databases/mainDB.pyc
Removing core/extractor/__init__.pyc
Removing core/extractor/extractor.pyc
Removing core/gh_api.pyc
Removing core/linktastic/__init__.pyc
Removing core/linktastic/linktastic.pyc
Removing core/logger.pyc
Removing core/nzbToMediaAutoFork.pyc
Removing core/nzbToMediaConfig.pyc
Removing core/nzbToMediaDB.pyc
Removing core/nzbToMediaSceneExceptions.pyc
Removing core/nzbToMediaUserScript.pyc
Removing core/nzbToMediaUtil.pyc
Removing core/qbittorrent/__init__.pyc
Removing core/qbittorrent/client.pyc
Removing core/synchronousdeluge/__init__.pyc
Removing core/synchronousdeluge/client.pyc
Removing core/synchronousdeluge/exceptions.pyc
Removing core/synchronousdeluge/protocol.pyc
Removing core/synchronousdeluge/rencode.pyc
Removing core/synchronousdeluge/transfer.pyc
Removing core/transcoder/__init__.pyc
Removing core/transcoder/transcoder.pyc
Removing core/transmissionrpc/__init__.pyc
Removing core/transmissionrpc/client.pyc
Removing core/transmissionrpc/constants.pyc
Removing core/transmissionrpc/error.pyc
Removing core/transmissionrpc/httphandler.pyc
Removing core/transmissionrpc/session.pyc
Removing core/transmissionrpc/six.pyc
Removing core/transmissionrpc/torrent.pyc
Removing core/transmissionrpc/utils.pyc
Removing core/utorrent/__init__.pyc
Removing core/utorrent/client.pyc
Removing core/utorrent/upload.pyc
Removing core/versionCheck.pyc
Removing libs/__init__.pyc
Removing libs/babelfish/__init__.pyc
Removing libs/babelfish/converters/__init__.pyc
Removing libs/babelfish/converters/alpha2.pyc
Removing libs/babelfish/converters/alpha3b.pyc
Removing libs/babelfish/converters/countryname.pyc
Removing libs/babelfish/converters/name.pyc
Removing libs/babelfish/converters/opensubtitles.pyc
Removing libs/babelfish/country.pyc
Removing libs/babelfish/exceptions.pyc
Removing libs/babelfish/language.pyc
Removing libs/babelfish/script.pyc
Removing libs/beets/__init__.pyc
Removing libs/beets/util/__init__.pyc
Removing libs/beets/util/confit.pyc
Removing libs/beets/util/hidden.pyc
Removing libs/bs4/__init__.pyc
Removing libs/bs4/builder/__init__.pyc
Removing libs/bs4/builder/_html5lib.pyc
Removing libs/bs4/builder/_htmlparser.pyc
Removing libs/bs4/builder/_lxml.pyc
Removing libs/bs4/dammit.pyc
Removing libs/bs4/element.pyc
Removing libs/chardet/__init__.pyc
Removing libs/concurrent/__init__.pyc
Removing libs/concurrent/futures/__init__.pyc
Removing libs/concurrent/futures/_base.pyc
Removing libs/concurrent/futures/process.pyc
Removing libs/concurrent/futures/thread.pyc
Removing libs/configobj/__init__.pyc
Removing libs/configobj/_version.pyc
Removing libs/configobj/configobj.pyc
Removing libs/dateutil/__init__.pyc
Removing libs/dateutil/parser.pyc
Removing libs/dateutil/relativedelta.pyc
Removing libs/dateutil/tz.pyc
Removing libs/dateutil/tzwin.pyc
Removing libs/dogpile/__init__.pyc
Removing libs/dogpile/cache/__init__.pyc
Removing libs/dogpile/cache/api.pyc
Removing libs/dogpile/cache/backends/__init__.pyc
Removing libs/dogpile/cache/compat.pyc
Removing libs/dogpile/cache/exception.pyc
Removing libs/dogpile/cache/proxy.pyc
Removing libs/dogpile/cache/region.pyc
Removing libs/dogpile/cache/util.pyc
Removing libs/dogpile/core/__init__.pyc
Removing libs/dogpile/core/dogpile.pyc
Removing libs/dogpile/core/legacy.pyc
Removing libs/dogpile/core/nameregistry.pyc
Removing libs/dogpile/core/readwrite_lock.pyc
Removing libs/dogpile/core/util.pyc
Removing libs/enum/LICENSE
Removing libs/enum/README
Removing libs/enzyme/__init__.pyc
Removing libs/enzyme/compat.pyc
Removing libs/enzyme/exceptions.pyc
Removing libs/enzyme/mkv.pyc
Removing libs/enzyme/parsers/__init__.pyc
Removing libs/enzyme/parsers/ebml/__init__.pyc
Removing libs/enzyme/parsers/ebml/core.pyc
Removing libs/enzyme/parsers/ebml/readers.pyc
Removing libs/guessit/__init__.pyc
Removing libs/guessit/__version__.pyc
Removing libs/guessit/api.pyc
Removing libs/guessit/options.pyc
Removing libs/guessit/reutils.pyc
Removing libs/guessit/rules/__init__.pyc
Removing libs/guessit/rules/common/__init__.pyc
Removing libs/guessit/rules/common/comparators.pyc
Removing libs/guessit/rules/common/date.pyc
Removing libs/guessit/rules/common/formatters.pyc
Removing libs/guessit/rules/common/numeral.pyc
Removing libs/guessit/rules/common/validators.pyc
Removing libs/guessit/rules/common/words.pyc
Removing libs/guessit/rules/markers/__init__.pyc
Removing libs/guessit/rules/markers/groups.pyc
Removing libs/guessit/rules/markers/path.pyc
Removing libs/guessit/rules/processors.pyc
Removing libs/guessit/rules/properties/__init__.pyc
Removing libs/guessit/rules/properties/audio_codec.pyc
Removing libs/guessit/rules/properties/bonus.pyc
Removing libs/guessit/rules/properties/cds.pyc
Removing libs/guessit/rules/properties/container.pyc
Removing libs/guessit/rules/properties/country.pyc
Removing libs/guessit/rules/properties/crc.pyc
Removing libs/guessit/rules/properties/date.pyc
Removing libs/guessit/rules/properties/edition.pyc
Removing libs/guessit/rules/properties/episode_title.pyc
Removing libs/guessit/rules/properties/episodes.pyc
Removing libs/guessit/rules/properties/film.pyc
Removing libs/guessit/rules/properties/format.pyc
Removing libs/guessit/rules/properties/language.pyc
Removing libs/guessit/rules/properties/mimetype.pyc
Removing libs/guessit/rules/properties/other.pyc
Removing libs/guessit/rules/properties/part.pyc
Removing libs/guessit/rules/properties/release_group.pyc
Removing libs/guessit/rules/properties/screen_size.pyc
Removing libs/guessit/rules/properties/title.pyc
Removing libs/guessit/rules/properties/type.pyc
Removing libs/guessit/rules/properties/video_codec.pyc
Removing libs/guessit/rules/properties/website.pyc
Removing libs/pkg_resources.pyc
Removing libs/pysrt/__init__.pyc
Removing libs/pysrt/comparablemixin.pyc
Removing libs/pysrt/compat.pyc
Removing libs/pysrt/srtexc.pyc
Removing libs/pysrt/srtfile.pyc
Removing libs/pysrt/srtitem.pyc
Removing libs/pysrt/srttime.pyc
Removing libs/pysrt/version.pyc
Removing libs/rarfile.pyc
Removing libs/rarfile1/LICENSE
Removing libs/rarfile1/Makefile
Removing libs/rarfile1/PKG-INFO
Removing libs/rarfile1/doc/Makefile
Removing libs/rarfile1/test/Makefile
Removing libs/rebulk/__init__.pyc
Removing libs/rebulk/chain.pyc
Removing libs/rebulk/debug.pyc
Removing libs/rebulk/formatters.pyc
Removing libs/rebulk/introspector.pyc
Removing libs/rebulk/loose.pyc
Removing libs/rebulk/match.pyc
Removing libs/rebulk/pattern.pyc
Removing libs/rebulk/processors.pyc
Removing libs/rebulk/rebulk.pyc
Removing libs/rebulk/remodule.pyc
Removing libs/rebulk/rules.pyc
Removing libs/rebulk/toposort.pyc
Removing libs/rebulk/utils.pyc
Removing libs/rebulk/validators.pyc
Removing libs/requests/__init__.pyc
Removing libs/requests/adapters.pyc
Removing libs/requests/api.pyc
Removing libs/requests/auth.pyc
Removing libs/requests/certs.pyc
Removing libs/requests/compat.pyc
Removing libs/requests/cookies.pyc
Removing libs/requests/exceptions.pyc
Removing libs/requests/hooks.pyc
Removing libs/requests/models.pyc
Removing libs/requests/packages/__init__.pyc
Removing libs/requests/packages/chardet/__init__.pyc
Removing libs/requests/packages/urllib3/__init__.pyc
Removing libs/requests/packages/urllib3/_collections.pyc
Removing libs/requests/packages/urllib3/connection.pyc
Removing libs/requests/packages/urllib3/connectionpool.pyc
Removing libs/requests/packages/urllib3/contrib/__init__.pyc
Removing libs/requests/packages/urllib3/contrib/pyopenssl.pyc
Removing libs/requests/packages/urllib3/exceptions.pyc
Removing libs/requests/packages/urllib3/fields.pyc
Removing libs/requests/packages/urllib3/filepost.pyc
Removing libs/requests/packages/urllib3/packages/__init__.pyc
Removing libs/requests/packages/urllib3/packages/ordered_dict.pyc
Removing libs/requests/packages/urllib3/packages/six.pyc
Removing libs/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc
Removing libs/requests/packages/urllib3/poolmanager.pyc
Removing libs/requests/packages/urllib3/request.pyc
Removing libs/requests/packages/urllib3/response.pyc
Removing libs/requests/packages/urllib3/util/__init__.pyc
Removing libs/requests/packages/urllib3/util/connection.pyc
Removing libs/requests/packages/urllib3/util/request.pyc
Removing libs/requests/packages/urllib3/util/response.pyc
Removing libs/requests/packages/urllib3/util/retry.pyc
Removing libs/requests/packages/urllib3/util/ssl_.pyc
Removing libs/requests/packages/urllib3/util/timeout.pyc
Removing libs/requests/packages/urllib3/util/url.pyc
Removing libs/requests/sessions.pyc
Removing libs/requests/status_codes.pyc
Removing libs/requests/structures.pyc
Removing libs/requests/utils.pyc
Removing libs/six.pyc
Removing libs/stevedore/__init__.pyc
Removing libs/stevedore/driver.pyc
Removing libs/stevedore/enabled.pyc
Removing libs/stevedore/extension.pyc
Removing libs/stevedore/hook.pyc
Removing libs/stevedore/named.pyc
Removing libs/subliminal/__init__.pyc
Removing libs/subliminal/cache.pyc
Removing libs/subliminal/converters/__init__.pyc
Removing libs/subliminal/converters/thesubdb.pyc
Removing libs/subliminal/core.pyc
Removing libs/subliminal/exceptions.pyc
Removing libs/subliminal/extensions.pyc
Removing libs/subliminal/providers/__init__.pyc
Removing libs/subliminal/providers/addic7ed.pyc
Removing libs/subliminal/providers/legendastv.pyc
Removing libs/subliminal/providers/opensubtitles.pyc
Removing libs/subliminal/providers/podnapisi.pyc
Removing libs/subliminal/providers/shooter.pyc
Removing libs/subliminal/providers/subscenter.pyc
Removing libs/subliminal/providers/thesubdb.pyc
Removing libs/subliminal/providers/tvsubtitles.pyc
Removing libs/subliminal/refiners/__init__.pyc
Removing libs/subliminal/refiners/metadata.pyc
Removing libs/subliminal/refiners/omdb.pyc
Removing libs/subliminal/refiners/tvdb.pyc
Removing libs/subliminal/score.pyc
Removing libs/subliminal/subtitle.pyc
Removing libs/subliminal/utils.pyc
Removing libs/subliminal/video.pyc
Removing libs/yaml/__init__.pyc
Removing libs/yaml/composer.pyc
Removing libs/yaml/constructor.pyc
Removing libs/yaml/cyaml.pyc
Removing libs/yaml/dumper.pyc
Removing libs/yaml/emitter.pyc
Removing libs/yaml/error.pyc
Removing libs/yaml/events.pyc
Removing libs/yaml/loader.pyc
Removing libs/yaml/nodes.pyc
Removing libs/yaml/parser.pyc
Removing libs/yaml/reader.pyc
Removing libs/yaml/representer.pyc
Removing libs/yaml/resolver.pyc
Removing libs/yaml/scanner.pyc
Removing libs/yaml/serializer.pyc
Removing libs/yaml/tokens.pyc
Removing nzbToMedia.pyc

-- Cleaning folders: ('core', 'libs') --
Removing core/
Removing libs/

Returning to directory:  C:\Program Files\SABnzbd

-- Cleanup finished --

Traceback (most recent call last):
File "C:\SickRage\Scripts\nzbToMedia\nzbToSickBeard.py", line 260, in <module>
import nzbToMedia
File "C:\SickRage\Scripts\nzbToMedia\nzbToMedia.py", line 632, in <module>
from libs.six import text_type
ImportError: No module named libs.six
-- Cleaning bytecode --
Error Code: 128
-- Cleaning folders: ('core', 'libs') --
Error Code: 128
-- Cleaning bytecode --
Error Code: 128
-- Cleaning folders: ('core', 'libs') --
Error Code: 128`

I tried downloading the tar directly from here and overwriting my current files, but it just jumps straight to "cleanup" where the files deleted above are deleted again.

labrys commented 5 years ago

@Tiwas What branch are you running? I assume master.

Can you try the following:

cd C:\SickRage\Scripts\nzbToMedia
python cleanup.py
dir libs

And post the results of the dir command.

Tiwas commented 5 years ago

Yes, I'm on master.

Here's the output: C:\SickRage\Scripts\nzbToMedia>python cleanup.py

-- Cleaning bytecode -- Removing libs/enum/LICENSE Removing libs/enum/README Removing libs/rarfile1/LICENSE Removing libs/rarfile1/Makefile Removing libs/rarfile1/PKG-INFO Removing libs/rarfile1/doc/Makefile Removing libs/rarfile1/test/Makefile

Removing libs/enum/LICENSE Removing libs/enum/README Removing libs/rarfile1/LICENSE Removing libs/rarfile1/Makefile Removing libs/rarfile1/PKG-INFO Removing libs/rarfile1/doc/Makefile Removing libs/rarfile1/test/Makefile

-- Cleaning folders: ('libs', 'core') -- Removing core/ Removing libs/

-- Cleanup finished --

C:\SickRage\Scripts\nzbToMedia>dir libs Volume in drive C has no label. Volume Serial Number is 4040-9DEC

Directory of C:\SickRage\Scripts\nzbToMedia

File Not Found

Tiwas commented 5 years ago

Extracted the tar into the directory (again) and ran cleanup.py at once. Same result as above.

labrys commented 5 years ago

Ok so there's an issue with the cleanup.. I'll hotfix it shortly.

Tiwas commented 5 years ago

Seems that way, yes.

labrys commented 5 years ago

So I see what the problem is, but I can't reproduce it here. The cleanup script deleted the core and libs directories. Can you try something for me?

cd C:\SickRage\Scripts\nzbToMedia
git pull origin master
python cleanup.py
dir libs

Let me know if the directory still exists after that.

Tiwas commented 5 years ago

Seems I need to force it. I'll unpack the tar once more after this.

C:\SickRage\Scripts\nzbToMedia>git pull origin master From https://github.com/SickChill/SickChill

C:\SickRage\Scripts\nzbToMedia>python cleanup.py

-- Cleaning bytecode --

No bytecode to clean

-- Cleaning folders: ('libs', 'core') -- No folders to clean

-- Cleanup finished --

C:\SickRage\Scripts\nzbToMedia>dir libs Volume in drive C has no label. Volume Serial Number is 4040-9DEC

Directory of C:\SickRage\Scripts\nzbToMedia

File Not Found

Tiwas commented 5 years ago

I downloaded the latest tarball and unpacked it into the nzbToMedia directory. Then ran the cleanup.py, but it still deleted my files. Are there any command I can use to force a pull preferrably without overwriting my config? If not, I can backup the config if you help me out with the correct commands to force a pull.

labrys commented 5 years ago

If its doing it with the latest tarball I'll see if I can reproduce it here locally. I assume you're running master on windows, correct?

Tiwas commented 5 years ago

That's correct. Master on windows 10

labrys commented 5 years ago

Can you try running git branch and git remote from the nzbToMedia directory? Nearest I can guess is you have a source install that has been initialized as a git repository, but it's not tied to upstream.

Tiwas commented 5 years ago

C:\SickRage\Scripts\nzbToMedia>git branch

C:\SickRage\Scripts\nzbToMedia>git remote origin

labrys commented 5 years ago

Can you post the results of git log -n 1? Thanks for all your assistance with this.

Tiwas commented 5 years ago

C:\SickRage\Scripts\nzbToMedia>git log -n 1 commit abc6aab554715e57cf1668627a1f57f5b1ed4588 (HEAD -> master, origin/master, origin/develop, origin/HEAD) Author: SickChill miigotu@gmail.com Date: Mon Dec 24 08:11:52 2018 +0000

Update translations (build 10027) [skip ci]

I'm the one who should be thankful. After all, I'm helping you help me (us) even more with an awesome script :D

labrys commented 5 years ago

So it looks like you have a git install and that it is pointing at a custom fork. Can you run git remote -v and post the results.

Tiwas commented 5 years ago

Hmmm...could it be that it's looking at the .git file from the parent directory?

C:\SickRage\Scripts\nzbToMedia>git remote -v origin https://github.com/SickChill/SickChill.git (fetch) origin https://github.com/SickChill/SickChill.git (push)

labrys commented 5 years ago

That's what it looks like. From the nzbtomedia folder try dir /ah if you see a .git folder then it's a separate repository (not likely looking at the remote from above).

Tiwas commented 5 years ago

File not found. I did install this from the tarball, but never thought that would be an issue (might add that to the install directions?). Is there a good way to resolve this? I've backed up my config, so I can force an install with git (if I get the necessary commands ;) )

labrys commented 5 years ago

I have a path forward for the fix now. I can update the git cleanup to check that the nzbtomedia project root is a git repo before it executes.

Tiwas commented 5 years ago

I have a path forward for the fix now. I can update the git cleanup to check that the nzbtomedia project root is a git repo before it executes.

Can you also make it a git repo if it's not?

labrys commented 5 years ago

I would prefer not to as that could break some installs.
I could add an option that could be run manually to convert it to a git repository, if desired. If you would be interested in it can you create a new issue as a feature request?

labrys commented 5 years ago

If you could test this before I merge it to master: https://github.com/clinton-hall/nzbToMedia/releases/tag/11.8.1-rc.1 Edit: Updated tag

Tiwas commented 5 years ago

Was this the expected reponse?

C:\SickRage\Scripts\nzbToMedia>python cleanup.py Directory is not a git repository

-- Cleanup finished --

labrys commented 5 years ago

Yes. However I think I might modify it to clean the bytecode regardless as that will always be a safe operation. Let me post a change for you to try.

labrys commented 5 years ago

If you could try RC2, it would be appreciated: https://github.com/clinton-hall/nzbToMedia/releases/tag/11.8.1-rc.2

Tiwas commented 5 years ago

First run it removed a whole bunch of files. The second run didn't remove any. From what I can see it's still functional.

labrys commented 5 years ago

Perfect, thanks!

Tiwas commented 5 years ago

Tested it out, and it seems to work fine on my test-download. Thanks a lot :)

Tiwas commented 5 years ago

I would prefer not to as that could break some installs. I could add an option that could be run manually to convert it to a git repository, if desired. If you would be interested in it can you create a new issue as a feature request?

Is it even necessary, or will it just download the tarball if it's not a git repo? Maybe just include details in the setup guide instead? "This is how you install from the tarball, this is how you make it a git repo"? From what I've seen it will update itself just fine (until the bad script wiped it).

labrys commented 5 years ago

I don't really think its necessary. But yes I would like to add manual update information to the wiki.

Tiwas commented 5 years ago

Cool! Then I won't create an issue asking for it. It hasn't been necessary for me yet, and if it's in the wiki people can do it themselves. Even better, by not making a script for it it will be less maintenance for you and more time to focus on "real" problems and issues.

Thanks for awesome support today!

labrys commented 5 years ago

No problem and thanks a lot for all the assistance narrowing down the cause.