mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.52k stars 202 forks source link

Guessit has no attribute 'guessit' didi you mean: 'guess' #1648

Closed bjciavarella closed 1 year ago

bjciavarella commented 1 year ago

I am getting the error as described by other users and I am not sure what is causing it.

Logs/Commands:

C:\Users\bdon1\Documents\Projects\sickbeard>pip list Package Version


attrs 22.2.0 babelfish 0.6.0 beautifulsoup4 4.11.2 cattrs 22.2.0 certifi 2022.12.7 chardet 5.1.0 charset-normalizer 3.1.0 click 8.1.3 colorama 0.4.6 decorator 5.1.1 deluge-client 1.9.0 dogpile.cache 1.1.8 enzyme 0.4.1 guessit 1.0.3 idna 3.4 mutagen 1.46.0 pbr 5.11.1 pip 23.0.1 platformdirs 3.1.0 pysrt 1.1.2 python-dateutil 2.8.2 qtfaststart 1.8 requests 2.28.2 requests-cache 1.0.0 setuptools 65.5.0 six 1.16.0 soupsieve 2.4 stevedore 1.19.1 subliminal 1.1.1 tmdbsimple 2.9.1 url-normalize 1.4.3 urllib3 1.26.14

C:\Users\bdon1\Documents\Projects\sickbeard>python --version Python 3.11.2

C:\Users\bdon1\Documents\Projects\sickbeard>manual.py Manual processor started. Python 64-bit 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]. Guessit version: 1.0.3. C:\Python3\python.exe Loading config file C:\Users\bdon1\Documents\Projects\sickbeard\config\autoProcess.ini. Enter path to file:

: H:\Media\Movies\Madagascar.mkv

Traceback (most recent call last): File "C:\Users\bdon1\Documents\Projects\sickbeard\manual.py", line 510, in main() File "C:\Users\bdon1\Documents\Projects\sickbeard\manual.py", line 499, in main processFile(path, mp, info=info, silent=silent, tag=settings.tagfile, tagOnly=args.get('tagonly', False), optionsOnly=args.get('optionsonly', False), tmdbid=args.get('tmdbid'), tvdbid=args.get('tvdbid'), imdbid=args.get('imdbid'), season=args.get('season'), episode=args.get('episode'), original=args.get('original'), processedList=processedList, processedArchive=processedArchive) File "C:\Users\bdon1\Documents\Projects\sickbeard\manual.py", line 268, in processFile tagdata = getInfo(inputfile, mp.settings, silent=silent, tag=tag or tagOnly, tmdbid=tmdbid, tvdbid=tvdbid, imdbid=imdbid, season=season, episode=episode, language=language, original=original) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bdon1\Documents\Projects\sickbeard\manual.py", line 130, in getInfo tagdata = guessInfo(fileName, settings, tvdbid=tvdbid, tmdbid=tmdbid, imdbid=imdbid, season=season, episode=episode, language=language, original=original) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bdon1\Documents\Projects\sickbeard\manual.py", line 175, in guessInfo guess = guessit.guessit(original or fileName) ^^^^^^^^^^^^^^^ AttributeError: module 'guessit' has no attribute 'guessit'. Did you mean: 'guess'?

autoProcess.ini settings Please sensor API keys/private information but include all other settings

FFMpeg headers Run ffmpeg and post the headers, example [headers]https://github.com/mdhiggins/sickbeard_mp4_automator/wiki/FFMPEG-Headers

System Information

autoprocess.ini

[Converter] ffmpeg = C:\ffmpeg\bin\ffmpeg.exe ffprobe = C:\ffmpeg\bin\ffprobe.exe threads = 0 hwaccels = hwaccel-decoders = hwdevices = hwaccel-output-format = output-directory = output-directory-space-ratio = 0.0 output-format = mp4 output-extension = mp4 temp-extension = minimum-size = 0 ignored-extensions = nfo, dsstore copy-to = move-to = delete-original = True process-same-extensions = False bypass-if-copying-all = False force-convert = False post-process = False wait-post-process = False detailed-progress = False opts-separator = , preopts = postopts = regex-directory-replace = [^\w-. ]

