wifigod

# Jan 23 2012 - 7:01 PM

Hey Guys,

We just recently decided to use an old laptop we had lying around (as opposed to our giant Dell tower we used for testing) and we are having some issues with our scratch 11.10 install. As stated in another post, I've tried both PIP and the latest GIT clone and building from source; both have failed. Luckily, I've been told by goliathdrakken that these are known issues and that it shouldn't be much trouble to get us up and going.

I'll assume we'll go from GIT and build from source, so I have taken the liberty to do a fresh clone (1-23-2012) and have SQLite and virtualenv both installed (I have not created the ~/kb virtualenv or any steps afterward).

Do I proceed with building from source and give you my error/debug pastes, or is there a fix from here I can perform beforehand?

As always,
Thanks!




goliathdrakken

# Jan 23 2012 - 9:01 PM

I don't use virtualenv for any of my kegbot instances. If you are on a system that is not shared and have root you really don't need it in my opinion. After cloning the kegbot repo, run the installer in the pykeg directory.
sudo python setup.py develop

From my experience you normally have to run it twice on a fresh install, as it needs to download the distribute package which is required by the install script.

If you encounter any errors be sure to post the logs.




wifigod

# Jan 24 2012 - 11:01 PM

Alrighty, encountered errors on the first run, went ahead and ran it again and received even more errors. Here's my version info if that helps as well:
kegbot@kegbot:~/kegbot/pykeg$ cat /proc/version
Linux version 3.0.0-15-generic (buildd@zirconium) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #26-Ubuntu SMP Fri Jan 20 15:59:53 UTC 2012


Here is a paste for the first run:
KegbotErroNum1

And the paste for round two:
KegbotErrorNum2

Let me know if any other info would be useful. While I wait, I'm going to go ahead and remove all the files and start from scratch one final time. I'm pretty sure this was scratch, but there my have been the old kegbot PIP folder (outside of the pykeg or kegbot directories), if that makes any difference.

I also remember seeing another suggestion on the board that I download some developer tools (I think), so I will dig that post up and verify they are installed as well.

Thanks!




wifigod

# Jan 25 2012 - 12:01 AM

So, further playing around and I figured I'd just try a regular install (sudo python setup.py install), and it worked from what I can tell. I don't mind waiting it out and getting the Developer install from scratch working, if that's the preferred way to install. In the mean time, I may play around with the interface. :-)




wifigod

# Jan 25 2012 - 12:01 AM

Annnd another update: I got the server up and running, but the main page errors out with a template error. Looks like it's trying to call a 'facebook_tags' library in the template, but cannot find it. I did notice a comment from Mike talking about some fb requirement for socialregistration, but I couldn't figure out what I needed beside facebook-python, which is now out of date.

Here's the error paste:
http://hastebin.com/yivihevoki.vhdl

For now (as I plan I reinstalling from scratch again this weekend), I've just removed the offending line trying to call those tags. :-)




wifigod

# Jan 25 2012 - 1:01 AM

Sorry for all the posts! :-)

I found the offending dependency: pyfacebook

Did the following:
kegbot@kegbot:~/kegbot$ sudo git clone https://github.com/sciyoshi/pyfacebook.git
Cloning into pyfacebook...
remote: Counting objects: 1563, done.
remote: Compressing objects: 100% (910/910), done.
remote: Total 1563 (delta 763), reused 1411 (delta 616)
Receiving objects: 100% (1563/1563), 271.82 KiB | 385 KiB/s, done.
Resolving deltas: 100% (763/763), done.
kegbot@kegbot:~/kegbot$ cd pyfacebook/
kegbot@kegbot:~/kegbot/pyfacebook$ sudo python setup.py install

.....and a few scrolling lines later, it was installed. Refreshed some of the pages that were throwing exceptions before, and they all magically worked.

Edited by wifigod (Jan. 25, 2012 01:16:14)






goliathdrakken

# Jan 25 2012 - 7:01 AM

glad you got it working. seems odd that the regular install worked and develop didn't. i had some problems with the facebook stuff a while back as well. if i recall i fixed it by using version 0.4.5 of social-registration, the newer versions changed the facebook dependencies, while the minimum version in the setup file is too outdated for my liking.

change the line in setup.py to
'django-socialregistration == 0.4.5'

as for your previous errors...
looks like the first one resolved itself, as protobuf was installed the second time around. the second error can be resolved by installing versiontools.
pip install versiontools





wifigod

# Jan 25 2012 - 2:01 PM

Yeah, from what I could quickly gather, the older versions of socialregistration use the old deprecated version of the facebook-python project, which has been discontinued by Facebook due to OAuth support being enabled.

That being said, there were two "replacement" projects that users forked themselves, so I downloaded one of those to fix. Not sure which would be the preferred way, old socialregistration + old fb or latest socialregistration and the latest version of the new library.

I'll go ahead and start from scratch once more and try both suggestions you mention and see what happens with a dev install.