Skip to content
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

AttributeError: 'NoneType' object has no attribute 'info' #117

Open
spaceflunky opened this issue Feb 24, 2021 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'info' #117

spaceflunky opened this issue Feb 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@spaceflunky
Copy link

Description

pythonbits -vv -c music -dtb /storage/music/FLAC/Emerson,\ Lake\ \&\ Palmer/Emerson\ Lake\ \&\ Palmer\ -\ Emerson\ Lake\ \&\ Palmer\ \[1987\ Atlantic\ Records\]

returns the error shown in the log below

Additional context

  • pythonbits version: 3.1b2
  • mediainfo output for sample file in directory:
General
Complete name                            : /storage/music/FLAC/Emerson, Lake & Palmer/Emerson Lake & Palmer - Emerson Lake & Palmer [1987 Atlantic Records]/01 - The Barbarian.flac
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
File size                                : 28.1 MiB
Duration                                 : 4 min 33 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 864 kb/s
Album                                    : Emerson Lake & Palmer
Track name                               : The Barbarian
Track name/Position                      : 01
Performer                                : Emerson Lake & Palmer
Genre                                    : Rock
Description                              : 1987 Atlantic Records / WEA Music of Canada / CD Mastering by Barry Diament / CD 19120
Recorded date                            : 1970

Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 4 min 33 s
Bit rate mode                            : Variable
Bit rate                                 : 864 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 28.1 MiB (100%)
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)

Full log

