Opened 9 years ago

Closed 9 years ago

#50063 closed defect (fixed)

No module named “docutils” when attempting to run aws of py34-awscli

Reported by: gallafent Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: petrrr, tthoma24 (Teddy Thomas), kurthindenburg (Kurt Hindenburg)
Port: py-awscli

Description

I installed the py34-awscli and awscli_select ports.

I then attempted to call aws:

forth williamg$ sudo port select awscli py34-awscli
Selecting 'py34-awscli' for 'awscli' succeeded. 'py34-awscli' is now active.
forth williamg$ which aws
/opt/local/bin/aws
forth williamg$ aws --version
Traceback (most recent call last):
  File "/opt/local/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/awscli/clidriver.py", line 30, in <module>
    from awscli.help import ProviderHelpCommand
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/awscli/help.py", line 19, in <module>
    from docutils.core import publish_string
ImportError: No module named 'docutils'

Seems there must be a missing dependency.

Change History (6)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Cc: pixilla@… removed
Owner: changed from macports-tickets@… to pixilla@…
Port: py-awscli added; py34-awscli removed

comment:2 Changed 9 years ago by gallafent

Incidentally, a similar problem (though with a different failed import) occurs with python 2.7:

forth williamg$ aws --version
Traceback (most recent call last):
  File "/opt/local/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/awscli/clidriver.py", line 32, in <module>
    from awscli.help import ProviderHelpCommand
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/awscli/help.py", line 22, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: No module named docs.bcdoc

Adding a dependency to py${python.version}-docutils and to py${python.version}-boto3 in the portfile alters the failure when using python 3.4 to read:

forth williamg$ aws --version
Traceback (most recent call last):
  File "/opt/local/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/awscli/clidriver.py", line 32, in <module>
    from awscli.help import ProviderHelpCommand
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/awscli/help.py", line 22, in <module>
    from botocore.docs.bcdoc import docevents
ImportError: No module named 'botocore.docs'

Hope some of that stab-in-dark research provides pointers.

comment:3 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:4 Changed 9 years ago by tthoma24 (Teddy Thomas)

Cc: tthoma24@… added

Cc Me!

comment:5 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:6 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

done r144866 144867

Note: See TracTickets for help on using tickets.