Issue
I deployed a wheel file to an artifactory repository using the following code:
def upload_wheel(artifactory_path: ArtifactoryPath, wheel_path: Path):
metadata = extract_wheel_metadata(wheel_path) # get metadata from wheel
pkg_name = metadata['Name']
#create parent folder
folder_to_create = artifactory_path / pkg_name / metadata['Version']
folder_to_create.mkdir(parents=True)
#deploy file
folder_to_create.deploy_file(wheel_path)
deployed_file = folder_to_create / wheel_path.name
add_props(deployed_file, metadata)
When I pip install the wheel file (after making changes to the pip.conf file), it shows searching through the repository and gives me the following error:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/Users/user/filename.whl'
Any idea why this is happening? When i place the file in the directory it installs it without any issues. Is it because of the way I am deploying it?
Solution
This was solved by passing the URL to the pip install followed by the whl file.
pip install URL\filename.whl
Answered By - qwerty
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.