[Solved] NameError: global name ‘profiles’ is not defined
Just define the profiles variable outside of your if, our after the includes: from multiprocessing import Pool as Pool profiles = {} def to_dict(in_str): solved NameError: global name ‘profiles’ is not defined