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

Unable to install collection offline using zip file #24

Open
mccarther6 opened this issue Dec 6, 2022 · 2 comments
Open

Unable to install collection offline using zip file #24

mccarther6 opened this issue Dec 6, 2022 · 2 comments
Assignees

Comments

@mccarther6
Copy link

SUMMARY

Due to internet restrictions, I need to be able to install the collection from a local file. Usually I download the tarball and install from there, but there doesn't seem to be one here. i have tried unzipping and compressing as a tar but I am missing files. Can you advise how I can install from the zip file please, or point me towards the tarball.

ERROR! Collection at 'cli_rm_builder-main.tar.gz' does not contain the required file MANIFEST.json.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

cli_rm_builder

ANSIBLE VERSION

2.9.10

CONFIGURATION

ansible-galaxy collection install cli_rm_builder-main.tar.gz -p lib/python3.6/site-packages/

/root/venv/cli_rm_builder_test/lib64/python3.6/site-packages/ansible/parsing/vault/init.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.exceptions import InvalidSignature
[WARNING]: The specified collections path '/root/venv/cli_rm_builder_test/lib/python3.6/site-packages' is not part of the configured Ansible collections paths
'/root/.ansible/collections:/usr/share/ansible/collections'. The installed collection won't be picked up in an Ansible run.
Process install dependency map
ERROR! Collection at 'cli_rm_builder-main.tar.gz' does not contain the required file MANIFEST.json.

OS / ENVIRONMENT

2.9.10

STEPS TO REPRODUCE

ansible-galaxy collection install cli_rm_builder-main.tar.gz -p lib/python3.6/site-packages/

or

ansible-galaxy collection install main-1.0.zip

/root/venv/cli_rm_builder_test/lib64/python3.6/site-packages/ansible/parsing/vault/init.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.exceptions import InvalidSignature
Process install dependency map
ERROR! Collection artifact at 'main-1.0.zip' is not a valid tar file.

EXPECTED RESULTS
ACTUAL RESULTS

@NilashishC NilashishC self-assigned this Dec 7, 2022
@mccarther6
Copy link
Author

Hey, has anyone had a chance to look at this yet? I've tried installing using the zip file downloaded from the cli_rm_builder repo (via unzipping and creating a tarball) on my Mac at home as well, and I get the same issue/error.

@NilashishC
Copy link
Member

NilashishC commented Mar 13, 2023

Hi @mccarther6. Sorry for the delay on this. For air-gapped installations, you would have to build the collection from source and then install it. Here's the steps:

git clone https://github.com/ansible-network/cli_rm_builder
ansible-galaxy collection build cli_rm_builder --> would generate `ansible_network-cli_rm_builder-0.0.1.tar.gz`
ansible-galaxy collection install ansible_network-cli_rm_builder-0.0.1.tar.gz

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

2 participants