[Permissions] chmod = 0644 uid = -1 gid = -1

[Metadata] relocate-moov = True full-path-guess = True tag = True tag-language = eng download-artwork = poster sanitize-disposition = strip-metadata = False keep-titles = False

[Video] codec = h264, x264 max-bitrate = 0 bitrate-ratio = crf = -1 crf-profiles = preset = codec-parameters = dynamic-parameters = False max-width = 0 profile = max-level = 0.0 pix-fmt = prioritize-source-pix-fmt = True filter = force-filter = False

[HDR] codec = pix-fmt = space = bt2020nc transfer = smpte2084 primaries = bt2020 preset = codec-parameters = filter = force-filter = False profile =

[Audio] codec = ac3 languages = default-language = include-original-language = True first-stream-of-language = False channel-bitrate = 128 variable-bitrate = 0 max-bitrate = 0 max-channels = 0 filter = profile = force-filter = False sample-rates = sample-format = copy-original = False aac-adtstoasc = False ignored-dispositions = force-default = False unique-dispositions = False stream-codec-combinations =

[Audio.Sorting] sorting = language, channels.d, map, d.comment default-sorting = channels.d, map, d.comment codecs =

[Universal Audio] codec = aac channel-bitrate = 128 variable-bitrate = 0 first-stream-only = False filter = profile = force-filter = False

[Audio.ChannelFilters] 6-2 = pan=stereo|FL=0.5FC+0.707FL+0.707BL+0.5LFE|FR=0.5FC+0.707FR+0.707BR+0.5LFE

[Subtitle] codec = mov_text codec-image-based = languages = default-language = include-original-language = False first-stream-of-language = False encoding = burn-subtitles = False burn-dispositions = embed-subs = True embed-image-subs = False embed-only-internal-subs = False filename-dispositions = forced ignore-embedded-subs = False ignored-dispositions = force-default = False unique-dispositions = False attachment-codec = remove-bitstream-subs = False

[Subtitle.Sorting] sorting = language, d.comment, d.default.d, d.forced.d burn-sorting = language, d.comment, d.default.d, d.forced.d codecs =

[Subtitle.CleanIt] enabled = False config-path = tags =

[Subtitle.FFSubsync] enabled = False

[Subtitle.Subliminal] download-subs = False download-forced-subs = False include-hearing-impaired-subs = False providers =

[Subtitle.Subliminal.Auth] opensubtitles = tvsubtitles =

[Sonarr] host = localhost port = 8989 apikey = ssl = False webroot = force-rename = False rescan = True block-reprocess = False

[Radarr] host = localhost port = 7878 apikey = ssl = False webroot = force-rename = False rescan = True block-reprocess = False

[Sickbeard] host = localhost port = 8081 ssl = False apikey = webroot = username = password =

[Sickrage] host = localhost port = 8081 ssl = False apikey = webroot = username = password =

[SABNZBD] convert = True sickbeard-category = sickbeard sickrage-category = sickrage sonarr-category = sonarr radarr-category = radarr bypass-category = bypass output-directory = path-mapping =

[Deluge] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = sonarr radarr-label = radarr bypass-label = bypass convert = True host = localhost port = 58846 username = password = output-directory = remove = False path-mapping =

[qBittorrent] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = sonarr radarr-label = radarr bypass-label = bypass convert = True action-before = action-after = host = localhost port = 8080 ssl = False username = password = output-directory = path-mapping =

[uTorrent] sickbeard-label = sickbeard sickrage-label = sickrage sonarr-label = sonarr radarr-label = radarr bypass-label = bypass convert = True webui = False action-before = action-after = host = localhost ssl = False port = 8080 username = password = output-directory = path-mapping =

[Plex] host = localhost port = 32400 refresh = False token =

mdhiggins commented 1 year ago

Your guessit version is ancient. That version is from 2015 they are on 3+ something now. Please update guessit

bjciavarella commented 1 year ago

that was it. Google was pointing me to some old tutorials and that was telling me to use an old version. Also old issues were coming up telling me to use an old version so hopefully this will help others too.