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
Windows 10 and I believe it was already install but updated after running get-pip.py on my desktop
2017-11-13T16:24:03.000110
Louie
pythondev_help_Louie_2017-11-13T16:24:03.000110
1,510,590,243.00011
100,203
pythondev
help
<https://pastebin.com/iEqLSDcG> For my friend this throws the error "int is not callable" at line 9, using Python 3.4.5. When I run the code in Python 3.6.1 I don't get an error. Is this a problem with the compiler?
2017-11-13T17:02:59.000037
Thomasina
pythondev_help_Thomasina_2017-11-13T17:02:59.000037
1,510,592,579.000037
100,204
pythondev
help
<@Ok> there is a <#C22DMH61M|devops> channel that you might get more traction in
2017-11-13T17:03:27.000234
Seema
pythondev_help_Seema_2017-11-13T17:03:27.000234
1,510,592,607.000234
100,205
pythondev
help
Can u share me the link <@Seema>
2017-11-13T17:04:06.000539
Ok
pythondev_help_Ok_2017-11-13T17:04:06.000539
1,510,592,646.000539
100,206
pythondev
help
it's in the channel list, and if you click on the hashtag it will take you there (depending)
2017-11-13T17:05:15.000023
Seema
pythondev_help_Seema_2017-11-13T17:05:15.000023
1,510,592,715.000023
100,207
pythondev
help
I'm trying to get a docker container going using gunicorn
2017-11-13T17:09:09.000382
Marcelina
pythondev_help_Marcelina_2017-11-13T17:09:09.000382
1,510,592,949.000382
100,208
pythondev
help
I would just serve using the gunicorn program itself
2017-11-13T17:09:27.000295
Marcelina
pythondev_help_Marcelina_2017-11-13T17:09:27.000295
1,510,592,967.000295
100,209
pythondev
help
But I'm trying to redirect to 443
2017-11-13T17:09:35.000127
Marcelina
pythondev_help_Marcelina_2017-11-13T17:09:35.000127
1,510,592,975.000127
100,210
pythondev
help
Which means adding nginx
2017-11-13T17:09:39.000560
Marcelina
pythondev_help_Marcelina_2017-11-13T17:09:39.000560
1,510,592,979.00056
100,211
pythondev
help
So I added nginx
2017-11-13T17:09:42.000286
Marcelina
pythondev_help_Marcelina_2017-11-13T17:09:42.000286
1,510,592,982.000286
100,212
pythondev
help
But most of the tutorials I see use systemctl, but docker does not have it
2017-11-13T17:10:03.000495
Marcelina
pythondev_help_Marcelina_2017-11-13T17:10:03.000495
1,510,593,003.000495
100,213
pythondev
help
What is the preferred method of running gunicorn inside a docker container?
2017-11-13T17:10:28.000567
Marcelina
pythondev_help_Marcelina_2017-11-13T17:10:28.000567
1,510,593,028.000567
100,214
pythondev
help
I'm using flask + gunicorn atm
2017-11-13T17:11:18.000289
Marcelina
pythondev_help_Marcelina_2017-11-13T17:11:18.000289
1,510,593,078.000289
100,215
pythondev
help
It seems ridiculous to add so many moving parts
2017-11-13T17:12:56.000174
Marcelina
pythondev_help_Marcelina_2017-11-13T17:12:56.000174
1,510,593,176.000174
100,216
pythondev
help
When gunicorn just works
2017-11-13T17:13:00.000561
Marcelina
pythondev_help_Marcelina_2017-11-13T17:13:00.000561
1,510,593,180.000561
100,217
pythondev
help
<@Marcelina> There is no `systemctl` but there is `service`
2017-11-13T17:21:39.000571
Marilyn
pythondev_help_Marilyn_2017-11-13T17:21:39.000571
1,510,593,699.000571
100,218
pythondev
help
Right, so I could make gunicorn a service I suppose
2017-11-13T17:21:56.000084
Marcelina
pythondev_help_Marcelina_2017-11-13T17:21:56.000084
1,510,593,716.000084
100,219
pythondev
help
You should be able to do something similar to `service gunicorn start`. Usually when I'm building containers that require a service to run at the beginning (such as apache or nginx) I will add a `entry.sh` script which will contain the service start command and use that as the entrypoint for the image
2017-11-13T17:23:45.000222
Marilyn
pythondev_help_Marilyn_2017-11-13T17:23:45.000222
1,510,593,825.000222
100,220
pythondev
help
Right - hmm - I think I've been overcomplicating
2017-11-13T17:24:07.000620
Marcelina
pythondev_help_Marcelina_2017-11-13T17:24:07.000620
1,510,593,847.00062
100,221
pythondev
help
gimme a minute
2017-11-13T17:24:10.000124
Marcelina
pythondev_help_Marcelina_2017-11-13T17:24:10.000124
1,510,593,850.000124
100,222
pythondev
help
:slightly_smiling_face:
2017-11-13T17:24:11.000209
Marcelina
pythondev_help_Marcelina_2017-11-13T17:24:11.000209
1,510,593,851.000209
100,223
pythondev
help
easy to do that :smile:
2017-11-13T17:24:17.000431
Meg
pythondev_help_Meg_2017-11-13T17:24:17.000431
1,510,593,857.000431
100,224
pythondev
help
That works for the most part, some weird stuff
2017-11-13T17:31:57.000266
Marcelina
pythondev_help_Marcelina_2017-11-13T17:31:57.000266
1,510,594,317.000266
100,225
pythondev
help
On localhost, I don't want to rewrite to SSL
2017-11-13T17:32:08.000413
Marcelina
pythondev_help_Marcelina_2017-11-13T17:32:08.000413
1,510,594,328.000413
100,226
pythondev
help
But I'm getting a redirect to the primary domain even through gunicorn is showing 200s rather than 301s
2017-11-13T17:32:40.000073
Marcelina
pythondev_help_Marcelina_2017-11-13T17:32:40.000073
1,510,594,360.000073
100,227
pythondev
help
hrms
2017-11-13T17:32:41.000095
Marcelina
pythondev_help_Marcelina_2017-11-13T17:32:41.000095
1,510,594,361.000095
100,228
pythondev
help
Ugh
2017-11-13T17:32:57.000236
Marcelina
pythondev_help_Marcelina_2017-11-13T17:32:57.000236
1,510,594,377.000236
100,229
pythondev
help
I hate caching
2017-11-13T17:32:59.000316
Marcelina
pythondev_help_Marcelina_2017-11-13T17:32:59.000316
1,510,594,379.000316
100,230
pythondev
help
nm
2017-11-13T17:33:01.000049
Marcelina
pythondev_help_Marcelina_2017-11-13T17:33:01.000049
1,510,594,381.000049
100,231
pythondev
help
Has anyone used DPKT before?
2017-11-13T18:13:40.000167
Myong
pythondev_help_Myong_2017-11-13T18:13:40.000167
1,510,596,820.000167
100,232
pythondev
help
basically attempting to read a giant .pcap that is zipped
2017-11-13T18:21:27.000383
Myong
pythondev_help_Myong_2017-11-13T18:21:27.000383
1,510,597,287.000383
100,233
pythondev
help
Anyone have any idea? :thinking_face:
2017-11-13T18:42:16.000269
Thomasina
pythondev_help_Thomasina_2017-11-13T18:42:16.000269
1,510,598,536.000269
100,234
pythondev
help
<@Thomasina> there's no `int()` on line 9
2017-11-13T18:43:16.000111
Collette
pythondev_help_Collette_2017-11-13T18:43:16.000111
1,510,598,596.000111
100,235
pythondev
help
I assume your friend re-assigned `str` or (much likely) `len` to a number above that snippet
2017-11-13T18:44:02.000201
Collette
pythondev_help_Collette_2017-11-13T18:44:02.000201
1,510,598,642.000201
100,236
pythondev
help
<@Thomasina> the code is working__ no errors.. perhaps your friend fixed the error..
2017-11-13T18:55:42.000173
Cammy
pythondev_help_Cammy_2017-11-13T18:55:42.000173
1,510,599,342.000173
100,237
pythondev
help
I'm 90% sure it just returns the month
2017-11-13T19:00:46.000162
Riva
pythondev_help_Riva_2017-11-13T19:00:46.000162
1,510,599,646.000162
100,238
pythondev
help
it does. thx legacy code
2017-11-13T19:04:53.000228
Riva
pythondev_help_Riva_2017-11-13T19:04:53.000228
1,510,599,893.000228
100,239
pythondev
help
<@Thomasina> as <@Collette> says, your friend probably reassigned it to something else.
2017-11-14T04:22:55.000389
Vada
pythondev_help_Vada_2017-11-14T04:22:55.000389
1,510,633,375.000389
100,240
pythondev
help
<@Myong> <https://github.com/otherwiseguy/yappcap>
2017-11-14T05:57:17.000505
Ciera
pythondev_help_Ciera_2017-11-14T05:57:17.000505
1,510,639,037.000505
100,241
pythondev
help
(not sure what it's worth)
2017-11-14T05:57:53.000501
Ciera
pythondev_help_Ciera_2017-11-14T05:57:53.000501
1,510,639,073.000501
100,242
pythondev
help
I'm currently using the 'reprint' module to print and update text in place. However, when I add escape codes for colors i.e. output[0] = '\033[94m' + "some text" it's messing up the formatting of the text ( lines are wrapping + all sorts of ugliness ). if i remove the escape codes for color, all is perfect. Anyone fami...
2017-11-14T07:01:40.000154
Wonda
pythondev_help_Wonda_2017-11-14T07:01:40.000154
1,510,642,900.000154
100,243
pythondev
help
gah, figured it out. Ansi escape sequences add to the length of the string but don't have characters, so throws out the alignment.
2017-11-14T07:59:57.000106
Wonda
pythondev_help_Wonda_2017-11-14T07:59:57.000106
1,510,646,397.000106
100,244
pythondev
help
Hey people, I use flask-cors, but can't seem to get it to work, I can't make POST requests from my client. What am I doing wrong here?
2017-11-14T08:12:01.000297
Carroll
pythondev_help_Carroll_2017-11-14T08:12:01.000297
1,510,647,121.000297
100,245
pythondev
help
strange, when i last used heroku, it handled CORS for me? i never had to set it
2017-11-14T08:17:27.000283
Toby
pythondev_help_Toby_2017-11-14T08:17:27.000283
1,510,647,447.000283
100,246
pythondev
help
Yea it's very strange
2017-11-14T08:17:42.000005
Carroll
pythondev_help_Carroll_2017-11-14T08:17:42.000005
1,510,647,462.000005
100,247
pythondev
help
It works fine for GET methods
2017-11-14T08:17:50.000248
Carroll
pythondev_help_Carroll_2017-11-14T08:17:50.000248
1,510,647,470.000248
100,248
pythondev
help
It doesn't let me POST from JS though
2017-11-14T08:17:57.000507
Carroll
pythondev_help_Carroll_2017-11-14T08:17:57.000507
1,510,647,477.000507
100,249
pythondev
help
Using Postman is fine
2017-11-14T08:18:01.000227
Carroll
pythondev_help_Carroll_2017-11-14T08:18:01.000227
1,510,647,481.000227
100,250
pythondev
help
but postman (from my experience) can self add headers and things to make it compatible
2017-11-14T08:20:49.000094
Toby
pythondev_help_Toby_2017-11-14T08:20:49.000094
1,510,647,649.000094
100,251
pythondev
help
Yea
2017-11-14T08:20:56.000258
Carroll
pythondev_help_Carroll_2017-11-14T08:20:56.000258
1,510,647,656.000258
100,252
pythondev
help
Doesn't let me
2017-11-14T08:25:19.000467
Carroll
pythondev_help_Carroll_2017-11-14T08:25:19.000467
1,510,647,919.000467
100,253
pythondev
help
on your client, you need to add the header before you make the request
2017-11-14T08:26:27.000195
Meg
pythondev_help_Meg_2017-11-14T08:26:27.000195
1,510,647,987.000195
100,254
pythondev
help
for some reason, that lib doesn’t seem to be doing its job
2017-11-14T08:26:48.000493
Meg
pythondev_help_Meg_2017-11-14T08:26:48.000493
1,510,648,008.000493
100,255
pythondev
help
Yea not sure
2017-11-14T08:28:08.000190
Carroll
pythondev_help_Carroll_2017-11-14T08:28:08.000190
1,510,648,088.00019
100,256
pythondev
help
Trying something now
2017-11-14T08:28:12.000166
Carroll
pythondev_help_Carroll_2017-11-14T08:28:12.000166
1,510,648,092.000166
100,257
pythondev
help
<@Meg> You know any better lib?
2017-11-14T08:34:22.000594
Carroll
pythondev_help_Carroll_2017-11-14T08:34:22.000594
1,510,648,462.000594
100,258
pythondev
help
This one seems to be meh
2017-11-14T08:34:28.000378
Carroll
pythondev_help_Carroll_2017-11-14T08:34:28.000378
1,510,648,468.000378
100,259
pythondev
help
I don’t know flask, sorry
2017-11-14T08:34:33.000364
Meg
pythondev_help_Meg_2017-11-14T08:34:33.000364
1,510,648,473.000364
100,260
pythondev
help
django has a pretty good one with <https://github.com/ottoyiu/django-cors-headers>
2017-11-14T08:34:58.000410
Meg
pythondev_help_Meg_2017-11-14T08:34:58.000410
1,510,648,498.00041
100,261
pythondev
help
might want to post in <#C0LN2AD7T|flask>
2017-11-14T08:35:14.000470
Meg
pythondev_help_Meg_2017-11-14T08:35:14.000470
1,510,648,514.00047
100,262
pythondev
help
I'm just gonna add the headers manually from the client
2017-11-14T08:35:32.000012
Carroll
pythondev_help_Carroll_2017-11-14T08:35:32.000012
1,510,648,532.000012
100,263
pythondev
help
Yea
2017-11-14T08:40:41.000055
Carroll
pythondev_help_Carroll_2017-11-14T08:40:41.000055
1,510,648,841.000055
100,264
pythondev
help
Doesn't work :disappointed:
2017-11-14T08:40:46.000144
Carroll
pythondev_help_Carroll_2017-11-14T08:40:46.000144
1,510,648,846.000144
100,265
pythondev
help
can you confirm the header is actually set?
2017-11-14T08:41:14.000100
Meg
pythondev_help_Meg_2017-11-14T08:41:14.000100
1,510,648,874.0001
100,266
pythondev
help
in browser dev tools
2017-11-14T08:41:23.000110
Meg
pythondev_help_Meg_2017-11-14T08:41:23.000110
1,510,648,883.00011
100,267
pythondev
help
It's not
2017-11-14T08:42:06.000526
Carroll
pythondev_help_Carroll_2017-11-14T08:42:06.000526
1,510,648,926.000526
100,268
pythondev
help
Hmm why isn't it set
2017-11-14T08:49:35.000084
Carroll
pythondev_help_Carroll_2017-11-14T08:49:35.000084
1,510,649,375.000084
100,269
pythondev
help
does it work at least locally?
2017-11-14T08:52:55.000515
Suellen
pythondev_help_Suellen_2017-11-14T08:52:55.000515
1,510,649,575.000515
100,270
pythondev
help
Don't think so
2017-11-14T08:53:42.000065
Carroll
pythondev_help_Carroll_2017-11-14T08:53:42.000065
1,510,649,622.000065
100,271
pythondev
help
set it before adding resources
2017-11-14T08:54:05.000362
Suellen
pythondev_help_Suellen_2017-11-14T08:54:05.000362
1,510,649,645.000362
100,272
pythondev
help
Did
2017-11-14T08:54:11.000066
Carroll
pythondev_help_Carroll_2017-11-14T08:54:11.000066
1,510,649,651.000066
100,273
pythondev
help
`CORS(app, resources={r"/*": {"origins": "*"}})` before `api.add_resource`
2017-11-14T08:54:15.000092
Suellen
pythondev_help_Suellen_2017-11-14T08:54:15.000092
1,510,649,655.000092
100,274
pythondev
help
alright then :]
2017-11-14T08:54:22.000344
Suellen
pythondev_help_Suellen_2017-11-14T08:54:22.000344
1,510,649,662.000344
100,275
pythondev
help
Will test that little snippet you gave me there :stuck_out_tongue:
2017-11-14T08:55:12.000591
Carroll
pythondev_help_Carroll_2017-11-14T08:55:12.000591
1,510,649,712.000591
100,276
pythondev
help
&gt; If things aren’t working as you expect, enable logging to help understand what is going on under the hood, and why. logging.getLogger('flask_cors').level = logging.DEBUG
2017-11-14T08:55:34.000038
Suellen
pythondev_help_Suellen_2017-11-14T08:55:34.000038
1,510,649,734.000038
100,277
pythondev
help
might wanna try that too
2017-11-14T08:55:38.000176
Suellen
pythondev_help_Suellen_2017-11-14T08:55:38.000176
1,510,649,738.000176
100,278
pythondev
help
Something is just broken
2017-11-14T09:00:22.000427
Carroll
pythondev_help_Carroll_2017-11-14T09:00:22.000427
1,510,650,022.000427
100,279
pythondev
help
Not sure what or why
2017-11-14T09:00:26.000702
Carroll
pythondev_help_Carroll_2017-11-14T09:00:26.000702
1,510,650,026.000702
100,280
pythondev
help
I'll check this out later
2017-11-14T09:00:32.000652
Carroll
pythondev_help_Carroll_2017-11-14T09:00:32.000652
1,510,650,032.000652
100,281
pythondev
help
&gt; Not sure what or why Well try to debug it, guesses will only take you so far
2017-11-14T09:01:28.000512
Suellen
pythondev_help_Suellen_2017-11-14T09:01:28.000512
1,510,650,088.000512
100,282
pythondev
help
Ye
2017-11-14T09:08:39.000195
Carroll
pythondev_help_Carroll_2017-11-14T09:08:39.000195
1,510,650,519.000195
100,283
pythondev
help
Anyone use the hangups library to make a google hangouts bot?
2017-11-14T11:48:44.000134
Lory
pythondev_help_Lory_2017-11-14T11:48:44.000134
1,510,660,124.000134
100,284
pythondev
help
I think they discontinued hangouts API
2017-11-14T12:22:05.000320
Ciera
pythondev_help_Ciera_2017-11-14T12:22:05.000320
1,510,662,125.00032
100,285
pythondev
help
Getting the following error message from Apashe httpd upon upload request page. I see that it is getting the wrong keyword in the connector for upload but the __init__ but having issues locating the __init__ for uploads. I am able to see that on the Server the files are being uploaded to the directory. Anyone have any ...
2017-11-14T13:30:19.000555
Chong
pythondev_help_Chong_2017-11-14T13:30:19.000555
1,510,666,219.000555
100,286
pythondev
help
Hey guys, I got a quick and probably simple issue at the moment. I'm writing a program to process .pcapng files to look at the packet data. The program has time frames which are given a timeout time. This timeout time is checked every time a new packet is read. The issue I'm having is, the .pcapng `timestamp` gives a p...
2017-11-14T15:14:35.000413
Myong
pythondev_help_Myong_2017-11-14T15:14:35.000413
1,510,672,475.000413
100,287
pythondev
help
So basically comparing two floats to each other isn't working properly
2017-11-14T15:14:51.000091
Myong
pythondev_help_Myong_2017-11-14T15:14:51.000091
1,510,672,491.000091
100,288
pythondev
help
have you tried using `Decimal`?
2017-11-14T15:19:46.000266
Marilyn
pythondev_help_Marilyn_2017-11-14T15:19:46.000266
1,510,672,786.000266
100,289
pythondev
help
Nevermind it works now.
2017-11-14T15:19:59.000061
Myong
pythondev_help_Myong_2017-11-14T15:19:59.000061
1,510,672,799.000061
100,290
pythondev
help
:thumbsup:
2017-11-14T15:20:05.000299
Marilyn
pythondev_help_Marilyn_2017-11-14T15:20:05.000299
1,510,672,805.000299
100,291
pythondev
help
Thoughts on this? Like what they mention about gotchas in the comments? <https://www.reddit.com/r/Python/comments/7cwsbv/til_python_package_metadata_can_be_defined_in/>
2017-11-14T16:20:06.000187
Bruno
pythondev_help_Bruno_2017-11-14T16:20:06.000187
1,510,676,406.000187
100,292
pythondev
help
Seems like the discussed side effects about sdists wouldn't be an issue if your not making a general library but more of a plug-in setup where each plug-in ( like for Django or flask) is a module.
2017-11-14T16:23:03.000341
Bruno
pythondev_help_Bruno_2017-11-14T16:23:03.000341
1,510,676,583.000341
100,293
pythondev
help
can I pass in a tuple of ints to `sorted` as the `key` to sort by?
2017-11-14T16:36:41.000328
Lory
pythondev_help_Lory_2017-11-14T16:36:41.000328
1,510,677,401.000328
100,294
pythondev
help
how would this work?
2017-11-14T16:37:24.000573
Suellen
pythondev_help_Suellen_2017-11-14T16:37:24.000573
1,510,677,444.000573
100,295
pythondev
help
I have a list of dicts and each dict has a filename made of some identifier followed by a date, I want to group them together in ascending order first by their id, then their year, then their month and then their day so I am using a regex to split the various pieces up into groups and then saving those out as a tuple w...
2017-11-14T16:39:26.000439
Lory
pythondev_help_Lory_2017-11-14T16:39:26.000439
1,510,677,566.000439
100,296
pythondev
help
if that makes sense?
2017-11-14T16:39:30.000655
Lory
pythondev_help_Lory_2017-11-14T16:39:30.000655
1,510,677,570.000655
100,297
pythondev
help
that tuple is then used as the key, ie ` rows = sorted(files, key=lambda k:k['parsed'])`
2017-11-14T16:40:36.000208
Lory
pythondev_help_Lory_2017-11-14T16:40:36.000208
1,510,677,636.000208
100,298
pythondev
help
where `files` is just a dict with a filename, a parsed filename and a flag for if it's on disk or not
2017-11-14T16:41:08.000191
Lory
pythondev_help_Lory_2017-11-14T16:41:08.000191
1,510,677,668.000191
100,299
pythondev
help
If I understood you correctly - you can
2017-11-14T16:42:12.000429
Suellen
pythondev_help_Suellen_2017-11-14T16:42:12.000429
1,510,677,732.000429
100,300
pythondev
help
awesome...Thanks leovp
2017-11-14T16:44:09.000155
Lory
pythondev_help_Lory_2017-11-14T16:44:09.000155
1,510,677,849.000155
100,301
pythondev
help
anybody encounter this error when attempting to use pip in any way? I did some resarching and it looks like it has something to do with setuptools but I could be wrong
2017-11-14T17:27:10.000237
Chong
pythondev_help_Chong_2017-11-14T17:27:10.000237
1,510,680,430.000237
100,302