[2021-02-24 02:25:24.624039] DEBUG: pythonBits: BbSubmission adding mapper scene for scene (checkbox)
[2021-02-24 02:25:24.624443] DEBUG: pythonBits: BbSubmission adding mapper torrentfile for file_input (file)
[2021-02-24 02:25:24.624640] DEBUG: pythonBits: BbSubmission adding mapper form_type for type (text)
[2021-02-24 02:25:24.624796] DEBUG: pythonBits: BbSubmission adding mapper form_submit for submit (text)
[2021-02-24 02:25:24.625565] DEBUG: pythonBits: VideoSubmission adding mapper tags for tags (text)
[2021-02-24 02:25:24.625812] DEBUG: pythonBits: VideoSubmission adding mapper cover for image (text)
[2021-02-24 02:25:24.626157] DEBUG: pythonBits: TvSubmission adding mapper form_title for title (text)
[2021-02-24 02:25:24.626303] DEBUG: pythonBits: TvSubmission adding mapper form_description for desc (text)
[2021-02-24 02:25:24.626484] DEBUG: pythonBits: TvSubmission adding mapper form_description for desc (text)
[2021-02-24 02:25:24.626775] DEBUG: pythonBits: EpisodeSubmission adding mapper form_title for title (text)
[2021-02-24 02:25:24.626920] DEBUG: pythonBits: EpisodeSubmission adding mapper form_description for desc (text)
[2021-02-24 02:25:24.627081] DEBUG: pythonBits: EpisodeSubmission adding mapper form_title for title (text)
[2021-02-24 02:25:24.627387] DEBUG: pythonBits: SeasonSubmission adding mapper form_title for title (text)
[2021-02-24 02:25:24.627537] DEBUG: pythonBits: SeasonSubmission adding mapper form_description for desc (text)
[2021-02-24 02:25:24.627690] DEBUG: pythonBits: SeasonSubmission adding mapper form_title for title (text)
[2021-02-24 02:25:24.628000] DEBUG: pythonBits: MovieSubmission adding mapper source for source (text)
[2021-02-24 02:25:24.628136] DEBUG: pythonBits: MovieSubmission adding mapper video_codec for videoformat (text)
[2021-02-24 02:25:24.628313] DEBUG: pythonBits: MovieSubmission adding mapper audio_codec for audioformat (text)
[2021-02-24 02:25:24.628443] DEBUG: pythonBits: MovieSubmission adding mapper container for container (text)
[2021-02-24 02:25:24.628587] DEBUG: pythonBits: MovieSubmission adding mapper resolution for resolution (text)
[2021-02-24 02:25:24.628725] DEBUG: pythonBits: MovieSubmission adding mapper form_release_info for remaster_title (text)
[2021-02-24 02:25:24.628860] DEBUG: pythonBits: MovieSubmission adding mapper mediainfo for release_desc (text)
[2021-02-24 02:25:24.628994] DEBUG: pythonBits: MovieSubmission adding mapper screenshots for <function MovieSubmission.<lambda> at 0xffffa029b040> (text)
[2021-02-24 02:25:24.629179] DEBUG: pythonBits: MovieSubmission adding mapper form_title for title (text)
[2021-02-24 02:25:24.629355] DEBUG: pythonBits: MovieSubmission adding mapper year for year (text)
[2021-02-24 02:25:24.629537] DEBUG: pythonBits: MovieSubmission adding mapper form_description for desc (text)
[2021-02-24 02:25:24.629895] DEBUG: pythonBits: AudioSubmission adding mapper format for format (text)
[2021-02-24 02:25:24.630049] DEBUG: pythonBits: AudioSubmission adding mapper bitrate for bitrate (text)
[2021-02-24 02:25:24.630202] DEBUG: pythonBits: AudioSubmission adding mapper cover for image (text)
[2021-02-24 02:25:24.630359] DEBUG: pythonBits: AudioSubmission adding mapper year for year (text)
[2021-02-24 02:25:24.630515] DEBUG: pythonBits: AudioSubmission adding mapper description for album_desc (text)
[2021-02-24 02:25:24.630656] DEBUG: pythonBits: AudioSubmission adding mapper release_desc for release_desc (text)
[2021-02-24 02:25:24.630794] DEBUG: pythonBits: AudioSubmission adding mapper scene for scene (checkbox)
[2021-02-24 02:25:24.631119] DEBUG: pythonBits: AudiobookSubmission adding mapper form_tags for tags (text)
[2021-02-24 02:25:24.631264] DEBUG: pythonBits: AudiobookSubmission adding mapper title for title (text)
[2021-02-24 02:25:24.631617] DEBUG: pythonBits: MusicSubmission adding mapper remaster for remaster_true (checkbox)
[2021-02-24 02:25:24.631766] DEBUG: pythonBits: MusicSubmission adding mapper remaster_year for remaster_year (text)
[2021-02-24 02:25:24.632419] DEBUG: pythonBits: MusicSubmission adding mapper remaster_title for remaster_title (text)
[2021-02-24 02:25:24.632585] DEBUG: pythonBits: MusicSubmission adding mapper media for media (text)
[2021-02-24 02:25:24.632731] DEBUG: pythonBits: MusicSubmission adding mapper form_tags for tags (text)
[2021-02-24 02:25:24.632892] DEBUG: pythonBits: MusicSubmission adding mapper artist for artist (text)
[2021-02-24 02:25:24.633035] DEBUG: pythonBits: MusicSubmission adding mapper title for title (text)
[2021-02-24 02:25:24.637710] DEBUG: pythonBits: Arguments: Namespace(category='music', data_method='auto', fields=['description', 'torrentfile', 'submit'], fields_ex=[], num_cast=10, num_directors=2, num_screenshots=2, path='/storage/music/FLAC/Emerson, Lake & Palmer/Emerson Lake & Palmer - Emerson Lake & Palmer [1987 Atlantic Records]', set_field=[], title=None, v=2)
[2021-02-24 02:25:24.638394] DEBUG: pythonBits: Creating cached renderer {'options': {'num_screenshots': 2, 'num_cast': 10, 'num_directors': 2, 'data_method': 'auto'}, 'path': '/storage/music/FLAC/Emerson, Lake & Palmer/Emerson Lake & Palmer - Emerson Lake & Palmer [1987 Atlantic Records]', 'title_arg': None}
[2021-02-24 02:25:24.801533] DEBUG: pythonBits: Rendering field MusicSubmission['description']
[2021-02-24 02:25:24.803403] DEBUG: pythonBits: Adding MusicSubmission dependency description -> section_information
[2021-02-24 02:25:24.803783] DEBUG: pythonBits: Rendering field MusicSubmission['section_information']
[2021-02-24 02:25:24.805811] DEBUG: pythonBits: Adding MusicSubmission dependency section_information -> release
[2021-02-24 02:25:24.806238] DEBUG: pythonBits: Rendering field MusicSubmission['release']
[2021-02-24 02:25:24.808539] DEBUG: pythonBits: Adding MusicSubmission dependency release -> tags
[2021-02-24 02:25:24.808912] DEBUG: pythonBits: Rendering field MusicSubmission['tags']
[2021-02-24 02:25:24.811424] DEBUG: pythonBits: Adding MusicSubmission dependency tags -> mediainfo_path
[2021-02-24 02:25:24.811830] DEBUG: pythonBits: Rendering field MusicSubmission['mediainfo_path']
[2021-02-24 02:25:24.814770] DEBUG: pythonBits: Adding MusicSubmission dependency mediainfo_path -> path
[2021-02-24 02:25:24.817704] DEBUG: pythonBits: Adding MusicSubmission dependency mediainfo_path -> path
[2021-02-24 02:25:24.887656] ERROR: pythonBits: An exception occured.
Full log stored at file:///home/ubuntu/.cache/pythonbits/log/pythonbits.log
Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 110, in __getitem__
    return self.fields[field]
KeyError: 'description'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 110, in __getitem__
    return self.fields[field]
KeyError: 'section_information'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 110, in __getitem__
    return self.fields[field]
KeyError: 'release'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 110, in __getitem__
    return self.fields[field]
KeyError: 'tags'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/__main__.py", line 137, in main
    _main(Category, set_fields, get_fields)
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/__main__.py", line 113, in _main
    sub.show_fields(get_fields)
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/bb.py", line 62, in show_fields
    return super(BbSubmission, self).show_fields(
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 241, in show_fields
    val = self[field]
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 120, in __getitem__
    rv = field_renderer()
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/bb.py", line 1163, in _render_description
    sections = [("Information", self['section_information'])]
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 120, in __getitem__
    rv = field_renderer()
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/bb.py", line 1134, in _render_section_information
    release, rg = self['release']
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 120, in __getitem__
    rv = field_renderer()
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/bb.py", line 1052, in _render_release
    tags = self['tags']
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/submission.py", line 120, in __getitem__
    rv = field_renderer()
  File "/home/ubuntu/.virtualenvs/pythonbits-beta/lib/python3.8/site-packages/pythonbits/bb.py", line 1034, in _render_tags
    log.debug('tagsdir', dir(tags.info))
AttributeError: 'NoneType' object has no attribute 'info'
@spaceflunky spaceflunky added the bug Something isn't working label Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant