0

Context: I'm writing a Plex agent to add metadata to some private content. Plex agents run on Python version 2.7.17 (default, Oct 25 2022, 10:42:21) (according to sys.version).

I'm running into this issue where builtin functions are not available. One example:
NameError: global name 'hasattr' is not defined

The same is true for dir and globals, among many others.

Is there a way to resolve this? As far as I'm aware, there's no module to import for builtins. As this all runs within Plex, I have no influence over the environment outside of my plug-in directory which is loaded dynamically by Plex.

Ieuan
  • 1,140
  • 1
  • 12
  • 27

0 Answers0