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

Do not start the program #396

Open
ghost opened this issue Feb 21, 2017 · 2 comments
Open

Do not start the program #396

ghost opened this issue Feb 21, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 21, 2017

run your program and observe the following error:
root@mx:/home/admin/Downloads/imagefactory-master# ./imagefactory Traceback (most recent call last): File "./imagefactory", line 26, in <module> from imgfac.ApplicationConfiguration import ApplicationConfiguration File "/home/admin/Downloads/imagefactory-master/imgfac/ApplicationConfiguration.py", line 26, in <module> from urlgrabber import urlopen ImportError: No module named urlgrabber root@mx:/home/admin/Downloads/imagefactory-master# ./im imagefactory imagefactoryd imagefactory_plugins/ imgfac/ root@mx:/home/admin/Downloads/imagefactory-master# ./imagefactoryd Traceback (most recent call last): File "./imagefactoryd", line 23, in <module> from imgfac.PersistentImageManager import PersistentImageManager File "/home/admin/Downloads/imagefactory-master/imgfac/PersistentImageManager.py", line 17, in <module> from ApplicationConfiguration import ApplicationConfiguration File "/home/admin/Downloads/imagefactory-master/imgfac/ApplicationConfiguration.py", line 26, in <module> from urlgrabber import urlopen ImportError: No module named urlgrabber

@ghost
Copy link
Author

ghost commented Feb 21, 2017

I make your programm
`root@mx:/home/admin/Downloads/imagefactory-master# make
python setup.py sdist
running sdist
fatal: Not a git repository (or any of the parent directories): .git
running check
warning: sdist: standard file not found: should have one of README, README.txt

reading manifest template 'MANIFEST.in'
writing manifest file 'MANIFEST'
creating imagefactory-1.1.9
creating imagefactory-1.1.9/conf
creating imagefactory-1.1.9/conf/logrotate.d
creating imagefactory-1.1.9/conf/sysconfig
creating imagefactory-1.1.9/imgfac
creating imagefactory-1.1.9/imgfac/picklingtools
creating imagefactory-1.1.9/imgfac/rest
creating imagefactory-1.1.9/scripts
making hard links in imagefactory-1.1.9...
hard linking COPYING -> imagefactory-1.1.9
hard linking cert-ec2.pem -> imagefactory-1.1.9
hard linking imagefactory -> imagefactory-1.1.9
hard linking imagefactory.conf -> imagefactory-1.1.9
hard linking imagefactoryd -> imagefactory-1.1.9
hard linking setup.cfg -> imagefactory-1.1.9
hard linking setup.py -> imagefactory-1.1.9
hard linking conf/imagefactoryd.service -> imagefactory-1.1.9/conf
hard linking conf/logrotate.d/imagefactoryd -> imagefactory-1.1.9/conf/logrotate.d
hard linking conf/sysconfig/imagefactoryd -> imagefactory-1.1.9/conf/sysconfig
hard linking imgfac/ApplicationConfiguration.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/BaseImage.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/BaseImageImporter.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/BuildDispatcher.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/Builder.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/CallbackWorker.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/CloudDelegate.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/FactoryUtils.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/FilePersistentImageManager.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/ImageFactoryException.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/MongoPersistentImageManager.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/Notification.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/NotificationCenter.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/OSDelegate.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/PersistentImage.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/PersistentImageManager.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/PluginManager.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/Provider.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/ProviderImage.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/ReservationManager.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/Singleton.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/TargetImage.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/Template.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/Version.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/init.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/props.py -> imagefactory-1.1.9/imgfac
hard linking imgfac/picklingtools/init.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/arraydisposition.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/circularbuffer.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/parsereader.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/pretty.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/simplearray.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/xmldumper.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/xmlloader.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/picklingtools/xmltools.py -> imagefactory-1.1.9/imgfac/picklingtools
hard linking imgfac/rest/OAuthTools.py -> imagefactory-1.1.9/imgfac/rest
hard linking imgfac/rest/RESTtools.py -> imagefactory-1.1.9/imgfac/rest
hard linking imgfac/rest/RESTv2.py -> imagefactory-1.1.9/imgfac/rest
hard linking imgfac/rest/init.py -> imagefactory-1.1.9/imgfac/rest
hard linking imgfac/rest/bottle.py -> imagefactory-1.1.9/imgfac/rest
hard linking scripts/imagefactoryd -> imagefactory-1.1.9/scripts
Creating tar archive
removing 'imagefactory-1.1.9' (and everything under it)`
But the problem persists !!!

@marcindulak
Copy link

As non root:

sudo su - -c "yum -y install git rpm-build"
git clone https://github.com/redhat-imaging/imagefactory
cd imagefactory
grep BuildRequires imagefactory.spec.in | cut -d':' -f2
sudo su - -c "yum -y install systemd-units python2 python-setuptools"
make rpm
sudo su - -c "yum -y install $HOME/rpmbuild/RPMS/noarch/imagefactory*.rpm"

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

1 participant