#'CommentedMap' object has no attribute 'startswith'

1 messages · Page 1 of 1 (latest)

glossy laurel
#

I'm working on getting PMM working on my local Windows-based Plex system. I've had PMM working before, on a different system, so I'm setting it up again. However, I'm getting the following error and can't find any notes about what to do.

'CommentedMap' object has no attribute 'startswith'

The full error is as follows.

Connecting to Movies Library...
Traceback (most recent call last):
File "F:\Plex-Meta-Manager\modules\config.py", line 816, in init
if params[mass_key] and params[mass_key].startswith("mdb") and not self.Mdblist.has_key:
AttributeError: 'CommentedMap' object has no attribute 'startswith'

Traceback (most recent call last):
File "F:\Plex-Meta-Manager\plex_meta_manager.py", line 294, in start
config = ConfigFile(default_dir, attrs, secret_args)
File "F:\Plex-Meta-Manager\modules\config.py", line 816, in init
if params[mass_key] and params[mass_key].startswith("mdb") and not self.Mdblist.has_key:
AttributeError: 'CommentedMap' object has no attribute 'startswith'

'CommentedMap' object has no attribute 'startswith'

thorn stratusBOT
#

Welcome @glossy laurel!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

thorn stratusBOT
#

📝 If you want to review this again, kahn265:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> 📝

#
**User Info**

Author of Linked Message: kahn265
Person who Invoked the Command: bullmoose
File Name: meta.log

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation
Page 05: Rec 01 - 🚀 VERSION UPDATE AVAILABLE
Page 06: Rec 02 - 💥 [CRITICAL]
Page 07: Rec 03 - ❌ ANIDB AUTH ERRORS
Page 08: Rec 04 - ❌🔒 BLANK API KEY ERROR
Page 09: Rec 05 - ❌🛠️ INCOMPLETE LOGS
Page 10: Rec 06 - ❌ MY ANIME LIST CONNECTION ERROR
Page 11: Rec 07 - ⚠️ [WARNING]

hollow sinew
#

I'd start with upgrading

lyric wigeonBOT
#

NOTE: This is addressing UPDATING your current setup, not changing from, for instance, latest to nightly.

The update method depends on how you installed it.

I'm running locally and got the code by downloading the zip file:
Download a new zip file, uncompress it, and move your config dir into that new directory. Reinstall requirements.

This is the "fussiest" method of update.

I'm running locally and retrieved the code via git:

cd DIRECTORY_WHERE_YOU_PUT_PMM
git checkout BRANCH_NAME
git stash
git stash clear
git pull

For BRANCH_NAME, substitute master, develop, or nightly

You may need to reinstall requirements if switching branch or updating to a new major version:
python -m pip install -r requirements.txt

Those stash commands are going to discard any changes you may have made to PMM's own files. If that's a concern, you are probably familiar enough with git to know what you need to do instead.

I'm using docker locally:

docker pull meisnate12/plex-meta-manager:TAG_HERE

replace TAG_HERE with latest, develop, or nightly

Then recreate your container via whatever means you used to create it [docker run, docker-compose, etc.].

I'm using docker on a NAS or some other remote context:

Update the image using whatever means the NAS provides.
Depending on the system, this might be a simple rebuild of the container, or you may need to manually pull the new image first.

hollow sinew
#
    operations:
      mass_background_update:
        source: lock
      mass_poster_update:
        source: lock```
#

What is that from???

glossy laurel
#

Thanks, the update appears to have solved it

#

Thanks @hollow sinew looks like I'm working. Closing thread