Skip to content

PicklingError on environment when config option value is a callable #1424

@shimizukawa

Description

@shimizukawa

https://travis-ci.org/pypa/pip/jobs/20852384

I am trying to add extension to Sphinx that does filtering on HTML based on callable regex rules specified in conf.py. However, my build fails with PicklingError when I specify extension options.

...
looking for now-outdated files... none found
pickling environment...
Exception occurred:
  File "C:\Python33\lib\site-packages\sphinx-1.3a0dev_20140315-py3.3.egg\sphinx\environment.py", line 146, in topickle
    pickle.dump(self, picklefile, pickle.HIGHEST_PROTOCOL)
_pickle.PicklingError: Can't pickle <class 'function'>: attribute lookup builtins.function failed
The full traceback has been saved in c:\users\user\appdata\local\temp\sphinx-err-z8bc2u.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions