All times shown according to UTC.
| Time | Nick | Message |
|---|---|---|
| 00:01 | arpu left #miro-hackers | |
| 00:03 | DGMurdockIII joined #miro-hackers | |
| 00:22 | DGMurdockIII left #miro-hackers | |
| 00:33 | morganknutson left #miro-hackers | |
| 00:34 | CarlFK left #miro-hackers | |
| 00:34 | CarlFK1 joined #miro-hackers | |
| 00:38 | morganknutson joined #miro-hackers | |
| 00:44 | morganknutson left #miro-hackers | |
| 01:12 | morganknutson joined #miro-hackers | |
| 01:17 | morganknutson left #miro-hackers | |
| 01:32 | DGMurdockIII joined #miro-hackers | |
| 01:45 | DGMurdockIII left #miro-hackers | |
| 02:23 | mattjohnson joined #miro-hackers | |
| 02:35 | CarlFK1 left #miro-hackers | |
| 03:24 | CarlFK joined #miro-hackers | |
| 03:51 | CarlFK left #miro-hackers | |
| 04:29 | ajonas joined #miro-hackers | |
| 04:43 | ajonas left #miro-hackers | |
| 05:03 | ajonas joined #miro-hackers | |
| 05:20 | TSK left #miro-hackers | |
| 05:27 | ajonas left #miro-hackers | |
| 06:16 | thrillERboy joined #miro-hackers | |
| 07:25 | mattjohnson left #miro-hackers | |
| 08:08 | mattjohnson joined #miro-hackers | |
| 08:56 | maggie_s joined #miro-hackers | |
| 10:08 | maggie_s left #miro-hackers | |
| 11:00 | thrillERboy left #miro-hackers | |
| 11:58 | Dawnrell joined #miro-hackers | |
| 12:39 | arpu joined #miro-hackers | |
| 12:49 | Dawnrell left #miro-hackers | |
| 13:22 | janetPCF joined #miro-hackers | |
| 15:08 | z3p | paulproteus: my only comment on your new uploadtemplate boolean thing is that maybe it should subclass bool instead of object |
| 15:08 | for clarity | |
| 15:08 | other than that, looks good :) | |
| 15:08 | paulproteus | z3p: Interesting... I wonder what that would be like |
| 15:08 | z3p: (-: | |
| 15:08 | It's so awesomely horrifyingly evil. | |
| 15:09 | For the people who hate C++ operator overloading, their brains would probably explode in fury upon seeing this. | |
| 15:09 | z3p | paulproteus: eh :) I checked some code into Miro recently which is using __new__ |
| 15:10 | paulproteus | I'd be curious to see it (-: |
| 15:11 | http://stackoverflow.com/quest[…]nd-bool-in-python # fwiw | |
| 15:11 | I might be able to get away with subclassing int. | |
| 15:11 | >>> True == 1 # dirty secret of Python bools | |
| 15:11 | True | |
| 15:11 | >>> (True) + 2 | |
| 15:11 | 3 | |
| 15:12 | z3p | paulproteus: that reasoning makes sense |
| 15:13 | paulproteus | Doing addition to booleans is such nonsense. Getting 3 back is even worse. |
| 15:13 | Anyway, I think I'll stick to what I have for now. | |
| 15:14 | z3p | paulproteus: http://git.participatorycultur[…]s/tablist.py#n693 |
| 15:15 | * paulproteus | nods solemnly. |
| 15:15 | paulproteus | BTW, http://docs.python.org/release[…].1/ref/slots.html might possibly give you some extra performance. |
| 15:16 | I'll be back in a bit. | |
| 15:29 | ajonas joined #miro-hackers | |
| 15:54 | paulproteus | Morning, |
| 15:54 | mattjohnson: Today, let's identify and fix any remaining issues you're having with getting Miro Community running. | |
| 15:55 | mattjohnson | k |
| 15:55 | paulproteus | Whoa, you're here right now? In that case, maybe let's take a look right now. |
| 15:56 | mattjohnson | haha |
| 15:56 | sure | |
| 15:56 | paulproteus | Last we saw, "pip" was vaguely failing to install things to the virtualenv. |
| 15:56 | mattjohnson | ah right |
| 15:56 | paulproteus | I think we were last stuck with the "Image"/Imaging/PIL thing not being available. |
| 15:57 | This was a drag because it's actually a dependency; we can't easily hack around its absence, as far as I know. | |
| 16:00 | mattjohnson: Okay, so if now is still a good time... | |
| 16:01 | Open up a terminal, and do the "source" command to get the virtualenv (mc) prefix back into your command prompt | |
| 16:03 | mattjohnson | k |
| 16:03 | paulproteus | So our goal is to make "import Image" work |
| 16:03 | mattjohnson | paulproteus: should I be in a specific directory? |
| 16:04 | paulproteus | Not particularly |
| 16:04 | mattjohnson | k |
| 16:04 | paulproteus | Get a Python interpreter |
| 16:04 | do | |
| 16:04 | import django | |
| 16:04 | Then type | |
| 16:04 | django | |
| 16:05 | It should print some information about where it got the Django module from. Is that module coming from within the virtualenv? | |
| 16:05 | That's just a basic sanity check to make sure your path and things are okay. If so, we'll proceed. | |
| 16:05 | mattjohnson | hmm |
| 16:06 | "import django" is the command? | |
| 16:07 | paulproteus | *Within* the Python interpreter. |
| 16:07 | mattjohnson | which is? lol |
| 16:07 | paulproteus | You can get inside a Python interpreter by typing "python" and pressing enter. |
| 16:07 | mattjohnson | okay thanks |
| 16:07 | paulproteus | The Python prompt looks like ">>>" which is how you know things are different |
| 16:07 | No prob | |
| 16:07 | Would have said that sooner, but I spilled coffee on my sweatshirt. | |
| 16:07 | And had to go rinse it off. | |
| 16:08 | mattjohnson | <module 'django' from '/Library/Python/2.6/site-packages/django/__init__.pyc'> |
| 16:10 | paulproteus | So that's a Python module from your system. |
| 16:11 | To minimize the chances of surprises, I prefer to use virtualenv's ability to ignore Python modules from the OS, and stick to only using things from the virtualenv. | |
| 16:11 | mattjohnson | im down to how ever you want to set this up |
| 16:11 | paulproteus | Ya |
| 16:11 | You're sure you have the (mc) prefix for the virtualenv? | |
| 16:11 | mattjohnson | let it be known, I did have a previous project in django, was setup by the developer of that project as well |
| 16:11 | paulproteus | If so, then I'll adjust the directions once more, and create more isolation, and you'll have to recreate the env *yet* again |
| 16:11 | mattjohnson | yep |
| 16:12 | paulproteus | Good to know |
| 16:12 | The nice thing about virtualenv is that different developers' preferences can't really affect each other (-: | |
| 16:12 | You can see that today I feel less hatred for virtualenv. | |
| 16:12 | I don't know why; maybe it's this super tasty strong coffee. | |
| 16:12 | Anyway, adjusting directions; tty in a sec | |
| 16:13 | mattjohnson | haha |
| 16:13 | paulproteus | Okay, please erase the old env, and recreate it using the new instructions at http://develop.participatorycu[…]eate_a_virtualenv |
| 16:13 | The big purple "Note" says how to erase the old virtualenv | |
| 16:14 | The new directions use "--no-site-packages" to make sure that other Python stuff from your environment doesn't get in. | |
| 16:15 | mattjohnson | how do I get out of the python inter |
| 16:15 | paulproteus | Ctrl-d |
| 16:15 | mattjohnson | ahh |
| 16:15 | was doing ctrl c | |
| 16:17 | paulproteus | Also "exit()" works, and if you type "exit" it'll give you a bit of help. |
| 16:17 | mattjohnson | okay, I've done the cmd to remove the virtualenv |
| 16:17 | good to know | |
| 16:18 | so start over from the top of the wiki? | |
| 16:18 | paulproteus | Ya |
| 16:18 | mattjohnson | or is there other things I need to do to ensure I've removed everything? |
| 16:19 | paulproteus | You're going to have some "leftovers" in ~/projects/localmc/, but those leftovers should be okay. |
| 16:19 | mattjohnson | okay |
| 16:19 | paulproteus | I think that the wiki page only creates files in ~/projects/localmc/ and the virtualenv. |
| 16:20 | mattjohnson | running requirements.txt |
| 16:20 | paulproteus | Okay. I hope it works out for you! |
| 16:21 | If not, we'll figure things out! | |
| 16:21 | glee joined #miro-hackers | |
| 16:22 | paulproteus | There's a quote this all reminds me of: |
| 16:22 | Problem solving under Linux has never been the circus that it is under AIX. | |
| 16:22 | -- Pete Ehlke in comp.unix.aix | |
| 16:22 | mattjohnson | lol |
| 16:22 | brb, need to turn up the heat, gettin' chilly! | |
| 16:23 | its still running pip install | |
| 16:23 | paulproteus | Yup, it'll take, like, 5-15 minutes. |
| 16:24 | mattjohnson | okay done |
| 16:24 | paulproteus | ! |
| 16:24 | Did it seem to succeed? | |
| 16:24 | That'd be cool. | |
| 16:24 | mattjohnson | yeah it was a good 5 miins |
| 16:24 | yeah im not sure | |
| 16:25 | I see a couple warnings | |
| 16:25 | and at the very end | |
| 16:25 | "cannot find command 'hg' | |
| 16:25 | after - Cloning hg http://bitbucket.org/ubernostr[…]ngo-registration/ to ./python-environments/mc/src/django-registration | |
| 16:25 | paulproteus | Oh, huh! |
| 16:25 | I guess you're going to need to install hg... | |
| 16:26 | http://mercurial.berkwood.com/ | |
| 16:26 | Downloads | |
| 16:26 | * 2010-11-16: Version 1.7.1 - Release version | |
| 16:26 | o Mercurial 1.7.1 for OS X 10.6 | |
| 16:26 | o Mercurial 1.7.1 for OS X 10.5 | |
| 16:26 | o 10.4 delayed (unless a new system is obtained) | |
| 16:26 | Seems like those are the ones to grab. | |
| 16:27 | Remember how I said this coffee was strong? woo, I now definitely know that. | |
| 16:27 | mattjohnson | okay installed |
| 16:27 | paulproteus | Okay, so re-try the 'pip install whatever' |
| 16:28 | Dawnrell joined #miro-hackers | |
| 16:28 | janetPCF left #miro-hackers | |
| 16:33 | mattjohnson | its installing lxml |
| 16:33 | which appears to be a beast | |
| 16:33 | * paulproteus | gulps |
| 16:34 | mattjohnson | yeah, it looks scary |
| 16:34 | its barely understandable | |
| 16:34 | haha | |
| 16:35 | seeing a bunch of imaging stuff | |
| 16:35 | * paulproteus | crosses his fingers. |
| 16:35 | mattjohnson | Successfully installed amqplib anyjson BeautifulSoup billiard carrot celery Django django-email-share django-haystack django-notification django-picklefield django-registration Django-Socialauth django-tagging django-uploadtemplate djpagetabs djvideo facebook-python-sdk feedparser flup httplib2 importlib lxml miro-community oauth oauth2 PIL python-bitly python-dateutil python-memcached python-openid python-yadis |
| 16:35 | recaptcha-client recaptcha-django simplejson vidscraper whoosh | |
| 16:36 | paulproteus | !! |
| 16:36 | That's a lot of successes! | |
| 16:36 | mattjohnson | indeed |
| 16:36 | paulproteus | Okay, so now can you just keep going? |
| 16:38 | mattjohnson | so on to projects? |
| 16:38 | paulproteus | Uh huh! |
| 16:38 | mattjohnson | even though I have that stuff for the most part? |
| 16:38 | paulproteus | Feel free to wipe out the ~/projects/localmc/ if you want, first! |
| 16:39 | mattjohnson | !!!!! |
| 16:40 | paulproteus | !!!!!!!!? |
| 16:40 | mattjohnson | It worked! |
| 16:40 | Congratulations on your first Django-powered page. | |
| 16:40 | paulproteus | !!!!!!!!! (-: |
| 16:40 | mattjohnson | okay so now |
| 16:40 | lol | |
| 16:41 | time to do the settings thing again | |
| 16:44 | paulproteus: http://d.pr/9r3Q+ | |
| 16:45 | did the cp commands successfully, and copied over all the variables | |
| 16:45 | paulproteus | mattjohnson: I *think* there's a note about HAYSTACK_SITECONF in the wiki page |
| 16:45 | let me double check | |
| 16:47 | Yeah, pull in that variable from the example settings.py | |
| 16:48 | mattjohnson | k let me look |
| 16:48 | all of the haystack variables? | |
| 16:49 | paulproteus | Try just HAYSTACK_SITECONF first |
| 16:49 | But probably all of 'em | |
| 16:49 | And when you figure out which ones you need, add 'em to the list in the wiki page. | |
| 16:50 | mattjohnson | http://d.pr/WEdJ+ |
| 16:50 | paulproteus | :D |
| 16:50 | You have to not put a space before it. | |
| 16:50 | (which it looks like you did...?) | |
| 16:52 | mattjohnson | yea |
| 16:52 | so fixed that | |
| 16:52 | got an error for the search_engine variable, so added it and tried again, and got this | |
| 16:52 | http://d.pr/d50A+ | |
| 16:53 | paulproteus | "Configure the Django project" should tell you to copy a file in that should fix that |
| 16:53 | mattjohnson | oopppps |
| 16:54 | paulproteus | (-: No worries. |
| 16:55 | mattjohnson | naw, I forgot the variables to set |
| 16:55 | the ENGINE and NAME | |
| 16:55 | but changed those and tried the syncdb again with no avail, still has the "no module named search_sites" | |
| 16:56 | paulproteus | What is HAYSTACK_SITECONF set to? |
| 16:56 | You should set it to "search_sites" I think | |
| 16:56 | mattjohnson | HAYSTACK_SITECONF = 'example_project.search_sites' |
| 16:57 | paulproteus | HAYSTACK_SITECONF='search_sites' |
| 16:57 | Try that instead | |
| 16:57 | In general, if example_project is anywhere in your settings.py, it won't work (-: | |
| 16:58 | mattjohnson | haha |
| 16:58 | yeah | |
| 16:59 | amazing | |
| 16:59 | it all works | |
| 16:59 | browsing admin now | |
| 16:59 | paulproteus | Amazing! (-: |
| 16:59 | mattjohnson | thanks so much |
| 16:59 | paulproteus | And the styling works...? |
| 16:59 | mattjohnson | yeah |
| 16:59 | everything looks okay | |
| 16:59 | paulproteus | Okay, *hot*. |
| 17:00 | mattjohnson | yeah, victory |
| 17:00 | paulproteus | Quoth Alvis: Vengeance is mine. |
| 17:01 | mattjohnson | now I just need someone to help me with one more issue, can't seem to push to the mainsite repo anymore, getting permission denied, is this you paulproteus or z3p? |
| 17:01 | error: failed to push some refs to 'ssh://mattdetails git.participatoryculture.org:2191/var/git/localtv-mainsite/' |
|
| 17:01 | paulproteus | mattjohnson: pastebin it all, please. |
| 17:01 | "pastebin" refers to text-based pasting services, which is my instinctive suggestion for long error messages. | |
| 17:02 | You do a screenshot-based thing, which is also okay, but always strikes me as a little silly. | |
| 17:02 | mattjohnson | http://pastie.org/pastes/1320508/text |
| 17:02 | paulproteus | Yeah, permissions nonsense. |
| 17:03 | I'll fix that, but in general I think the way we do git repo hosting is kind of error-prone. | |
| 17:04 | mattjohnson | heh |
| 17:04 | also how would I commit the localmc code? | |
| 17:04 | like what is the repo for that etc | |
| 17:04 | paulproteus | cd ~/projects/localmc |
| 17:04 | git init | |
| 17:04 | git add . | |
| 17:04 | git commit -m 'A local commit that stays on your computer' | |
| 17:05 | You'd probably never "push" it to any repo run by pculture, but you could use e.g. github to share it with yourself (and between computers) | |
| 17:05 | mattjohnson | lol um, how do I send it to you then? |
| 17:05 | paulproteus | You don't have to! (-: |
| 17:05 | You just send me changes to localvtv_mainsite and localtv | |
| 17:06 | Since the changes you'll make are going to be in there, virtually entirely. | |
| 17:06 | mattjohnson | im only setup with localtv_mainsite |
| 17:06 | repo | |
| 17:07 | paulproteus | You can re-try the push now. Does it work? |
| 17:07 | I don't really understand what you mean by "im only setup with localtv_mainsite", though. | |
| 17:07 | mattjohnson | yep, thanks for that |
| 17:08 | okay, so the whole point of me getting setup with the localmc application is because I am going to be doing top level cleaning in the html, css, and design, and I want to push that somewhere for a developer to look at and/or proceed with pushing changes live | |
| 17:08 | paulproteus | Yup. |
| 17:08 | mattjohnson | and in the instance of the tiers, I'll be introducing new changes, and want to push them to a developer as well to make functional |
| 17:09 | so however I need to do that, im not setup to do that with anything but localtv_mainsite | |
| 17:09 | paulproteus | The only point of "localmc" is to let you run a Django server that exposes the changes you'll make in the localtv app. |
| 17:09 | mattjohnson | okay |
| 17:09 | so its localtv that is the global app | |
| 17:09 | paulproteus | Yup! That's what drives the main sites. |
| 17:09 | mattjohnson | that executes everything for a specific localmc site |
| 17:09 | k | |
| 17:10 | paulproteus | And you can find it in the virtualenv's src directory |
| 17:10 | And you can do local commits. | |
| 17:10 | And eventually you can push those commits, too! | |
| 17:10 | Check out the note about "git log" in the wiki page. | |
| 17:11 | mattjohnson | okay |
| 17:11 | so where should I start with setting up a git repo for localtv? | |
| 17:11 | do I navigate all the way to localtv? | |
| 17:11 | or do I need all of the top level directories also? | |
| 17:11 | paulproteus | You already have a git repo for localtv; just "cd" into that directory |
| 17:11 | mattjohnson | MAGIC |
| 17:11 | haha | |
| 17:12 | paulproteus | :D |
| 17:12 | mattjohnson | okay, I don't recall ever setting it up so I guess that was the confusion |
| 17:12 | paulproteus | Yeah, it's part of what the 'pip install' thing does. |
| 17:13 | mattjohnson | cool |
| 17:13 | okay so we'll break from this but going to poke around and try to make changes and commit to make sure I can go through the full process | |
| 17:14 | paulproteus | Super rad. |
| 17:56 | glee1 joined #miro-hackers | |
| 17:58 | glee left #miro-hackers | |
| 18:04 | mattjohnson | hey paulproteus not sure how to edit the wiki...do I just create an account or do I use an account that exists that I'm unaware of or. |
| 18:04 | just need to add the haystack variables | |
| 18:14 | bendk joined #miro-hackers | |
| 19:13 | Dawnrell left #miro-hackers | |
| 21:04 | ajonas left #miro-hackers | |
| 22:24 | ajonas joined #miro-hackers | |
| 23:03 | maggie_s joined #miro-hackers | |
| 23:32 | Dawnrell joined #miro-hackers | |
| 23:45 | ajonas left #miro-hackers | |
| 23:49 | ajonas joined #miro-hackers |
git.participatoryculture.org:2191/var/git/localtv-mainsite/'