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
Dinesh, as we've said many times that's not enough of a defined problem for anyone to work with
2019-02-06T07:07:36.122500
Jonas
pythondev_help_Jonas_2019-02-06T07:07:36.122500
1,549,436,856.1225
6,921
pythondev
help
It's akin to saying "it is not working"
2019-02-06T07:07:46.122900
Jonas
pythondev_help_Jonas_2019-02-06T07:07:46.122900
1,549,436,866.1229
6,922
pythondev
help
all prior state are getting executed
2019-02-06T07:07:59.123300
Micki
pythondev_help_Micki_2019-02-06T07:07:59.123300
1,549,436,879.1233
6,923
pythondev
help
_you_ need to debug into this and _narrow down_ the problem you are facing
2019-02-06T07:08:15.123900
Jonas
pythondev_help_Jonas_2019-02-06T07:08:15.123900
1,549,436,895.1239
6,924
pythondev
help
Which is not, and never really was, "my state machine is not working"
2019-02-06T07:08:41.124800
Jonas
pythondev_help_Jonas_2019-02-06T07:08:41.124800
1,549,436,921.1248
6,925
pythondev
help
thats what I asked I couldnt find info on how to debug other than logs
2019-02-06T07:08:45.125000
Micki
pythondev_help_Micki_2019-02-06T07:08:45.125000
1,549,436,925.125
6,926
pythondev
help
That's a better question to ask
2019-02-06T07:08:59.125500
Jonas
pythondev_help_Jonas_2019-02-06T07:08:59.125500
1,549,436,939.1255
6,927
pythondev
help
I'd debug it by adding prints everywhere initially
2019-02-06T07:09:08.125900
Jonas
pythondev_help_Jonas_2019-02-06T07:09:08.125900
1,549,436,948.1259
6,928
pythondev
help
If they don't get printed, then work out why
2019-02-06T07:09:15.126300
Jonas
pythondev_help_Jonas_2019-02-06T07:09:15.126300
1,549,436,955.1263
6,929
pythondev
help
thats what I did
2019-02-06T07:09:19.126400
Micki
pythondev_help_Micki_2019-02-06T07:09:19.126400
1,549,436,959.1264
6,930
pythondev
help
and realised that from thread state trigger is not getting called
2019-02-06T07:09:37.127200
Micki
pythondev_help_Micki_2019-02-06T07:09:37.127200
1,549,436,977.1272
6,931
pythondev
help
Perhaps the code is not being executed, so the prints are not being called
2019-02-06T07:09:45.127600
Jonas
pythondev_help_Jonas_2019-02-06T07:09:45.127600
1,549,436,985.1276
6,932
pythondev
help
and that is the problem
2019-02-06T07:09:47.127700
Micki
pythondev_help_Micki_2019-02-06T07:09:47.127700
1,549,436,987.1277
6,933
pythondev
help
Ok, so add more prints
2019-02-06T07:09:57.128400
Jonas
pythondev_help_Jonas_2019-02-06T07:09:57.128400
1,549,436,997.1284
6,934
pythondev
help
have you tried stepping through with a debugger as I suggested?
2019-02-06T07:10:00.128600
Karoline
pythondev_help_Karoline_2019-02-06T07:10:00.128600
1,549,437,000.1286
6,935
pythondev
help
Find out where the trigger should be called and work back from there
2019-02-06T07:10:15.129400
Jonas
pythondev_help_Jonas_2019-02-06T07:10:15.129400
1,549,437,015.1294
6,936
pythondev
help
Adding prints everywhere.
2019-02-06T07:10:19.129700
Jonas
pythondev_help_Jonas_2019-02-06T07:10:19.129700
1,549,437,019.1297
6,937
pythondev
help
that what I have been saying
2019-02-06T07:10:22.129800
Micki
pythondev_help_Micki_2019-02-06T07:10:22.129800
1,549,437,022.1298
6,938
pythondev
help
I have added prints everywhere
2019-02-06T07:10:45.130600
Micki
pythondev_help_Micki_2019-02-06T07:10:45.130600
1,549,437,045.1306
6,939
pythondev
help
right before the trigger log gets printed
2019-02-06T07:10:59.131100
Micki
pythondev_help_Micki_2019-02-06T07:10:59.131100
1,549,437,059.1311
6,940
pythondev
help
its in the code snippte I gave
2019-02-06T07:11:09.131400
Micki
pythondev_help_Micki_2019-02-06T07:11:09.131400
1,549,437,069.1314
6,941
pythondev
help
<@Karoline> I dont remember you suggested debugger
2019-02-06T07:11:42.132200
Micki
pythondev_help_Micki_2019-02-06T07:11:42.132200
1,549,437,102.1322
6,942
pythondev
help
Ok, so add more prints
2019-02-06T07:11:43.132300
Jonas
pythondev_help_Jonas_2019-02-06T07:11:43.132300
1,549,437,103.1323
6,943
pythondev
help
I have added in every state and thread
2019-02-06T07:11:59.132800
Micki
pythondev_help_Micki_2019-02-06T07:11:59.132800
1,549,437,119.1328
6,944
pythondev
help
more is where?
2019-02-06T07:12:05.133000
Micki
pythondev_help_Micki_2019-02-06T07:12:05.133000
1,549,437,125.133
6,945
pythondev
help
In c code I could use gdb
2019-02-06T07:12:20.133500
Micki
pythondev_help_Micki_2019-02-06T07:12:20.133500
1,549,437,140.1335
6,946
pythondev
help
More is wherever you have neglected to add them
2019-02-06T07:12:55.134300
Jonas
pythondev_help_Jonas_2019-02-06T07:12:55.134300
1,549,437,175.1343
6,947
pythondev
help
Ihave done basic debugging and research before coming to this channel for help
2019-02-06T07:13:08.135000
Micki
pythondev_help_Micki_2019-02-06T07:13:08.135000
1,549,437,188.135
6,948
pythondev
help
Using a debugger is helpful, if you use pycharm there is an amazing one built in
2019-02-06T07:13:19.135400
Jonas
pythondev_help_Jonas_2019-02-06T07:13:19.135400
1,549,437,199.1354
6,949
pythondev
help
But if you're new to pdb then it might be confusing.
2019-02-06T07:13:37.135900
Jonas
pythondev_help_Jonas_2019-02-06T07:13:37.135900
1,549,437,217.1359
6,950
pythondev
help
If you know the code that should be executed
2019-02-06T07:13:46.136200
Jonas
pythondev_help_Jonas_2019-02-06T07:13:46.136200
1,549,437,226.1362
6,951
pythondev
help
And you know where it should be called from
2019-02-06T07:13:53.136500
Jonas
pythondev_help_Jonas_2019-02-06T07:13:53.136500
1,549,437,233.1365
6,952
pythondev
help
Then the code that should call it is not being called. Work out why? Where is that code triggered from?
2019-02-06T07:14:10.137300
Jonas
pythondev_help_Jonas_2019-02-06T07:14:10.137300
1,549,437,250.1373
6,953
pythondev
help
yes and I have added logs everywhere I can
2019-02-06T07:14:19.137800
Micki
pythondev_help_Micki_2019-02-06T07:14:19.137800
1,549,437,259.1378
6,954
pythondev
help
there's also pdb, if you are familiar with gdb you will feel right at home
2019-02-06T07:14:22.137900
Karoline
pythondev_help_Karoline_2019-02-06T07:14:22.137900
1,549,437,262.1379
6,955
pythondev
help
pdb is built right into python, `import pdb; pdb.set_trace()`
2019-02-06T07:14:52.138800
Karoline
pythondev_help_Karoline_2019-02-06T07:14:52.138800
1,549,437,292.1388
6,956
pythondev
help
thats when I realised that trigger is not getting called from thread
2019-02-06T07:14:56.139000
Micki
pythondev_help_Micki_2019-02-06T07:14:56.139000
1,549,437,296.139
6,957
pythondev
help
I will try pdb
2019-02-06T07:15:12.139400
Micki
pythondev_help_Micki_2019-02-06T07:15:12.139400
1,549,437,312.1394
6,958
pythondev
help
I dont know how much more I can isolate the problem
2019-02-06T07:15:42.140000
Micki
pythondev_help_Micki_2019-02-06T07:15:42.140000
1,549,437,342.14
6,959
pythondev
help
since this is working codeI was suspecting some environment related issue which I couldnt find
2019-02-06T07:17:10.140700
Micki
pythondev_help_Micki_2019-02-06T07:17:10.140700
1,549,437,430.1407
6,960
pythondev
help
it's possible. drop into a debugger in both at the point behavior diverges and start dumping things to see what's different.
2019-02-06T07:17:42.141200
Karoline
pythondev_help_Karoline_2019-02-06T07:17:42.141200
1,549,437,462.1412
6,961
pythondev
help
sure. I will use debugger and see
2019-02-06T07:18:38.141600
Micki
pythondev_help_Micki_2019-02-06T07:18:38.141600
1,549,437,518.1416
6,962
pythondev
help
Ah… speaking of debuggers, can anyone share any thoughts on this situation? I have a Flask application that uses celery tasks running on a docker-compose environment. Often, after some period of inactivity, a request that attemps to schedule a new celery task hangs (no exception thrown, just retries forever) and I have...
2019-02-06T07:59:52.144800
Gregg
pythondev_help_Gregg_2019-02-06T07:59:52.144800
1,549,439,992.1448
6,963
pythondev
help
I tried reproducing this outside the docker-compose environment, but I get a different behavior (it does crash with an exception)… but it is not exactly as the docker image because of how OSX and homebrew are a pain to install an exact Python version
2019-02-06T08:01:07.146100
Gregg
pythondev_help_Gregg_2019-02-06T08:01:07.146100
1,549,440,067.1461
6,964
pythondev
help
you can try something like ptvsd
2019-02-06T08:01:44.146600
Karoline
pythondev_help_Karoline_2019-02-06T08:01:44.146600
1,549,440,104.1466
6,965
pythondev
help
but you can also use pdb as you might on the CLI
2019-02-06T08:02:18.147100
Karoline
pythondev_help_Karoline_2019-02-06T08:02:18.147100
1,549,440,138.1471
6,966
pythondev
help
not if you’re working in a separate worker, I think.
2019-02-06T08:04:09.147800
Hiroko
pythondev_help_Hiroko_2019-02-06T08:04:09.147800
1,549,440,249.1478
6,967
pythondev
help
`CELERY_ALWAYS_EAGER` or `TASK_ALWAYS_EAGER` needs to be `True`
2019-02-06T08:04:53.148700
Hiroko
pythondev_help_Hiroko_2019-02-06T08:04:53.148700
1,549,440,293.1487
6,968
pythondev
help
I am not familiar with ptvsd… it seems I need VS to attach to to it?
2019-02-06T08:04:55.148800
Gregg
pythondev_help_Gregg_2019-02-06T08:04:55.148800
1,549,440,295.1488
6,969
pythondev
help
Well, the hangup happens when scheduling the task, not on the worker
2019-02-06T08:05:26.149800
Gregg
pythondev_help_Gregg_2019-02-06T08:05:26.149800
1,549,440,326.1498
6,970
pythondev
help
are you on heroku?
2019-02-06T08:05:49.150000
Hiroko
pythondev_help_Hiroko_2019-02-06T08:05:49.150000
1,549,440,349.15
6,971
pythondev
help
or some other hosting provider that will pause instances if there’s some inactivity and takes some time to spin back up?
2019-02-06T08:06:09.150600
Hiroko
pythondev_help_Hiroko_2019-02-06T08:06:09.150600
1,549,440,369.1506
6,972
pythondev
help
No, it’s a local docker-compose
2019-02-06T08:06:20.150800
Gregg
pythondev_help_Gregg_2019-02-06T08:06:20.150800
1,549,440,380.1508
6,973
pythondev
help
I think some other visual debuggers might speak the protocol as well, but yeah it's primarily around visual studio code (which is free)
2019-02-06T08:06:44.150900
Karoline
pythondev_help_Karoline_2019-02-06T08:06:44.150900
1,549,440,404.1509
6,974
pythondev
help
personally I just use pdb everywhere.
2019-02-06T08:06:50.151100
Karoline
pythondev_help_Karoline_2019-02-06T08:06:50.151100
1,549,440,410.1511
6,975
pythondev
help
ok.
2019-02-06T08:07:06.151500
Hiroko
pythondev_help_Hiroko_2019-02-06T08:07:06.151500
1,549,440,426.1515
6,976
pythondev
help
what broker are you using?
2019-02-06T08:07:11.151700
Hiroko
pythondev_help_Hiroko_2019-02-06T08:07:11.151700
1,549,440,431.1517
6,977
pythondev
help
rabbitmq
2019-02-06T08:07:38.152200
Gregg
pythondev_help_Gregg_2019-02-06T08:07:38.152200
1,549,440,458.1522
6,978
pythondev
help
I haven’t been able to do this because the process runs inside docker and I can attach my stdin to it… is this something that you know should work?
2019-02-06T08:07:55.152500
Gregg
pythondev_help_Gregg_2019-02-06T08:07:55.152500
1,549,440,475.1525
6,979
pythondev
help
I too prefer pdb, well… ipdb
2019-02-06T08:08:20.153200
Gregg
pythondev_help_Gregg_2019-02-06T08:08:20.153200
1,549,440,500.1532
6,980
pythondev
help
But I can’t attach to a running process with pdb (to my knowledge)
2019-02-06T08:08:34.153500
Gregg
pythondev_help_Gregg_2019-02-06T08:08:34.153500
1,549,440,514.1535
6,981
pythondev
help
does anyone have links to any best practices/examples for modal/overlay design on mobile? i.e. what looks decent and is _usable_ We want to display job descriptions and other assorted long text in the modal when a user opens it.
2019-02-06T08:08:58.154100
Conrad
pythondev_help_Conrad_2019-02-06T08:08:58.154100
1,549,440,538.1541
6,982
pythondev
help
additionally, the user needs to be able to perform any of these actions -: • close the modal (can't rely on the cross icon on the top right of the modal) • indicate their interest in the job (yes/no), which would open the next job in the list in the modal so the calls to action for these needs to be prominent. wonderi...
2019-02-06T08:11:17.156100
Conrad
pythondev_help_Conrad_2019-02-06T08:11:17.156100
1,549,440,677.1561
6,983
pythondev
help
you can - run the container without backgrounding it
2019-02-06T08:11:23.156200
Karoline
pythondev_help_Karoline_2019-02-06T08:11:23.156200
1,549,440,683.1562
6,984
pythondev
help
<@Gregg> nothing in the rabbit logs?
2019-02-06T08:12:05.157000
Hiroko
pythondev_help_Hiroko_2019-02-06T08:12:05.157000
1,549,440,725.157
6,985
pythondev
help
either `docker-compose run` it or even `docker-compose up &lt;servicename&gt;` without the `-d` should work I believe.
2019-02-06T08:12:08.157200
Karoline
pythondev_help_Karoline_2019-02-06T08:12:08.157200
1,549,440,728.1572
6,986
pythondev
help
I do this all the time, so feel free to bug me about particulars until you can get it working.
2019-02-06T08:12:21.157700
Karoline
pythondev_help_Karoline_2019-02-06T08:12:21.157700
1,549,440,741.1577
6,987
pythondev
help
how much do you have allocated for your docker environment (CPU and RAM), and how many containers are up?
2019-02-06T08:12:36.158200
Hiroko
pythondev_help_Hiroko_2019-02-06T08:12:36.158200
1,549,440,756.1582
6,988
pythondev
help
seems like there's no frontend/ux channel
2019-02-06T08:13:26.159000
Conrad
pythondev_help_Conrad_2019-02-06T08:13:26.159000
1,549,440,806.159
6,989
pythondev
help
The rabbit logs are simply a connect, followed by an immediate disconnect: ``` rabbitmq_1 | =INFO REPORT==== 5-Feb-2019::14:08:00 === rabbitmq_1 | accepting AMQP connection &lt;0.16624.0&gt; (172.31.0.4:48472 -&gt; 172.31.0.2:5672) rabbitmq_1 | rabbitmq_1 | =INFO REPORT==== 5-Feb-2019::14:08:00 === rabbitmq_1 ...
2019-02-06T08:14:58.160700
Gregg
pythondev_help_Gregg_2019-02-06T08:14:58.160700
1,549,440,898.1607
6,990
pythondev
help
The logs on the app are similar, a repeat of: ``` web_1 | DEBUG amqp 2019-02-05 14:08:00 Start from server, version: 0.9, properties: {'capabilities': {'publisher_confirms': True, 'exchange_exchange_bindings': True, 'basic.nack': True, 'consumer_cancel_notify': True, 'connection.blocked': True, 'consumer_priorit...
2019-02-06T08:15:25.161100
Gregg
pythondev_help_Gregg_2019-02-06T08:15:25.161100
1,549,440,925.1611
6,991
pythondev
help
just to be sure, you’re using the same task with the same routing key?
2019-02-06T08:16:19.162200
Hiroko
pythondev_help_Hiroko_2019-02-06T08:16:19.162200
1,549,440,979.1622
6,992
pythondev
help
not changing routing keys?
2019-02-06T08:16:27.162500
Hiroko
pythondev_help_Hiroko_2019-02-06T08:16:27.162500
1,549,440,987.1625
6,993
pythondev
help
I have no idea how to do that so I think not :neutral_face:
2019-02-06T08:16:40.162800
Gregg
pythondev_help_Gregg_2019-02-06T08:16:40.162800
1,549,441,000.1628
6,994
pythondev
help
there's <#C07EYDP25|webdev>, but nothing dedicated specifically to ux though. might not hurt to ask in <#CD60CDU7K|community> to see if there's interest.
2019-02-06T08:16:41.162900
Karoline
pythondev_help_Karoline_2019-02-06T08:16:41.162900
1,549,441,001.1629
6,995
pythondev
help
More interestingly, when I tried to reproduce outside docker, I _had_ to use conda in order to get the same Python version (due to Homebrew’s version policy). Here, there is no hang, but an exception as follows: ``` DEBUG amqp 2019-02-05 15:29:35 Start from server, version: 0.9, properties: {'capabilities': {'publisher...
2019-02-06T08:18:46.164800
Gregg
pythondev_help_Gregg_2019-02-06T08:18:46.164800
1,549,441,126.1648
6,996
pythondev
help
For a while I thought I was hitting this issue: <https://github.com/celery/kombu/issues/857> but since in the docker environment there is a hang and not an exception, it doesn’t feel like the exact same thing…. Which is why I wanted to debug it when it occurs :slightly_smiling_face:
2019-02-06T08:19:53.166000
Gregg
pythondev_help_Gregg_2019-02-06T08:19:53.166000
1,549,441,193.166
6,997
pythondev
help
hmm
2019-02-06T08:21:01.166400
Hiroko
pythondev_help_Hiroko_2019-02-06T08:21:01.166400
1,549,441,261.1664
6,998
pythondev
help
so, do you know how to bring in an external lib into a python docker project?
2019-02-06T08:21:22.166900
Hiroko
pythondev_help_Hiroko_2019-02-06T08:21:22.166900
1,549,441,282.1669
6,999
pythondev
help
I can do that since it is my own project and I can change the docker image as needed
2019-02-06T08:22:43.167700
Gregg
pythondev_help_Gregg_2019-02-06T08:22:43.167700
1,549,441,363.1677
7,000
pythondev
help
so, you can clone kombu and celery locally
2019-02-06T08:22:57.168000
Hiroko
pythondev_help_Hiroko_2019-02-06T08:22:57.168000
1,549,441,377.168
7,001
pythondev
help
add the local repo path to your docker web container’s site packages in docker-compose volumes
2019-02-06T08:23:11.168400
Hiroko
pythondev_help_Hiroko_2019-02-06T08:23:11.168400
1,549,441,391.1684
7,002
pythondev
help
so when you open that lib up in an IDE/editor, you can put a pdb breakpoint in celery or kombu
2019-02-06T08:24:02.169400
Hiroko
pythondev_help_Hiroko_2019-02-06T08:24:02.169400
1,549,441,442.1694
7,003
pythondev
help
and the code will hit that breakpoint
2019-02-06T08:24:13.169700
Hiroko
pythondev_help_Hiroko_2019-02-06T08:24:13.169700
1,549,441,453.1697
7,004
pythondev
help
so you dont have to dig in from a breakpoint in your own application code, i’ll let you start inside the lib code
2019-02-06T08:24:34.170300
Hiroko
pythondev_help_Hiroko_2019-02-06T08:24:34.170300
1,549,441,474.1703
7,005
pythondev
help
that’s totally doable… but the real problem is that I cannot then attach to the pdb console
2019-02-06T08:25:37.170800
Gregg
pythondev_help_Gregg_2019-02-06T08:25:37.170800
1,549,441,537.1708
7,006
pythondev
help
nevertheless… by explaining it here and with this conversation, I think I found something useful here <https://stackoverflow.com/a/40449862/227103>
2019-02-06T08:26:09.171500
Gregg
pythondev_help_Gregg_2019-02-06T08:26:09.171500
1,549,441,569.1715
7,007
pythondev
help
if you `docker-compose run` the container you can attach
2019-02-06T08:26:16.172000
Karoline
pythondev_help_Karoline_2019-02-06T08:26:16.172000
1,549,441,576.172
7,008
pythondev
help
Which is to set some options on the docker-compose.yaml file so I can do `docker-compose attach web-container-id`
2019-02-06T08:26:34.172500
Gregg
pythondev_help_Gregg_2019-02-06T08:26:34.172500
1,549,441,594.1725
7,009
pythondev
help
`docker-compose run --rm --service-ports &lt;container-name&gt;`
2019-02-06T08:26:43.172900
Hiroko
pythondev_help_Hiroko_2019-02-06T08:26:43.172900
1,549,441,603.1729
7,010
pythondev
help
you shouldn't need to do that
2019-02-06T08:26:46.173000
Karoline
pythondev_help_Karoline_2019-02-06T08:26:46.173000
1,549,441,606.173
7,011
pythondev
help
the `--service-ports` is the important flag
2019-02-06T08:26:59.173500
Hiroko
pythondev_help_Hiroko_2019-02-06T08:26:59.173500
1,549,441,619.1735
7,012
pythondev
help
Ah, ok that’s also interesting
2019-02-06T08:26:59.173600
Gregg
pythondev_help_Gregg_2019-02-06T08:26:59.173600
1,549,441,619.1736
7,013
pythondev
help
Ok I am going to try that right now !
2019-02-06T08:27:34.174000
Gregg
pythondev_help_Gregg_2019-02-06T08:27:34.174000
1,549,441,654.174
7,014
pythondev
help
remember, `docker-compose up` won’t let you do this. there’s a ticket for that which was closed
2019-02-06T08:28:36.174600
Hiroko
pythondev_help_Hiroko_2019-02-06T08:28:36.174600
1,549,441,716.1746
7,015
pythondev
help
<https://github.com/docker/compose/issues/4677>
2019-02-06T08:28:37.174800
Hiroko
pythondev_help_Hiroko_2019-02-06T08:28:37.174800
1,549,441,717.1748
7,016
pythondev
help
:parrot: I managed to hit a breakpoint and get a console! Thanks <@Hiroko>, you have enabled me to dig further! :smile:
2019-02-06T08:29:30.176000
Gregg
pythondev_help_Gregg_2019-02-06T08:29:30.176000
1,549,441,770.176
7,017
pythondev
help
`--service-ports` shouldn't be necesary, right?
2019-02-06T08:29:33.176100
Karoline
pythondev_help_Karoline_2019-02-06T08:29:33.176100
1,549,441,773.1761
7,018
pythondev
help
Actually - it's definitely not necessary. :stuck_out_tongue:
2019-02-06T08:30:02.176500
Karoline
pythondev_help_Karoline_2019-02-06T08:30:02.176500
1,549,441,802.1765
7,019
pythondev
help
No, it is necessary. Without it, the exposed ports are not open
2019-02-06T08:31:09.177300
Gregg
pythondev_help_Gregg_2019-02-06T08:31:09.177300
1,549,441,869.1773
7,020