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
<https://i.imgur.com/5pFXFbR.jpg>
2018-01-12T11:38:22.000547
Floy
pythondev_help_Floy_2018-01-12T11:38:22.000547
1,515,757,102.000547
28,924
pythondev
help
<@Brande>, gotta say thanks for Hoare for coming up with nulls in the first place
2018-01-12T11:38:47.000300
Floy
pythondev_help_Floy_2018-01-12T11:38:47.000300
1,515,757,127.0003
28,925
pythondev
help
he called it his billion dollar mistake, IIRC
2018-01-12T11:38:56.000457
Floy
pythondev_help_Floy_2018-01-12T11:38:56.000457
1,515,757,136.000457
28,926
pythondev
help
hahah
2018-01-12T11:40:18.000918
Brande
pythondev_help_Brande_2018-01-12T11:40:18.000918
1,515,757,218.000918
28,927
pythondev
help
Thanks <@Brande>
2018-01-12T11:41:53.000448
Niesha
pythondev_help_Niesha_2018-01-12T11:41:53.000448
1,515,757,313.000448
28,928
pythondev
help
<@Floy> I cant even use `pip` from terminals anymore. seems destroyed
2018-01-12T11:43:57.000150
Isaura
pythondev_help_Isaura_2018-01-12T11:43:57.000150
1,515,757,437.00015
28,929
pythondev
help
`which pip` doesn’t show anything?
2018-01-12T11:44:31.000559
Floy
pythondev_help_Floy_2018-01-12T11:44:31.000559
1,515,757,471.000559
28,930
pythondev
help
It took me a little bit to understand the differences when I was starting out, but how I've come to think about it: `pip install &lt;package&gt;` will install to the system (which is why it sometimes/usually asks you to run as root). You don't usually want to mess w/ your system's files. Example: Doing a `python --ver...
2018-01-12T11:50:12.000834
Dominica
pythondev_help_Dominica_2018-01-12T11:50:12.000834
1,515,757,812.000834
28,931
pythondev
help
did you check the pip version number and if it matches up with the current version installed?
2018-01-12T11:56:08.000599
Titus
pythondev_help_Titus_2018-01-12T11:56:08.000599
1,515,758,168.000599
28,932
pythondev
help
```(env) $ python Python 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import youtube_dl &gt;&gt;&gt; (env) $ python manage.py shell Python 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5...
2018-01-12T12:01:40.000395
Lakita
pythondev_help_Lakita_2018-01-12T12:01:40.000395
1,515,758,500.000395
28,933
pythondev
help
I'm running Python and Django shell from the same location and in the same virtualenv
2018-01-12T12:02:06.000451
Lakita
pythondev_help_Lakita_2018-01-12T12:02:06.000451
1,515,758,526.000451
28,934
pythondev
help
you’re using 2.7.5, which is fairly old (6 years, IIRC)
2018-01-12T12:03:20.000011
Floy
pythondev_help_Floy_2018-01-12T12:03:20.000011
1,515,758,600.000011
28,935
pythondev
help
so youtube_dl might not be compatible
2018-01-12T12:03:32.000714
Floy
pythondev_help_Floy_2018-01-12T12:03:32.000714
1,515,758,612.000714
28,936
pythondev
help
yes, but it's the same interpreter, so why this is working in the first case?
2018-01-12T12:04:06.000194
Lakita
pythondev_help_Lakita_2018-01-12T12:04:06.000194
1,515,758,646.000194
28,937
pythondev
help
(I know it's old, but unfortunately cannot change it right now)
2018-01-12T12:04:23.000155
Lakita
pythondev_help_Lakita_2018-01-12T12:04:23.000155
1,515,758,663.000155
28,938
pythondev
help
hmm
2018-01-12T12:05:39.000110
Floy
pythondev_help_Floy_2018-01-12T12:05:39.000110
1,515,758,739.00011
28,939
pythondev
help
¯\_(ツ)_/¯
2018-01-12T12:06:42.000267
Floy
pythondev_help_Floy_2018-01-12T12:06:42.000267
1,515,758,802.000267
28,940
pythondev
help
that's strange : P
2018-01-12T12:07:47.000293
Lakita
pythondev_help_Lakita_2018-01-12T12:07:47.000293
1,515,758,867.000293
28,941
pythondev
help
yeah
2018-01-12T12:08:08.000149
Floy
pythondev_help_Floy_2018-01-12T12:08:08.000149
1,515,758,888.000149
28,942
pythondev
help
What’s manage.py (since that seems to be the difference between success and failure)
2018-01-12T12:16:47.000703
Celeste
pythondev_help_Celeste_2018-01-12T12:16:47.000703
1,515,759,407.000703
28,943
pythondev
help
the django start script
2018-01-12T12:19:15.000437
Floy
pythondev_help_Floy_2018-01-12T12:19:15.000437
1,515,759,555.000437
28,944
pythondev
help
does it happen to have from __future__ import unicode_literals in it, for example?
2018-01-12T12:19:15.000516
Celeste
pythondev_help_Celeste_2018-01-12T12:19:15.000516
1,515,759,555.000516
28,945
pythondev
help
what version of django are you using, <@Lakita>
2018-01-12T12:19:30.000038
Floy
pythondev_help_Floy_2018-01-12T12:19:30.000038
1,515,759,570.000038
28,946
pythondev
help
<@Lakita> What version of youtube_dl are you using because that looks like it imports unicode_literals (what <@Celeste>said)
2018-01-12T12:22:43.000307
Leanora
pythondev_help_Leanora_2018-01-12T12:22:43.000307
1,515,759,763.000307
28,947
pythondev
help
<https://github.com/rg3/youtube-dl/blob/950b5f296986ed0a2dd9feeb69dbb950592b6047/youtube_dl/version.py>
2018-01-12T12:22:45.000085
Leanora
pythondev_help_Leanora_2018-01-12T12:22:45.000085
1,515,759,765.000085
28,948
pythondev
help
it actually looks like it always has even from its first version
2018-01-12T12:24:03.000313
Leanora
pythondev_help_Leanora_2018-01-12T12:24:03.000313
1,515,759,843.000313
28,949
pythondev
help
so using that library is the issue
2018-01-12T12:24:18.000464
Leanora
pythondev_help_Leanora_2018-01-12T12:24:18.000464
1,515,759,858.000464
28,950
pythondev
help
any command that has pip fails
2018-01-12T12:39:44.000493
Isaura
pythondev_help_Isaura_2018-01-12T12:39:44.000493
1,515,760,784.000493
28,951
pythondev
help
I might have to remove pyopenssl distribution and reinstall it
2018-01-12T12:40:09.000044
Isaura
pythondev_help_Isaura_2018-01-12T12:40:09.000044
1,515,760,809.000044
28,952
pythondev
help
does `which pip` fail or echo something?
2018-01-12T12:40:12.000375
Brande
pythondev_help_Brande_2018-01-12T12:40:12.000375
1,515,760,812.000375
28,953
pythondev
help
`which pip` isn’t a pip command
2018-01-12T12:41:20.000254
Brande
pythondev_help_Brande_2018-01-12T12:41:20.000254
1,515,760,880.000254
28,954
pythondev
help
result: `/usr/bin/pip`
2018-01-12T12:41:43.000355
Isaura
pythondev_help_Isaura_2018-01-12T12:41:43.000355
1,515,760,903.000355
28,955
pythondev
help
&gt; result: `/usr/bin/pip` Thats the output <@Brande>
2018-01-12T12:42:32.000076
Isaura
pythondev_help_Isaura_2018-01-12T12:42:32.000076
1,515,760,952.000076
28,956
pythondev
help
YOu might only have pip installed inside the virtualenv, not globally
2018-01-12T12:42:39.000601
Porsha
pythondev_help_Porsha_2018-01-12T12:42:39.000601
1,515,760,959.000601
28,957
pythondev
help
it is global, it’s in `/usr/bin/pip`
2018-01-12T12:43:11.000330
Brande
pythondev_help_Brande_2018-01-12T12:43:11.000330
1,515,760,991.00033
28,958
pythondev
help
Yes, I use it before globally
2018-01-12T12:43:29.000128
Isaura
pythondev_help_Isaura_2018-01-12T12:43:29.000128
1,515,761,009.000128
28,959
pythondev
help
does `pip list` return anything?
2018-01-12T12:43:45.000365
Porsha
pythondev_help_Porsha_2018-01-12T12:43:45.000365
1,515,761,025.000365
28,960
pythondev
help
or `pip3 list`
2018-01-12T12:43:54.000383
Porsha
pythondev_help_Porsha_2018-01-12T12:43:54.000383
1,515,761,034.000383
28,961
pythondev
help
`pip --version ` should give you the full path and version
2018-01-12T12:45:25.000291
Porsha
pythondev_help_Porsha_2018-01-12T12:45:25.000291
1,515,761,125.000291
28,962
pythondev
help
<@Porsha> anything starting with pip command throws error
2018-01-12T12:45:31.000135
Isaura
pythondev_help_Isaura_2018-01-12T12:45:31.000135
1,515,761,131.000135
28,963
pythondev
help
What's the error msg?
2018-01-12T12:45:51.000439
Porsha
pythondev_help_Porsha_2018-01-12T12:45:51.000439
1,515,761,151.000439
28,964
pythondev
help
`SS_ST_INIT attributerror
2018-01-12T12:45:59.000297
Isaura
pythondev_help_Isaura_2018-01-12T12:45:59.000297
1,515,761,159.000297
28,965
pythondev
help
From SO: `$ sudo pip install -U pyopenssl`
2018-01-12T12:47:04.000704
Porsha
pythondev_help_Porsha_2018-01-12T12:47:04.000704
1,515,761,224.000704
28,966
pythondev
help
<https://stackoverflow.com/questions/43267157/python-attributeerror-module-object-has-no-attribute-ssl-st-init>
2018-01-12T12:47:20.000503
Porsha
pythondev_help_Porsha_2018-01-12T12:47:20.000503
1,515,761,240.000503
28,967
pythondev
help
Might be worth a look if you haven't already
2018-01-12T12:47:36.000051
Porsha
pythondev_help_Porsha_2018-01-12T12:47:36.000051
1,515,761,256.000051
28,968
pythondev
help
generally, you shouldn’t be running `pip` commands as root
2018-01-12T12:48:04.000038
Brande
pythondev_help_Brande_2018-01-12T12:48:04.000038
1,515,761,284.000038
28,969
pythondev
help
sudo is just admin, once pip follows it throws the same error `Python AttributeError: 'module' object has no attribute 'SSL_ST_INIT'`
2018-01-12T12:51:19.000290
Isaura
pythondev_help_Isaura_2018-01-12T12:51:19.000290
1,515,761,479.00029
28,970
pythondev
help
which is the same as root. don’t run `pip` with `sudo`
2018-01-12T12:52:06.000182
Brande
pythondev_help_Brande_2018-01-12T12:52:06.000182
1,515,761,526.000182
28,971
pythondev
help
any command that removes `pyopenssls` will be the way to go as it is, and reinstall
2018-01-12T12:52:33.000349
Isaura
pythondev_help_Isaura_2018-01-12T12:52:33.000349
1,515,761,553.000349
28,972
pythondev
help
`rm` commands
2018-01-12T12:52:46.000248
Isaura
pythondev_help_Isaura_2018-01-12T12:52:46.000248
1,515,761,566.000248
28,973
pythondev
help
`pip uninstall pyopenssl`
2018-01-12T12:52:55.000581
Brande
pythondev_help_Brande_2018-01-12T12:52:55.000581
1,515,761,575.000581
28,974
pythondev
help
still the same error
2018-01-12T12:53:07.000340
Isaura
pythondev_help_Isaura_2018-01-12T12:53:07.000340
1,515,761,587.00034
28,975
pythondev
help
the system must have been sick of pip commands now
2018-01-12T12:53:25.000149
Isaura
pythondev_help_Isaura_2018-01-12T12:53:25.000149
1,515,761,605.000149
28,976
pythondev
help
Hey guys, can someone please help me with understanding the answer provided for this question <https://stackoverflow.com/questions/48214761/is-it-safe-to-keep-a-state-in-flask-with-gunicorn?noredirect=1#comment83436502_48214761> Answer <https://stackoverflow.com/a/32825482/1334958> I can't understand how a race cond...
2018-01-12T12:53:37.000491
Maribel
pythondev_help_Maribel_2018-01-12T12:53:37.000491
1,515,761,617.000491
28,977
pythondev
help
a race condition can occur because there are no accessor/mutator protections in place for the global variables, hence them not being thread or process safe
2018-01-12T12:57:21.000187
Brande
pythondev_help_Brande_2018-01-12T12:57:21.000187
1,515,761,841.000187
28,978
pythondev
help
can you please advise on how to tackle this ?
2018-01-12T12:59:28.000309
Maribel
pythondev_help_Maribel_2018-01-12T12:59:28.000309
1,515,761,968.000309
28,979
pythondev
help
Keep global data somewhere else, like a database or in-memory storage like redis
2018-01-12T13:05:02.000522
Brande
pythondev_help_Brande_2018-01-12T13:05:02.000522
1,515,762,302.000522
28,980
pythondev
help
can I specify `--no-deps` in a requirements.txt?
2018-01-12T13:05:46.000276
Frankie
pythondev_help_Frankie_2018-01-12T13:05:46.000276
1,515,762,346.000276
28,981
pythondev
help
I tried `jsonfield&gt;=1.0.3 --install-option="--no-deps"`
2018-01-12T13:06:17.000661
Frankie
pythondev_help_Frankie_2018-01-12T13:06:17.000661
1,515,762,377.000661
28,982
pythondev
help
it attempts to install Django 2.0 anyway (in a Python2 environment)
2018-01-12T13:06:46.000515
Frankie
pythondev_help_Frankie_2018-01-12T13:06:46.000515
1,515,762,406.000515
28,983
pythondev
help
I already have redis but the problem is that the file sizes are very large and so deserialization takes a very long time which makes the latency terribly slow.
2018-01-12T13:07:34.000460
Maribel
pythondev_help_Maribel_2018-01-12T13:07:34.000460
1,515,762,454.00046
28,984
pythondev
help
you’re keep large files stored in global variables?
2018-01-12T13:08:13.000646
Brande
pythondev_help_Brande_2018-01-12T13:08:13.000646
1,515,762,493.000646
28,985
pythondev
help
I also tried an environment marker e.g. `jsonfield&gt;=1.0.3; python_version == '2.7'` but Django itself doesn't seem to know that it can't install under Python2 ``` ❯❯❯ pip install "Django&gt;=1.8.0;python_version == '2.7'" ⏎ Collect...
2018-01-12T13:14:02.000191
Frankie
pythondev_help_Frankie_2018-01-12T13:14:02.000191
1,515,762,842.000191
28,986
pythondev
help
yea I was thinking about that, the target here is to make ml models available for requests and sometimes the model size can grow from few kbs to 1 G at max.
2018-01-12T13:23:49.000131
Maribel
pythondev_help_Maribel_2018-01-12T13:23:49.000131
1,515,763,429.000131
28,987
pythondev
help
so weird... no idea what the problem is
2018-01-12T13:28:37.000446
Stefan
pythondev_help_Stefan_2018-01-12T13:28:37.000446
1,515,763,717.000446
28,988
pythondev
help
when I try to load `hug` in ipython it is giving different behavior (cannot be imported) vs just a normal python process
2018-01-12T13:29:18.000180
Stefan
pythondev_help_Stefan_2018-01-12T13:29:18.000180
1,515,763,758.00018
28,989
pythondev
help
`AttributeError: module 'asyncio' has no attribute 'ensure_future'`
2018-01-12T13:30:42.000063
Stefan
pythondev_help_Stefan_2018-01-12T13:30:42.000063
1,515,763,842.000063
28,990
pythondev
help
using the exact same python version of course
2018-01-12T13:30:48.000656
Stefan
pythondev_help_Stefan_2018-01-12T13:30:48.000656
1,515,763,848.000656
28,991
pythondev
help
yep i do exactly that with models in memory, unfortunately I cannot share how
2018-01-12T13:38:58.000363
Brande
pythondev_help_Brande_2018-01-12T13:38:58.000363
1,515,764,338.000363
28,992
pythondev
help
exactly what :smile: ? Putting the models in a local memory or using some external service ? Can you at least give any hint or a any material that could help with my research ?
2018-01-12T13:42:21.000093
Maribel
pythondev_help_Maribel_2018-01-12T13:42:21.000093
1,515,764,541.000093
28,993
pythondev
help
<@Stefan> if you do hug.__file__ are you getting exact same path?
2018-01-12T13:43:18.000481
Monroe
pythondev_help_Monroe_2018-01-12T13:43:18.000481
1,515,764,598.000481
28,994
pythondev
help
it fails to import
2018-01-12T13:43:29.000103
Stefan
pythondev_help_Stefan_2018-01-12T13:43:29.000103
1,515,764,609.000103
28,995
pythondev
help
local memory. dont use gevent
2018-01-12T13:43:35.000256
Brande
pythondev_help_Brande_2018-01-12T13:43:35.000256
1,515,764,615.000256
28,996
pythondev
help
sorry, right, huh...
2018-01-12T13:43:45.000060
Monroe
pythondev_help_Monroe_2018-01-12T13:43:45.000060
1,515,764,625.00006
28,997
pythondev
help
otherwise, i cant really discuss my work’s deployment of ML
2018-01-12T13:43:45.000139
Brande
pythondev_help_Brande_2018-01-12T13:43:45.000139
1,515,764,625.000139
28,998
pythondev
help
I'm assuming you've checked the sys.path, yea?
2018-01-12T13:44:01.000143
Monroe
pythondev_help_Monroe_2018-01-12T13:44:01.000143
1,515,764,641.000143
28,999
pythondev
help
does `import asyncio` works ?
2018-01-12T13:44:26.000220
Micki
pythondev_help_Micki_2018-01-12T13:44:26.000220
1,515,764,666.00022
29,000
pythondev
help
comparing the install paths to see that is indeed look for same module
2018-01-12T13:44:28.000017
Monroe
pythondev_help_Monroe_2018-01-12T13:44:28.000017
1,515,764,668.000017
29,001
pythondev
help
and what's the path of the module ?
2018-01-12T13:44:34.000754
Micki
pythondev_help_Micki_2018-01-12T13:44:34.000754
1,515,764,674.000754
29,002
pythondev
help
Hey guys, are there any libraries that will recursively serialize all the objects in an object so that the end result is a JSON object?
2018-01-12T14:10:52.000563
Charlette
pythondev_help_Charlette_2018-01-12T14:10:52.000563
1,515,766,252.000563
29,003
pythondev
help
I basically have a bunch of POD objects nested into eachotehr and I want a library that will take the root object, recurse through all of them and return something that's JSON serializable. If there's nothing off the shelf that does something liek this I can write it myself
2018-01-12T14:12:02.000525
Charlette
pythondev_help_Charlette_2018-01-12T14:12:02.000525
1,515,766,322.000525
29,004
pythondev
help
What's wrong with `json`?
2018-01-12T14:13:41.000352
Floy
pythondev_help_Floy_2018-01-12T14:13:41.000352
1,515,766,421.000352
29,005
pythondev
help
I have two options that I'm thinking about - disabling the updates and depend on CICD pipeline for updating. - use sync workers with no threading but this would degrade the throughput which will be accommodated by adding resources. This should eliminate the race condition possibility, right ?
2018-01-12T14:19:11.000103
Maribel
pythondev_help_Maribel_2018-01-12T14:19:11.000103
1,515,766,751.000103
29,006
pythondev
help
import json json.loads(obj.__dict__())
2018-01-12T14:22:08.000215
Malik
pythondev_help_Malik_2018-01-12T14:22:08.000215
1,515,766,928.000215
29,007
pythondev
help
yeah, #2 and depending on what framework youre in the model predictions are probably blocking anyway
2018-01-12T14:23:11.000198
Brande
pythondev_help_Brande_2018-01-12T14:23:11.000198
1,515,766,991.000198
29,008
pythondev
help
<@Micki> yea asyncio works
2018-01-12T14:26:50.000077
Stefan
pythondev_help_Stefan_2018-01-12T14:26:50.000077
1,515,767,210.000077
29,009
pythondev
help
<@Monroe> the sys.path diff is
2018-01-12T14:27:00.000535
Stefan
pythondev_help_Stefan_2018-01-12T14:27:00.000535
1,515,767,220.000535
29,010
pythondev
help
it just seems like such a weird bug
2018-01-12T14:28:40.000787
Stefan
pythondev_help_Stefan_2018-01-12T14:28:40.000787
1,515,767,320.000787
29,011
pythondev
help
ok, thanks a lot :slightly_smiling_face:
2018-01-12T14:29:02.000519
Maribel
pythondev_help_Maribel_2018-01-12T14:29:02.000519
1,515,767,342.000519
29,012
pythondev
help
ok so indeed thanks a lot dwsimmons.... my ipython version was double installed ~_~ 6.4 and the 5.4.1 egg... i guess i had used 5.4.1 to please emacs, but uninstall it specifically just fixed it
2018-01-12T14:33:58.000262
Stefan
pythondev_help_Stefan_2018-01-12T14:33:58.000262
1,515,767,638.000262
29,013
pythondev
help
still a miracle how it could lead to this bug
2018-01-12T14:34:08.000475
Stefan
pythondev_help_Stefan_2018-01-12T14:34:08.000475
1,515,767,648.000475
29,014
pythondev
help
no problem!
2018-01-12T14:34:43.000321
Brande
pythondev_help_Brande_2018-01-12T14:34:43.000321
1,515,767,683.000321
29,015
pythondev
help
<@Stefan> every now and then i forget your real name and wonder who in this group is writing Pascal :smile:
2018-01-12T14:35:11.000119
Brande
pythondev_help_Brande_2018-01-12T14:35:11.000119
1,515,767,711.000119
29,016
pythondev
help
yea, tbh im quite annoyed I chose "kootenpv" .... "pvkooten" would already help
2018-01-12T14:35:44.000037
Stefan
pythondev_help_Stefan_2018-01-12T14:35:44.000037
1,515,767,744.000037
29,017
pythondev
help
but wait <@Brande>, where does it show Pascal :stuck_out_tongue:?
2018-01-12T14:36:27.000401
Stefan
pythondev_help_Stefan_2018-01-12T14:36:27.000401
1,515,767,787.000401
29,018
pythondev
help
you can change it :wink:
2018-01-12T14:36:49.000088
Micki
pythondev_help_Micki_2018-01-12T14:36:49.000088
1,515,767,809.000088
29,019
pythondev
help
<@Stefan> in your full name
2018-01-12T14:38:11.000278
Brande
pythondev_help_Brande_2018-01-12T14:38:11.000278
1,515,767,891.000278
29,020
pythondev
help
maybe i should do a big refactor on the webz
2018-01-12T14:39:22.000091
Stefan
pythondev_help_Stefan_2018-01-12T14:39:22.000091
1,515,767,962.000091
29,021
pythondev
help
`pip install -U kootenpv`
2018-01-12T14:39:57.000165
Micki
pythondev_help_Micki_2018-01-12T14:39:57.000165
1,515,767,997.000165
29,022
pythondev
help
lol if only
2018-01-12T14:40:03.000130
Stefan
pythondev_help_Stefan_2018-01-12T14:40:03.000130
1,515,768,003.00013
29,023