workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
<@Winnifred> :taco:
2017-06-21T22:52:47.005749
Beula
pythondev_help_Beula_2017-06-21T22:52:47.005749
1,498,085,567.005749
82,803
pythondev
help
Okay, per <https://bottlepy.org/docs/dev/api.html#bottle.BaseRequest.json>, it looks like you can only use that method if the content type header is application/json or application/json-rpc. I'm guessing it's not. You can probably see this if you directly print the `request` object. If you still want to force this to json, you can `import json` then use `json.dumps(request)`.
2017-06-21T22:54:23.017420
Winnifred
pythondev_help_Winnifred_2017-06-21T22:54:23.017420
1,498,085,663.01742
82,804
pythondev
help
thanks, <@Beula> :smile:
2017-06-21T22:55:48.027023
Winnifred
pythondev_help_Winnifred_2017-06-21T22:55:48.027023
1,498,085,748.027023
82,805
pythondev
help
Thank you for taking time to understand the problem, ask clarifying questions and answer!
2017-06-21T22:56:21.030979
Beula
pythondev_help_Beula_2017-06-21T22:56:21.030979
1,498,085,781.030979
82,806
pythondev
help
thanks!!
2017-06-21T23:28:37.248625
Vanetta
pythondev_help_Vanetta_2017-06-21T23:28:37.248625
1,498,087,717.248625
82,807
pythondev
help
Any tips on forming an LLC would be welcomed. I'm based in the USA (Colorado, specifically)
2017-06-22T00:35:40.698629
Beula
pythondev_help_Beula_2017-06-22T00:35:40.698629
1,498,091,740.698629
82,808
pythondev
help
I'm looking to funnel contract work through the LLC and a few other ventures.
2017-06-22T00:36:57.707255
Beula
pythondev_help_Beula_2017-06-22T00:36:57.707255
1,498,091,817.707255
82,809
pythondev
help
``` for v in o: print(v['label']) ```
2017-06-22T04:34:09.084255
Ciera
pythondev_help_Ciera_2017-06-22T04:34:09.084255
1,498,106,049.084255
82,810
pythondev
help
o is a list
2017-06-22T04:34:14.085316
Ciera
pythondev_help_Ciera_2017-06-22T04:34:14.085316
1,498,106,054.085316
82,811
pythondev
help
<@Ciera> Then I get : TypeError: list indices must be integers or slices, not str
2017-06-22T04:35:06.099307
Yessenia
pythondev_help_Yessenia_2017-06-22T04:35:06.099307
1,498,106,106.099307
82,812
pythondev
help
I really don't see what I am doing wrong
2017-06-22T04:35:24.103714
Yessenia
pythondev_help_Yessenia_2017-06-22T04:35:24.103714
1,498,106,124.103714
82,813
pythondev
help
when you load your string as json in `o` it load a list. Because your json is a list
2017-06-22T04:36:34.121588
Ciera
pythondev_help_Ciera_2017-06-22T04:36:34.121588
1,498,106,194.121588
82,814
pythondev
help
so you need to iterate over the list to get each label/value inside
2017-06-22T04:36:58.127617
Ciera
pythondev_help_Ciera_2017-06-22T04:36:58.127617
1,498,106,218.127617
82,815
pythondev
help
ajj
2017-06-22T04:37:31.135876
Yessenia
pythondev_help_Yessenia_2017-06-22T04:37:31.135876
1,498,106,251.135876
82,816
pythondev
help
[0]
2017-06-22T04:37:34.136543
Yessenia
pythondev_help_Yessenia_2017-06-22T04:37:34.136543
1,498,106,254.136543
82,817
pythondev
help
``` import json raw_string = '[{"label":"2012","value":2715016.0},{"label":"2013","value":2911467.0},{"label":"2014","value":3254471.0},{"label":"2015","value":3522816.0},{"label":"2016","value":3906514.0}]' o = json.loads(raw_string) for info in o: print(info['label']) ```
2017-06-22T04:37:45.139250
Ciera
pythondev_help_Ciera_2017-06-22T04:37:45.139250
1,498,106,265.13925
82,818
pythondev
help
Thank you
2017-06-22T04:41:26.195341
Yessenia
pythondev_help_Yessenia_2017-06-22T04:41:26.195341
1,498,106,486.195341
82,819
pythondev
help
Maybe someone has an idea on a bit of a headscratcher I have. I have a project which essentially is a python app with currently npyscreen ui running on a raspberry pi. The idea is that a user can search for games using the app on the pi. Wonderful, works well. The issue is that I’m aiming it for RetroPie, where the majority of it’s users only have a controller connected, so no keyboard to enter details. How would I solve this? I was thinking of maybe creating an onscreen keyboard, or perhaps have up and down arrows to go down letters of the alphabet and left and right to move the cursor, but then how do you move to the next input box, or button? Anyone have any ideas?
2017-06-22T05:56:57.398979
Timothy
pythondev_help_Timothy_2017-06-22T05:56:57.398979
1,498,111,017.398979
82,820
pythondev
help
how many button are there on a controller ?
2017-06-22T05:58:31.423899
Ciera
pythondev_help_Ciera_2017-06-22T05:58:31.423899
1,498,111,111.423899
82,821
pythondev
help
Well say someone has the bare bones, a NES USB controller, you are looking at 4 buttons and D
2017-06-22T06:00:34.457854
Timothy
pythondev_help_Timothy_2017-06-22T06:00:34.457854
1,498,111,234.457854
82,822
pythondev
help
This is the best I've seen. Navigating through almost 100 keys using left/right is a pain.
2017-06-22T06:00:43.460257
Suellen
pythondev_help_Suellen_2017-06-22T06:00:43.460257
1,498,111,243.460257
82,823
pythondev
help
True, but the issue there is that it counts on analog. Many users will have USB retro pads like NES and SNES (myself included) which cannot easily move diagonal let alone hold it there. And the NES USB controller has a total of 4 buttons, with only 2 really free to play with, so that makes this perhaps too difficult
2017-06-22T06:03:01.495622
Timothy
pythondev_help_Timothy_2017-06-22T06:03:01.495622
1,498,111,381.495622
82,824
pythondev
help
Can you do long press?
2017-06-22T06:06:30.547314
Ciera
pythondev_help_Ciera_2017-06-22T06:06:30.547314
1,498,111,590.547314
82,825
pythondev
help
I should imagine so yes
2017-06-22T06:09:08.585573
Timothy
pythondev_help_Timothy_2017-06-22T06:09:08.585573
1,498,111,748.585573
82,826
pythondev
help
<@Timothy> you could offer two interfaces: one with the controller that is a bit slower for input (maybe also detect NES vs SNES for number of buttons to help us SNES controller users) and another that allows for just using a keyboard as well. i tend to keep a spare logitech wireless keyboard connected to my retropie
2017-06-22T09:12:02.179068
Patty
pythondev_help_Patty_2017-06-22T09:12:02.179068
1,498,122,722.179068
82,827
pythondev
help
also THANK YOU for adding something that is MUCH NEEDED in emulation station
2017-06-22T09:12:19.184774
Patty
pythondev_help_Patty_2017-06-22T09:12:19.184774
1,498,122,739.184774
82,828
pythondev
help
<@Timothy> :taco:
2017-06-22T09:12:27.187394
Patty
pythondev_help_Patty_2017-06-22T09:12:27.187394
1,498,122,747.187394
82,829
pythondev
help
<@Beula> do you think you need the limited liability aspect? what kind of other ventures are you thinking?
2017-06-22T09:48:25.974206
Junita
pythondev_help_Junita_2017-06-22T09:48:25.974206
1,498,124,905.974206
82,830
pythondev
help
I'm also organizing a conference, so I think that is really where the LLC starts to make sense
2017-06-22T10:25:49.907906
Beula
pythondev_help_Beula_2017-06-22T10:25:49.907906
1,498,127,149.907906
82,831
pythondev
help
<@Patty> you sound like you have the same setup as me, wireless logitech keyboard and snes usb controller. I think that’s probably the way I’m going to do it. Have it determine whether to use keyboard or on screen and then create an onscreen keyboard if it’s a controller.
2017-06-22T10:37:00.201185
Timothy
pythondev_help_Timothy_2017-06-22T10:37:00.201185
1,498,127,820.201185
82,832
pythondev
help
I guess I'm late to the retropie discussion, but I would aim for as simple as possible. Assume the user an NES control and nothing more, and if possible avoid an onscreen keyboard, because those are always a pain. I have an HTPC with a logitech keyboard/touchpad that I use in addition to a XB One control, but I would guess this is the exception rather than the norm. And, it's not retropie, so I like being able to use a browser and other things.
2017-06-22T11:37:51.818831
Meghan
pythondev_help_Meghan_2017-06-22T11:37:51.818831
1,498,131,471.818831
82,833
pythondev
help
Ah, yeah, I could see that then.
2017-06-22T11:40:55.898537
Junita
pythondev_help_Junita_2017-06-22T11:40:55.898537
1,498,131,655.898537
82,834
pythondev
help
Question: How do you create a view with python &amp; django
2017-06-22T11:41:33.914812
Roseann
pythondev_help_Roseann_2017-06-22T11:41:33.914812
1,498,131,693.914812
82,835
pythondev
help
You have return as a parameter.
2017-06-22T11:43:09.955372
Dave
pythondev_help_Dave_2017-06-22T11:43:09.955372
1,498,131,789.955372
82,836
pythondev
help
<https://docs.djangoproject.com/en/1.11/topics/http/views/>
2017-06-22T11:43:58.976079
Dave
pythondev_help_Dave_2017-06-22T11:43:58.976079
1,498,131,838.976079
82,837
pythondev
help
Should it now be a function
2017-06-22T11:44:00.977168
Roseann
pythondev_help_Roseann_2017-06-22T11:44:00.977168
1,498,131,840.977168
82,838
pythondev
help
Django has great documentation. The one I sent you is about creating views. Normally you have `request` as a parameter for a view function. This will contain information pertinent to that particular request.
2017-06-22T11:45:08.006576
Dave
pythondev_help_Dave_2017-06-22T11:45:08.006576
1,498,131,908.006576
82,839
pythondev
help
Returning an HttpResponse is correct though.
2017-06-22T11:45:36.019175
Dave
pythondev_help_Dave_2017-06-22T11:45:36.019175
1,498,131,936.019175
82,840
pythondev
help
Requesting the view.py file. I remember now. Thanks Man
2017-06-22T11:49:49.129324
Roseann
pythondev_help_Roseann_2017-06-22T11:49:49.129324
1,498,132,189.129324
82,841
pythondev
help
Hello guys
2017-06-22T14:18:48.640162
Marcela
pythondev_help_Marcela_2017-06-22T14:18:48.640162
1,498,141,128.640162
82,842
pythondev
help
I might need some help
2017-06-22T14:18:50.640926
Marcela
pythondev_help_Marcela_2017-06-22T14:18:50.640926
1,498,141,130.640926
82,843
pythondev
help
I am trying to use virtualenv to install requirements.txt which required a C++ Microsoft Visual Studio Build tools.
2017-06-22T14:19:14.649678
Marcela
pythondev_help_Marcela_2017-06-22T14:19:14.649678
1,498,141,154.649678
82,844
pythondev
help
I've installed this and configured PATH, and now when when requirements.txt runs cl.exe it gets this error:
2017-06-22T14:19:28.655115
Marcela
pythondev_help_Marcela_2017-06-22T14:19:28.655115
1,498,141,168.655115
82,845
pythondev
help
fatal error C1083: Cannot open include file: 'io.h': No such file or directory
2017-06-22T14:19:35.657963
Marcela
pythondev_help_Marcela_2017-06-22T14:19:35.657963
1,498,141,175.657963
82,846
pythondev
help
If I run it using the VS Command Shell, then i get the same error but with a different file
2017-06-22T14:20:26.676377
Marcela
pythondev_help_Marcela_2017-06-22T14:20:26.676377
1,498,141,226.676377
82,847
pythondev
help
unistd.h
2017-06-22T14:20:34.680235
Marcela
pythondev_help_Marcela_2017-06-22T14:20:34.680235
1,498,141,234.680235
82,848
pythondev
help
I'm not sure what I should do to fix this, or if I can skip having these entirely? Some posts have implied that these files aren't even necessary
2017-06-22T14:21:00.689844
Marcela
pythondev_help_Marcela_2017-06-22T14:21:00.689844
1,498,141,260.689844
82,849
pythondev
help
Why override the defaults? You can run `PYTEST_DEBUG=1 python -m pytest` to see the debug
2017-06-22T16:56:45.044589
Beula
pythondev_help_Beula_2017-06-22T16:56:45.044589
1,498,150,605.044589
82,850
pythondev
help
What do you mean override the defaults?
2017-06-22T16:58:24.078320
Noemi
pythondev_help_Noemi_2017-06-22T16:58:24.078320
1,498,150,704.07832
82,851
pythondev
help
Running that command gave me a long ugly stack trace
2017-06-22T16:59:06.092625
Noemi
pythondev_help_Noemi_2017-06-22T16:59:06.092625
1,498,150,746.092625
82,852
pythondev
help
The `pytest.ini` is just the defaults
2017-06-22T17:03:32.184582
Beula
pythondev_help_Beula_2017-06-22T17:03:32.184582
1,498,151,012.184582
82,853
pythondev
help
Yes
2017-06-22T17:03:38.186527
Noemi
pythondev_help_Noemi_2017-06-22T17:03:38.186527
1,498,151,018.186527
82,854
pythondev
help
Well
2017-06-22T17:03:39.187065
Noemi
pythondev_help_Noemi_2017-06-22T17:03:39.187065
1,498,151,019.187065
82,855
pythondev
help
but just drop your test functions to be outside the class
2017-06-22T17:03:40.187290
Beula
pythondev_help_Beula_2017-06-22T17:03:40.187290
1,498,151,020.18729
82,856
pythondev
help
No dice
2017-06-22T17:03:49.190423
Noemi
pythondev_help_Noemi_2017-06-22T17:03:49.190423
1,498,151,029.190423
82,857
pythondev
help
I reproduced it locally and it finds them fine.
2017-06-22T17:04:14.198423
Beula
pythondev_help_Beula_2017-06-22T17:04:14.198423
1,498,151,054.198423
82,858
pythondev
help
Collected 0 items
2017-06-22T17:04:24.201892
Noemi
pythondev_help_Noemi_2017-06-22T17:04:24.201892
1,498,151,064.201892
82,859
pythondev
help
Your class doesn't match the `python_classes` config key
2017-06-22T17:04:25.202009
Beula
pythondev_help_Beula_2017-06-22T17:04:25.202009
1,498,151,065.202009
82,860
pythondev
help
That's what I was trying to override with the ini
2017-06-22T17:04:39.206654
Noemi
pythondev_help_Noemi_2017-06-22T17:04:39.206654
1,498,151,079.206654
82,861
pythondev
help
Ahhh
2017-06-22T17:05:06.215457
Noemi
pythondev_help_Noemi_2017-06-22T17:05:06.215457
1,498,151,106.215457
82,862
pythondev
help
I see
2017-06-22T17:05:07.215689
Noemi
pythondev_help_Noemi_2017-06-22T17:05:07.215689
1,498,151,107.215689
82,863
pythondev
help
You also need `self` as an arg to class methods (which is how those will be treated)
2017-06-22T17:06:00.232332
Beula
pythondev_help_Beula_2017-06-22T17:06:00.232332
1,498,151,160.232332
82,864
pythondev
help
Ahh, adding self worked
2017-06-22T17:06:58.250884
Noemi
pythondev_help_Noemi_2017-06-22T17:06:58.250884
1,498,151,218.250884
82,865
pythondev
help
:taco: <@Beula>
2017-06-22T17:07:20.258043
Noemi
pythondev_help_Noemi_2017-06-22T17:07:20.258043
1,498,151,240.258043
82,866
pythondev
help
:pacman:
2017-06-22T17:07:24.259298
Beula
pythondev_help_Beula_2017-06-22T17:07:24.259298
1,498,151,244.259298
82,867
pythondev
help
Which of course is there in the actual test classes I've got written, forgot to include them in the sample
2017-06-22T17:08:01.271366
Noemi
pythondev_help_Noemi_2017-06-22T17:08:01.271366
1,498,151,281.271366
82,868
pythondev
help
Does anyone know the problem I'm dealing with?
2017-06-22T21:19:57.185676
Marcela
pythondev_help_Marcela_2017-06-22T21:19:57.185676
1,498,166,397.185676
82,869
pythondev
help
It's been keeping me from making progress
2017-06-22T21:20:03.186723
Marcela
pythondev_help_Marcela_2017-06-22T21:20:03.186723
1,498,166,403.186723
82,870
pythondev
help
<@Marcela> we have a channel dedicated to windows (<#C5XHHMXHB|os_windows>). It's small, but growing. A large portion of the community isn't on windows (or those that are are a bit quieter) - so we are trying to gather that knowledge there.
2017-06-22T21:26:13.235246
Beula
pythondev_help_Beula_2017-06-22T21:26:13.235246
1,498,166,773.235246
82,871
pythondev
help
Can you list the contents of the `requirements.txt`?
2017-06-22T21:27:02.241860
Beula
pythondev_help_Beula_2017-06-22T21:27:02.241860
1,498,166,822.24186
82,872
pythondev
help
Yes
2017-06-22T21:27:27.245258
Marcela
pythondev_help_Marcela_2017-06-22T21:27:27.245258
1,498,166,847.245258
82,873
pythondev
help
and i added that channel
2017-06-22T21:27:51.248274
Marcela
pythondev_help_Marcela_2017-06-22T21:27:51.248274
1,498,166,871.248274
82,874
pythondev
help
I was wondering if maybe I should just install a Ubuntu terminal and use that as my environment? I think I've seen someone do that before but I'm not sure. I would rather avoid that and get it working on my Windows though
2017-06-22T21:28:17.251834
Marcela
pythondev_help_Marcela_2017-06-22T21:28:17.251834
1,498,166,897.251834
82,875
pythondev
help
Did you catch which dependency this error pops up under? My guess would be `cython`
2017-06-22T21:35:06.306444
Beula
pythondev_help_Beula_2017-06-22T21:35:06.306444
1,498,167,306.306444
82,876
pythondev
help
yes
2017-06-22T21:46:40.395514
Marcela
pythondev_help_Marcela_2017-06-22T21:46:40.395514
1,498,168,000.395514
82,877
pythondev
help
I believe it is Cython
2017-06-22T21:46:41.395754
Marcela
pythondev_help_Marcela_2017-06-22T21:46:41.395754
1,498,168,001.395754
82,878
pythondev
help
well
2017-06-22T21:47:04.398661
Marcela
pythondev_help_Marcela_2017-06-22T21:47:04.398661
1,498,168,024.398661
82,879
pythondev
help
it's running cl.exe
2017-06-22T21:47:07.399040
Marcela
pythondev_help_Marcela_2017-06-22T21:47:07.399040
1,498,168,027.39904
82,880
pythondev
help
I'm not sure what for
2017-06-22T21:47:09.399277
Marcela
pythondev_help_Marcela_2017-06-22T21:47:09.399277
1,498,168,029.399277
82,881
pythondev
help
actually it might be 'bitfield'
2017-06-22T21:47:29.401803
Marcela
pythondev_help_Marcela_2017-06-22T21:47:29.401803
1,498,168,049.401803
82,882
pythondev
help
<@Marcela> <https://github.com/cython/cython/wiki/InstallingOnWindows>
2017-06-22T21:47:45.403815
Collette
pythondev_help_Collette_2017-06-22T21:47:45.403815
1,498,168,065.403815
82,883
pythondev
help
looks like bitfield?
2017-06-22T21:48:26.409172
Marcela
pythondev_help_Marcela_2017-06-22T21:48:26.409172
1,498,168,106.409172
82,884
pythondev
help
It looks like you may be using anaconda? If so, I think they have pre-compiled everything for you
2017-06-22T21:52:47.442773
Beula
pythondev_help_Beula_2017-06-22T21:52:47.442773
1,498,168,367.442773
82,885
pythondev
help
I use unix for a reason...
2017-06-22T21:52:53.443722
Beula
pythondev_help_Beula_2017-06-22T21:52:53.443722
1,498,168,373.443722
82,886
pythondev
help
yes, i was wondering, could anaconda be the issue here???
2017-06-22T21:53:25.447797
Marcela
pythondev_help_Marcela_2017-06-22T21:53:25.447797
1,498,168,405.447797
82,887
pythondev
help
do i need to install a separate python, and use a virtualenv for that
2017-06-22T21:53:39.449666
Marcela
pythondev_help_Marcela_2017-06-22T21:53:39.449666
1,498,168,419.449666
82,888
pythondev
help
I am not sure, but I think instead of `pip install -r requirements.txt` -&gt; maybe use the anaconda packages ¯\_(ツ)_/¯
2017-06-22T21:53:56.451914
Beula
pythondev_help_Beula_2017-06-22T21:53:56.451914
1,498,168,436.451914
82,889
pythondev
help
mmmm
2017-06-22T21:54:04.452929
Marcela
pythondev_help_Marcela_2017-06-22T21:54:04.452929
1,498,168,444.452929
82,890
pythondev
help
yea, you’ll need to see if anaconda has it in their package manager.
2017-06-22T23:17:26.040691
Johana
pythondev_help_Johana_2017-06-22T23:17:26.040691
1,498,173,446.040691
82,891
pythondev
help
<https://gist.github.com/luiscape/19d2d73a8c7b59411a2fb73a697f5ed4>
2017-06-22T23:18:40.048111
Johana
pythondev_help_Johana_2017-06-22T23:18:40.048111
1,498,173,520.048111
82,892
pythondev
help
this might help :point_up:
2017-06-22T23:19:06.050956
Johana
pythondev_help_Johana_2017-06-22T23:19:06.050956
1,498,173,546.050956
82,893
pythondev
help
Coming at this about 6 hours late, but any C/C++ process that is trying to #include &lt;io.h&gt; or &lt;unistd.h&gt; isn't configured properly for Windows. Arguably that's a flaw with the packages setup process but it also means there is usually a prebuilt lib somewhere online.
2017-06-23T04:50:00.887252
Gabriele
pythondev_help_Gabriele_2017-06-23T04:50:00.887252
1,498,193,400.887252
82,894
pythondev
help
<@Gabriele> doesn't MinGW have `unistd.h`?
2017-06-23T05:18:34.296095
Suellen
pythondev_help_Suellen_2017-06-23T05:18:34.296095
1,498,195,114.296095
82,895
pythondev
help
<@Suellen> Probably, but it's not 2002 any more
2017-06-23T05:19:29.309069
Gabriele
pythondev_help_Gabriele_2017-06-23T05:19:29.309069
1,498,195,169.309069
82,896
pythondev
help
what do you mean? :confused:
2017-06-23T05:19:39.311286
Suellen
pythondev_help_Suellen_2017-06-23T05:19:39.311286
1,498,195,179.311286
82,897
pythondev
help
MinGW is what people used on Windows when Visual C++ cost money and there was no other decent alternative
2017-06-23T05:19:58.315453
Gabriele
pythondev_help_Gabriele_2017-06-23T05:19:58.315453
1,498,195,198.315453
82,898
pythondev
help
VC can be used without tearing hair out?
2017-06-23T05:20:05.317265
Suellen
pythondev_help_Suellen_2017-06-23T05:20:05.317265
1,498,195,205.317265
82,899
pythondev
help
Yes, unless you prefer gcc, in which case no
2017-06-23T05:20:17.320107
Gabriele
pythondev_help_Gabriele_2017-06-23T05:20:17.320107
1,498,195,217.320107
82,900
pythondev
help
well I'm glad that's finally so
2017-06-23T05:20:21.320970
Suellen
pythondev_help_Suellen_2017-06-23T05:20:21.320970
1,498,195,221.32097
82,901
pythondev
help
hello mike
2017-06-23T12:13:15.327122
Marcela
pythondev_help_Marcela_2017-06-23T12:13:15.327122
1,498,219,995.327122
82,902