*** tpb has joined #timvideos | 00:00 | |
*** CarlFK has quit IRC | 00:02 | |
aps-sids | mithro: python module "q" you suggested is really useful. Is it possible to get an *interactive* console (ipython) using this module? | 00:27 |
---|---|---|
mithro | aps-sids: no idea. Probably not | 00:40 |
mithro | oh wait | 00:40 |
mithro | https://pypi.python.org/pypi/q | 00:40 |
tpb | Title: q 2.4 : Python Package Index (at pypi.python.org) | 00:40 |
mithro | To start an interactive console at any point in your code, call q.d(): | 00:40 |
mithro | import q; q.d() | 00:40 |
aps-sids | mithro: yeah, I'm doing this and it opens a python console. But it would be awesome if it could open something like ipython. | 00:42 |
mithro | aps-sids: look at the code :P | 00:42 |
aps-sids | did that as well, couldn't understand much :D #noob | 00:42 |
mithro | https://github.com/zestyping/q/blob/master/q.py#L322 | 00:43 |
tpb | Title: q/q.py at master · zestyping/q · GitHub (at github.com) | 00:43 |
mithro | just change the code.interact line to ipython equivalent | 00:47 |
mithro | http://stackoverflow.com/questions/3423741/using-ipython-from-the-python-shell-like-code-interact | 00:47 |
tpb | Title: Using IPython from the Python shell like `code.interact()` - Stack Overflow (at stackoverflow.com) | 00:47 |
*** CarlFK has joined #timvideos | 00:50 | |
*** ChanServ sets mode: +v CarlFK | 00:50 | |
aps-sids | gah, import IPython gives "cannot import name TextIOWrapper" | 01:17 |
*** FeltonChris has left #timvideos | 03:21 | |
*** Niharika has joined #timvideos | 04:00 | |
*** tija has joined #timvideos | 06:22 | |
*** CarlFK has quit IRC | 06:35 | |
*** tija has quit IRC | 07:16 | |
*** mparuszewski has joined #timvideos | 07:48 | |
*** slomo has joined #timvideos | 08:09 | |
*** slomo has joined #timvideos | 08:09 | |
*** rohitksingh has joined #timvideos | 08:52 | |
rohitksingh | mithro: You online? | 08:54 |
*** Niharika has left #timvideos | 10:20 | |
*** Niharika has quit IRC | 10:20 | |
*** ayush3504 has joined #timvideos | 12:00 | |
*** rohitksingh has quit IRC | 12:07 | |
*** rohitksingh has joined #timvideos | 12:08 | |
*** slomo has quit IRC | 12:24 | |
*** slomo has joined #timvideos | 12:25 | |
*** slomo has joined #timvideos | 12:25 | |
*** Niharika has joined #timvideos | 12:49 | |
mithro | rohitksingh: I'm just going to bed now, I've been up since 5am so pretty tired | 13:13 |
rohitksingh | ok..no problems! Have a nice sleep! :) | 13:14 |
shenki | mithro: i got an AWS request. when i click the link it tells me: | 13:42 |
shenki | You are not authorized to perform this operation. | 13:42 |
shenki | You are currently signed in as an IAM user that does not have permissions to the requested page. | 13:42 |
shenki | mithro: can't work out what's wrong | 13:42 |
mithro | shenki: maybe I used the wrong email address? | 13:42 |
shenki | mithro: yep. use [email protected] | 13:48 |
*** slomo has quit IRC | 14:03 | |
*** CarlFK has joined #timvideos | 14:20 | |
*** ChanServ sets mode: +v CarlFK | 14:20 | |
*** ayush3504 has quit IRC | 14:24 | |
*** Niharika is now known as Niharika|afk | 14:27 | |
*** rohitksingh1 has joined #timvideos | 14:33 | |
*** rohitksingh1 has quit IRC | 14:33 | |
*** rohitksingh has quit IRC | 14:33 | |
*** rohitksingh has joined #timvideos | 14:45 | |
*** Niharika|afk is now known as Niharika | 15:47 | |
Niharika | Hi. I´m getting ´A server error occurred. Please contact the administrator´ on accessing some specific URLs in the project site. Like https://www.dropbox.com/s/m6y2wqket1gasuf/Screenshot%202014-06-01%2019.28.57.png I´m not able to figure out where the issue is. Any help? | 15:52 |
tpb | Title: Dropbox - Screenshot 2014-06-01 19.28.57.png (at www.dropbox.com) | 15:52 |
Niharika | My views.py looks like https://dpaste.de/6LNp | 16:03 |
tpb | Title: dpaste.de: Snippet #270050 (at dpaste.de) | 16:03 |
CarlFK | Niharika: can you push all your code to github? (which will make skay grumpy unless you create a branch for stuff that doesn't work yet, but I do it all the time ;) | 16:17 |
CarlFK | also, localhost:8000 - I am guessing you are using the django dev server (manange.py runserver) which should have an error on it;s console | 16:19 |
CarlFK | and and and.. that error dose not look like what I would expect from django, so I am not sure what is going on | 16:19 |
CarlFK | your best place to ask for django help is #django | 16:20 |
Niharika | CarlFK: Someone on #Django told me it´s not related to Django. It´s related to the project... | 16:21 |
CarlFK | grumble - that wasn't helpful :p | 16:21 |
CarlFK | in your vm, are you running apache or nginx? | 16:22 |
Niharika | CarlFK: https://github.com/Niharika29/streaming-system/tree/master/website/frontend | 16:22 |
tpb | Title: streaming-system/website/frontend at master · Niharika29/streaming-system · GitHub (at github.com) | 16:22 |
Niharika | CarlFK: Er, I am not sure, I´m doing the make serve according to docs. | 16:22 |
Niharika | brb | 16:22 |
Niharika | Back. | 16:25 |
Niharika | CarlFK: Someone (adian) on #django said that it´s a customized page, made by the project creator. Any idea what´s going on? | 16:26 |
CarlFK | yeah - the readme or whatever docs had you setup a production server.. which is making this harder | 16:26 |
*** skay_ has joined #timvideos | 16:27 | |
skay_ | Niharika: hiya | 16:27 |
Niharika | skay_: Hi! | 16:27 |
skay_ | let me catch up with the irc log | 16:28 |
Niharika | :) | 16:28 |
skay_ | I started installing a new distro on my laptop last night so I was distracted (and this morning too) | 16:28 |
skay_ | I have a mac though, so here I am | 16:28 |
Niharika | Oh, okay. No problem. It´s a Sunday after all. | 16:29 |
CarlFK | skay_: I am guessing gunicorn is on port 8000, so django dev server can't just use that. turning it off may be a pain, so just use 8001 (again, kinda guessing at how it is currently setup) | 16:30 |
skay_ | I'll go check the docs to see how they have people set things up … you'll get more debug information if you run the django devserver | 16:30 |
skay_ | yeah, I'll be guessing until I see how the docs set things up | 16:30 |
Niharika | CarlFK: Some urls, like the streaming page etc. work perfectly fine. Only some urls give this error. | 16:31 |
CarlFK | https://github.com/CarlFK/streaming-system/blob/master/Vagrantfile that should track the docs - 90% happens by make (so Makefile) | 16:31 |
tpb | Title: streaming-system/Vagrantfile at master · CarlFK/streaming-system · GitHub (at github.com) | 16:31 |
skay_ | make serve does use the django server. in settings, set DEBUG=True | 16:32 |
skay_ | I forget what local setting is… let me go check. I always forget if it is settings_local.py or local_settings.py or even if teh streaming-system uses that | 16:32 |
skay_ | oh, I just checked your repo and in your settings.py you have DEBUG set to True | 16:34 |
Niharika | skay_: Yeah. | 16:35 |
skay_ | nothing in private.settings overrides that? | 16:35 |
skay_ | double check | 16:35 |
Niharika | skay_: I don´t think so. | 16:35 |
skay_ | I notice the make server command doesn't have any additional args to pass to manage.py. these args will be useful because it will have the console print out tracedumps ./manage.py runserver --traceback -v 3 | 16:36 |
skay_ | it has been a while since I used make, so I am unfamiliar with how to pass args to a target. | 16:37 |
Niharika | Ah, okay. | 16:37 |
skay_ | could you instead ssh to your vm, then go to the directory where manage is, and invoke it like I just mentioned? | 16:37 |
Niharika | skay_: Let me try. | 16:38 |
skay_ | also, later today when I have my linux laptop set up again I can get a dev setup for the streaming system frontend so I can reproduce these things | 16:38 |
Niharika | skay_: Okay. | 16:38 |
skay_ | I was also trying out carls Vangrantfile the other day — and I have a fork with it and also I added a new vagrant target so that the makefile would work nicer with vagrant, but I hadn't had time to play with that | 16:39 |
skay_ | also, I see in the irc log that CarlFK joked about me liking people to submit to branches then get them working then merging to master — we can go over how to do that later, but I won't be disgruntled for now if it is confusing | 16:40 |
skay_ | it is good practice, but at this point we aren't ready to make a pull request (PR) | 16:41 |
Niharika | skay_: Where can I see what all the make serve command does? | 16:41 |
CarlFK | Niharika: Makefile | 16:41 |
Niharika | Okay. | 16:41 |
CarlFK | (i forget where it is) | 16:41 |
CarlFK | hopefully there is only one | 16:41 |
skay_ | also, you asked a good question about whether to make this a django app versus something you do in timvideos… I will have a chat about that with you once I get things up and stable on my laptop | 16:41 |
Niharika | skay_: Alright. :) | 16:42 |
skay_ | my instinct is that it would be nice… but I need to think about it a bit more to see whether the models are general enough to be useful for other projects | 16:42 |
skay_ | and it's a bit hypothetical… so that might be over-thinking | 16:42 |
skay_ | so one suggestion — let's think about that for a short bit, but then perhaps just make sure you code things in such a way that you can do some refactoring to pull out things in to a separate project | 16:43 |
skay_ | but, thinking about this some more, once nice thing is that you could have a separate repo, then make it a python package, then just include it in the requirements file and settings int imvideos | 16:44 |
skay_ | and that way there will be way less pain of doing PRs to timvideos | 16:44 |
skay_ | in fact. let me think about that a little more today, but I think I do like that idea | 16:44 |
skay_ | I am just hand waving for now | 16:44 |
Niharika | skay_: I started the server with the command you told me to, but it´s giving me a bunch of errors on accessing the URLs. I think there´s some other key stuff make serve does. | 16:44 |
Niharika | skay_: Okay. | 16:45 |
skay_ | hmm, maybe just edit hte Makefile to add the extra parameters for now | 16:45 |
Niharika | skay_: Okay, done. | 16:47 |
skay_ | does that give you mroe info? | 16:47 |
Niharika | skay_: Nope. Nothing on the console. | 16:48 |
skay_ | I'm confused by that, so I need to set up an environment so I can see what the make file is doing versus what I am used to when doing django dev | 16:49 |
CarlFK | runserver should just work | 16:49 |
skay_ | maybe I can get vagrant running nicely on my mac until I've got my linux laptop okay | 16:49 |
skay_ | CarlFK: why isn't it dumping more information to the console log? | 16:49 |
CarlFK | I thought it was erroring | 16:50 |
Niharika | It´s dumping more information when I hit urls which are completely non-existent( not in urls.py). | 16:51 |
skay_ | from the screenshot it looks like the site has a 500 | 16:51 |
Niharika | But not for this one. | 16:51 |
skay_ | so runserver should be showing a strack trace | 16:51 |
skay_ | but it is not | 16:51 |
CarlFK | Niharika: in your VM: sudo apt-get install pastebinit | 16:52 |
skay_ | for varying degrees of "should" | 16:52 |
CarlFK | er... | 16:52 |
Niharika | CarlFK: Okay | 16:52 |
CarlFK | sudo apt-get install pastebinit xclip | 16:52 |
CarlFK | then you can use your mouse to highlight text and run xclip -o | pastebinit | 16:53 |
Niharika | Nice. | 16:53 |
CarlFK | and it will print http://paste.ubuntu.com/7567139/ | 16:53 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 16:53 |
Niharika | http://paste.ubuntu.com/7567179/ This is the complete trace from doing the make serve to accessing the url in question. | 17:00 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 17:00 |
Niharika | The error about favicon.ico is the icon on the homepage, it´s missing, apparently. It always shows that in error when I do a make serve. | 17:03 |
CarlFK | this reminds me of that rant about .js "it is normal for things to be all broken" | 17:19 |
*** Niharika has left #timvideos | 17:40 | |
*** slomo_ has joined #timvideos | 19:06 | |
*** slomo_ has joined #timvideos | 19:06 | |
*** skay has joined #timvideos | 19:57 | |
*** ChanServ sets mode: +v skay | 19:57 | |
*** rohitksingh1 has joined #timvideos | 20:24 | |
*** rohitksingh has quit IRC | 20:24 | |
*** rohitksingh1 has quit IRC | 20:25 | |
*** slomo_ has quit IRC | 20:46 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!