-
Notifications
You must be signed in to change notification settings - Fork 9
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
pkg_resources.DistributionNotFound: requests #36
Comments
Adding packer debug log file |
@gavmckee80 Do you have package |
@cheynearista |
@cheynearista |
I think this is an install issue with the requests lib I see the tar file is there , I do a manual install by unzipping into /tmp and then sudo pip install . That successfully installs - but it shifts now to a different missing lib (PyYaml) ztpsadmin@ztps:/$ ztps So I think this is something fundamental going wrong in the build process |
To fix this I had to do the following Maybe we could get these steps integrated to the build, I think this could just be a problem with the fact that I have to specify the --index-url= option as https . As these packages are mentioned in the requirements.txt file and not specifying the option leads to an error |
I've just built the VM on macos, for VMWare fusion
python2.7 ./create-ztpserver.py -H vmware -o ubuntu --vmname ztpserver
The VM builds sucessfully , however when I try to start the ztp server I get the following traceback.
ztpsadmin@ztps:~$ ztps
Traceback (most recent call last):
File "/usr/local/bin/ztps", line 4, in
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in
working_set.require(requires)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests
Any ideas how to help here ?
The text was updated successfully, but these errors were encountered: