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

pycrypto not listed in the Python package requirements list #18453

Closed
eproxus opened this issue Nov 10, 2016 · 7 comments · Fixed by #21430
Closed

pycrypto not listed in the Python package requirements list #18453

eproxus opened this issue Nov 10, 2016 · 7 comments · Fixed by #21430
Labels
affects_2.2 This issue/PR affects Ansible v2.2 docs This issue/PR relates to or includes documentation.

Comments

@eproxus
Copy link

eproxus commented Nov 10, 2016

ISSUE TYPE
  • Documentation Report
COMPONENT NAME

Running From Source

ANSIBLE VERSION
ansible 2.2.0.0
  config file =
  configured module search path = Default w/o overrides
CONFIGURATION
OS / ENVIRONMENT

N/A

SUMMARY

pycrypto not listed in the Python package requirements list

STEPS TO REPRODUCE
  1. Read https://docs.ansible.com/ansible/intro_installation.html#running-from-source
  2. Install the Python dependencies:
    $ sudo pip install paramiko PyYAML Jinja2 httplib2 six
    
  3. Run the last confirmation step:
    $ ansible all -m ping --ask-pass
    
EXPECTED RESULTS
127.0.0.1 | SUCCESS => {
    "changed": false,
    "ping": "pong"
}
ACTUAL RESULTS
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: DistributionNotFound: The 'pycrypto>=2.6' distribution was not found and is required by ansible
127.0.0.1 | FAILED! => {
    "failed": true,
    "msg": "Unexpected failure during module execution.",
    "stdout": ""
}
@ansibot ansibot added docs_report affects_2.2 This issue/PR affects Ansible v2.2 labels Nov 10, 2016
@jctanner
Copy link
Contributor

I agree that we should make the install doc match the contents of setup.py ...

install_requires=['paramiko', 'jinja2', "PyYAML", 'setuptools', 'pycrypto >= 2.6'],

@sivel
Copy link
Member

sivel commented Nov 11, 2016

Maybe we could move the requirements to install into a requirements.txt file that is referenced by setup.py as well as the instructions specifying to utilize the requirements.txt instead of listing the packages separately in 2 locations?

Just a thought, as I've seen this done elsewhere.

@ansibot ansibot added module This issue/PR relates to a module. plugin and removed module This issue/PR relates to a module. plugin labels Dec 13, 2016
@BondAnthony
Copy link
Contributor

BondAnthony commented Jan 25, 2017

@jctanner and @sivel I was looking at resolving this documentation concern. Were you thinking about including a requirements.txt in the root of the project then reading this file in during setup? Would you just update the docsite to point users to the requirement.txt or can the information in requirement.txt be dynamically loaded into the docsite? This would create a dependency for setup to always have the requirement.txt file. I did find some information within the development community advising against the approach of making install_requires dependent upon an external file. Sounds like a number of IDE's could have issues resolving the dependencies.

@jctanner
Copy link
Contributor

@BondAnthony i'm not sure. It might be something to discuss at the next core team meeting.

@tedder
Copy link
Contributor

tedder commented Feb 13, 2017

Please note pycrypto is waaay out of date, nearing 3 years since last release at this point. pycryptodome would be a better requirement; it's a drop-in, and its latest release was 6 days ago- it is actively developed.

abadger added a commit to abadger/ansible that referenced this issue Feb 14, 2017
This makes it easy to keep the documentation and actual package
dependencies in sync.

Fixes ansible#18453
abadger added a commit that referenced this issue Feb 15, 2017
)

Move to using a requirements.txt to install the python packages.

This makes it easy to keep the documentation and actual package
dependencies in sync.

Fixes #18453
@pcahyna
Copy link
Contributor

pcahyna commented May 23, 2017

@tedder see #20566.

@tedder
Copy link
Contributor

tedder commented May 23, 2017

Thanks- works for me.

@ansibot ansibot added docs This issue/PR relates to or includes documentation. and removed docs_report labels Mar 1, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.2 This issue/PR affects Ansible v2.2 docs This issue/PR relates to or includes documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants