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

sphinxcontrib.email: AttributeError (module 'string' has no attribute 'maketrans') #9

Open
architux opened this issue Dec 12, 2017 · 0 comments

Comments

@architux
Copy link

An error occured after installing sphinxcontrib.email in virtualenv and including in extensions list in conf.py settings file. Seems to be the incompatibility with Python 3.x.
The whole traceback is the following:

# Sphinx version: 1.6.3
# Python version: 3.5.2 (CPython)
# Docutils version: 0.14 
# Jinja2 version: 2.9.6
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/home/user/project/venv/lib/python3.5/site-packages/sphinx/cmdline.py", line 305, in main
    opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
  File "/home/user/project/venv/lib/python3.5/site-packages/sphinx/application.py", line 196, in __init__
    self.setup_extension(extension)
  File "/home/user/project/venv/lib/python3.5/site-packages/sphinx/application.py", line 456, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/user/project/venv/lib/python3.5/site-packages/sphinx/registry.py", line 196, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/home/user/project/venv/lib/python3.5/site-packages/sphinxcontrib/email.py", line 15, in <module>
    rot_13_trans = string.maketrans(
AttributeError: module 'string' has no attribute 'maketrans'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant