Unable to install fedora package database #13
Comments
Are you porting fedpkg or crating your own packages infrastructure like Fedora has? If the former, you do not need to run your own packagedb. If the latter you may. The reason the pkgdb-sync-yum script isn't working for you is that you have to tell it where the pkgdb python module and the fedora-packagedb egg-info for the pkgdb python module is installed. When the setup.py is run with certain arguments, setup.py substitutes those paths for you. If you simple rename pkgdb-syn-yum.in, then you'd have to substitute those variables yourself. Also -- You may want to look into running pkgdb2 instead of packagedb. We're planning on deploying pkgdb2 in fedora infrastructure in January. |
This is the portion of the README that you skipped over :-): https://github.com/fedora-infra/packagedb/blob/develop/README#L67 |
Thanks for the quick reply, I was actually going to email you. Anyhow, to continue, I am porting fedpkg to pidora, and I was told it would be a good idea to install fedora package database first and then modify it for pidora packages so fedpkg can pull information from it. I am still sort of confused, as this is my first time ever porting anything. So this is my goal, I want to make sure fedpkg runs on pidora for pidora packages, how should I go about it? I appreciate your help very much. I almost lost hope. |
I was told that there are three pieces to it, one is a git server, Fedora Package Databse and HTTP server. The git part was configured by someone before me. I am a student at Seneca College working with CDOT. |
I tried to build it from scratch again, when I get to the paver command, it gives me this: Traceback (most recent call last): File "/usr/bin/paver", line 9, in
File "/usr/lib/python2.7/site-packages/paver/tasks.py", line 816, in main
File "/usr/lib/python2.7/site-packages/paver/tasks.py", line 785, in _launch_pavement
File "pavement.py", line 16, in
File "/usr/lib/python2.7/site-packages/turbogears/init.py", line 9, in
File "/usr/lib/python2.7/site-packages/turbogears/config.py", line 4, in
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 690, in require
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 592, in resolve
pkg_resources.VersionConflict: (CherryPy 3.2.2 (/usr/lib/python2.7/site-packages), Requirement.parse('CherryPy<3.0') I am a complete noob when it comes to python scripts so I am not sure what to make of this. |
Ah -- I think that this might be a problem with paver (I've been trying to migrate other projecs away from paver for similar reasons). Try this: $ cp /usr/bin/paver paver.local
$ sed 's/__requires__ = .*/__requires__ = ["Paver", "CherryPy < 3.0"]/' < paver.local > paver
$ ./paver build --install-conf=`pwd` --install-data=`pwd` --install-sbin=`pwd`
|
That worked! However, now i have an issue with the pkg-sync-yum command. It seems to be the same issue with "required" field in pkg_resources. [root@localhost server-scripts]# chmod 755 pkgdb-sync-yum Any ideas? Thanks for all your help. I will move on with rest of the configurations. |
I carried on with the instructions, ignoring the pgkdb update, then I get a 500, saying pkgdb.wsgi was unable to find tg.utils [Tue Nov 19 03:56:48.296164 2013] [:error] [pid 3211] [remote ::1:2488] mod_wsgi (pid=3211): Target WSGI script '/home/hitman/Public/packagedb/pkgdb.wsgi' cannot be loaded as Python module. |
Are you installing on fedora? I'm guessing yum install python-fedora-turbogears would fix that error. Are you on IRC.freenode.net? We may want to talk about whether you really want to deploy packagedb or if you want to start with pkgdb2.... This code base won't be supported for much longer.... |
Yes I am, my nick is msmahmood. When are you available? From: Toshio Kuratomi notifications@github.com Are you installing on fedora? I'm guessing yum install python-fedora-turbogears would fix that error. Are you on IRC.freenode.net? We may want to talk about whether you really want to deploy packagedb or if you want to start with pkgdb2.... This code base won't be supported for much longer.... Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28829822. |
After installing pythone-fedora-turbogears: |
Looks like the wsgi files does not find the pkgdb module present in the packagedb repository. Btw, I saw you passed by on #fedora-apps but it was too early for me and probably too late for @abadger |
That's ok, let me know a good time so I will come onlline at that time. Btw I was not able to run the yum-sync-pkgdb script, is this related to that? |
I am in Europ, @abadger is in the US so if you come by during day time of one of these two area one of us should be there. |
Ok, let's close this ticket has the reporter has managed to get pkgdb2 running. |
I am currently working on a project to port fedpkg to pidora. We have set up a gitserver already, the second was to set the fedora package database modify it to contain pidora packages. However, I am having issues install fedora package database.
It comes with a README file, I was trying to follow it along but having issues where it says set up the cron jobs.
For example it says set this up as a cron job "server-scripts/pkgdb-sync-yum update"
first, the script's name is "pkgdb-sync-yum.in", so i renamed it to "pkgdb-syn-yum" then i tried to run it with "update" option and this is what I get:
Traceback (most recent call last):
File "./pkgdb-sync-yum", line 51, in
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: fedora-packagedb
I ignored this, as this has to do with database update and moved on to set up the webserver, I do as I am asked in the README file, but I get a 403 forbidden when I try to access the page with "/pkgdb" Alias.
Can I get some help please?
Version-Release number of selected component (if applicable):
0.6.0
The text was updated successfully, but these errors were encountered: