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
And if you use the `hint` method to force the usage of your index ?
2017-10-03T03:10:42.000179
Carri
pythondev_help_Carri_2017-10-03T03:10:42.000179
1,507,000,242.000179
95,503
pythondev
help
Any idea how can i solve this: ValueError at /accounts/facebook/login/callback/ need more than 1 value to unpack
2017-10-03T03:58:48.000430
Georgetta
pythondev_help_Georgetta_2017-10-03T03:58:48.000430
1,507,003,128.00043
95,504
pythondev
help
<@Georgetta> ``` &gt;&gt;&gt; lst = [1] &gt;&gt;&gt; x, y, z = lst Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ValueError: need more than 1 value to unpack ```
2017-10-03T04:16:56.000215
Suellen
pythondev_help_Suellen_2017-10-03T04:16:56.000215
1,507,004,216.000215
95,505
pythondev
help
you have a list with only one element, but unpack it expecting it to have 2 or 3, or more
2017-10-03T04:17:19.000277
Suellen
pythondev_help_Suellen_2017-10-03T04:17:19.000277
1,507,004,239.000277
95,506
pythondev
help
this can't work and results in an exception
2017-10-03T04:17:34.000270
Suellen
pythondev_help_Suellen_2017-10-03T04:17:34.000270
1,507,004,254.00027
95,507
pythondev
help
yes i understand this, but how can i check this, because i get this error when im trying to connect wiht faceboouk account
2017-10-03T04:18:13.000248
Georgetta
pythondev_help_Georgetta_2017-10-03T04:18:13.000248
1,507,004,293.000248
95,508
pythondev
help
sometimes works, and sometimes i get this
2017-10-03T04:18:32.000055
Georgetta
pythondev_help_Georgetta_2017-10-03T04:18:32.000055
1,507,004,312.000055
95,509
pythondev
help
it doesn't originate in your module?
2017-10-03T04:19:46.000050
Suellen
pythondev_help_Suellen_2017-10-03T04:19:46.000050
1,507,004,386.00005
95,510
pythondev
help
if it doesn't work sometimes, it means sometimes a list has fewer elements than you expect... there is probably a reason for this. What happens on this line? Where do you get this list from? You can probably trace where this error happens and figure out why
2017-10-03T04:22:05.000237
Suellen
pythondev_help_Suellen_2017-10-03T04:22:05.000237
1,507,004,525.000237
95,511
pythondev
help
i think maybe i get because i put this on settings: SOCIALACCOUNT_ADAPTER = '/welcome_fbuser'
2017-10-03T04:23:27.000260
Georgetta
pythondev_help_Georgetta_2017-10-03T04:23:27.000260
1,507,004,607.00026
95,512
pythondev
help
that the Trace
2017-10-03T04:24:13.000273
Georgetta
pythondev_help_Georgetta_2017-10-03T04:24:13.000273
1,507,004,653.000273
95,513
pythondev
help
Traceback: File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\django\core\handlers\exception.py" in inner 41. response = get_response(request) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\django\core\handlers\base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\django\core\handlers\base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\socialaccount\providers\oauth2\views.py" in view 73. return self.dispatch(request, *args, **kwargs) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\socialaccount\providers\oauth2\views.py" in dispatch 134. response=access_token) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\socialaccount\providers\facebook\views.py" in complete_login 72. return fb_complete_login(request, app, access_token) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\socialaccount\providers\facebook\views.py" in fb_complete_login 54. login = provider.sociallogin_from_response(request, extra_data) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\socialaccount\providers\base.py" in sociallogin_from_response 85. adapter = get_adapter(request) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\socialaccount\adapter.py" in get_adapter 195. return import_attribute(app_settings.ADAPTER)(request) File "C:\Users\dorel\Desktop\djangoprojects\lib\site-packages\allauth\utils.py" in import_attribute 149. pkg, attr = path.rsplit('.', 1) Exception Type: ValueError at /accounts/facebook/login/callback/ Exception Value: need more than 1 value to unpack
2017-10-03T04:24:15.000483
Georgetta
pythondev_help_Georgetta_2017-10-03T04:24:15.000483
1,507,004,655.000483
95,514
pythondev
help
I think it makes more sense once you indent it ``` [ i for subl in l for i in reversed(subl) ] ``` but either way, l should be reversed, not subl
2017-10-03T04:27:05.000425
Winnie
pythondev_help_Winnie_2017-10-03T04:27:05.000425
1,507,004,825.000425
95,515
pythondev
help
<@Carri> hmmm hadn’t considered that. I’m relatively new to Mongo - can you assist with syntax and where would be the right place to put it?
2017-10-03T07:14:45.000160
Dinah
pythondev_help_Dinah_2017-10-03T07:14:45.000160
1,507,014,885.00016
95,516
pythondev
help
<@Collette> <@Carri> <@Meg> I thought you might find this intresting ``` $ list='l = [list(range(x, x+100)) for x in range(100**2,-1,-100)];' $ python3.6 -m timeit -n 10000 -s $list 'el = [i for j in l[::-1] for i in j]' 10000 loops, best of 3: 226 usec per loop $ python3.6 -m timeit -n 10000 -s $list 'el = [i for j in reversed(l) for i in j]' 10000 loops, best of 3: 222 usec per loop $ python3.6 -m timeit -n 10000 -s $list -s 'from collections import deque' 'dl = deque()' 'for i in l: dl.extendleft(reversed(i))' 'dl = list(dl)' 10000 loops, best of 3: 146 usec per loop $ python3.6 -m timeit -n 10000 -s $list 'el = []' 'for i in l: el.extend(reversed(i))' 'el.reverse()' 10000 loops, best of 3: 92.1 usec per loop $ python3.6 -m timeit -n 10000 -s $list 'el = []' 'for i in reversed(l): el.extend(i)' 10000 loops, best of 3: 45.5 usec per loop ```
2017-10-03T11:23:42.000240
Winnie
pythondev_help_Winnie_2017-10-03T11:23:42.000240
1,507,029,822.00024
95,517
pythondev
help
trying to get the indices of the 'm' values in this nested for list called board. board = ``` [ [r, r, r, r, m], [r, r, r, r, r], [r, r, m, r, r], [r, r, r, r, r], [m, r, r, r, r] ]```
2017-10-03T13:52:41.000173
Chi
pythondev_help_Chi_2017-10-03T13:52:41.000173
1,507,038,761.000173
95,518
pythondev
help
this is my code for a nested list and it works: ```testlist2 = [['m', 'r', 'm'], ['r', 'r', 'm']] for i in testlist2: for j in i: print(j)```
2017-10-03T13:53:12.000314
Chi
pythondev_help_Chi_2017-10-03T13:53:12.000314
1,507,038,792.000314
95,519
pythondev
help
how do i get the index values of the three m's in testlist2?
2017-10-03T13:53:21.000282
Chi
pythondev_help_Chi_2017-10-03T13:53:21.000282
1,507,038,801.000282
95,520
pythondev
help
`enumerate`
2017-10-03T13:55:16.000342
Meg
pythondev_help_Meg_2017-10-03T13:55:16.000342
1,507,038,916.000342
95,521
pythondev
help
`for index, value in enumerate(list):`
2017-10-03T13:55:30.000643
Meg
pythondev_help_Meg_2017-10-03T13:55:30.000643
1,507,038,930.000643
95,522
pythondev
help
that'll give you the index value for each list item
2017-10-03T13:56:10.000189
Meg
pythondev_help_Meg_2017-10-03T13:56:10.000189
1,507,038,970.000189
95,523
pythondev
help
Hi, good afternoon, I have a problem with a function an APIView and a function that I made inside this class. So I have this error in my function and I want to return a response about why the error happened, but it seems like I cannot return a response and it go directly to the default Success response. So I have like this. Code Calling function Error that I want to return from function &lt;--- Problem here because I can't return Response Response of success. I hope you can help me
2017-10-03T14:52:07.000642
Priscila
pythondev_help_Priscila_2017-10-03T14:52:07.000642
1,507,042,327.000642
95,524
pythondev
help
APIView? Django?
2017-10-03T14:53:07.000208
Meghan
pythondev_help_Meghan_2017-10-03T14:53:07.000208
1,507,042,387.000208
95,525
pythondev
help
Yes
2017-10-03T14:56:10.000276
Priscila
pythondev_help_Priscila_2017-10-03T14:56:10.000276
1,507,042,570.000276
95,526
pythondev
help
Nice :slightly_smiling_face:
2017-10-03T14:56:35.000722
Carri
pythondev_help_Carri_2017-10-03T14:56:35.000722
1,507,042,595.000722
95,527
pythondev
help
ask question in <#C0LMFRMB5|django> <@Priscila>
2017-10-03T14:58:41.000619
Michael
pythondev_help_Michael_2017-10-03T14:58:41.000619
1,507,042,721.000619
95,528
pythondev
help
<@Michael> Understood
2017-10-03T14:59:27.000506
Priscila
pythondev_help_Priscila_2017-10-03T14:59:27.000506
1,507,042,767.000506
95,529
pythondev
help
I just leveled up in Python and my brain hurts
2017-10-03T15:17:53.000588
Seema
pythondev_help_Seema_2017-10-03T15:17:53.000588
1,507,043,873.000588
95,530
pythondev
help
How did you level up? Did you eat a taco?
2017-10-03T15:19:19.000005
Marcelina
pythondev_help_Marcelina_2017-10-03T15:19:19.000005
1,507,043,959.000005
95,531
pythondev
help
I'm a n00b and I was blindly reading this code ```def load_file(filename): with open(filename, 'r', encoding='utf-8') as fin: # with open(filename, 'r') as fin: reader = csv.DictReader(fin) purchases = [] for row in reader: p = Purchase.create_from_dict(row) purchases.append(p) return purchases```
2017-10-03T15:19:49.000040
Seema
pythondev_help_Seema_2017-10-03T15:19:49.000040
1,507,043,989.00004
95,532
pythondev
help
Now I actually can say out loud what it does. Of course, now I have a bunch of questions, lol
2017-10-03T15:20:09.000091
Seema
pythondev_help_Seema_2017-10-03T15:20:09.000091
1,507,044,009.000091
95,533
pythondev
help
So I guess my next question is...list comprehension is preferable to dict because knowledge of key-value:pair is needed in dict and it isn't in list...?
2017-10-03T15:22:25.000553
Seema
pythondev_help_Seema_2017-10-03T15:22:25.000553
1,507,044,145.000553
95,534
pythondev
help
i wouldn’t say it is preferable. it depend on what you are doing. if you need a list of items a list comp is the way to go to create one.
2017-10-03T15:23:43.000554
Johana
pythondev_help_Johana_2017-10-03T15:23:43.000554
1,507,044,223.000554
95,535
pythondev
help
okay, thanks. (I think I need to read a lot more code)
2017-10-03T15:26:24.000571
Seema
pythondev_help_Seema_2017-10-03T15:26:24.000571
1,507,044,384.000571
95,536
pythondev
help
can the value in a key-value be a Class?
2017-10-03T15:28:23.000229
Seema
pythondev_help_Seema_2017-10-03T15:28:23.000229
1,507,044,503.000229
95,537
pythondev
help
yes
2017-10-03T15:28:40.000092
Meg
pythondev_help_Meg_2017-10-03T15:28:40.000092
1,507,044,520.000092
95,538
pythondev
help
but the key cannot be a list, dict or set, or any mutable structure
2017-10-03T15:29:10.000469
Meg
pythondev_help_Meg_2017-10-03T15:29:10.000469
1,507,044,550.000469
95,539
pythondev
help
so, you can use a tuple as a dict key
2017-10-03T15:29:33.000216
Meg
pythondev_help_Meg_2017-10-03T15:29:33.000216
1,507,044,573.000216
95,540
pythondev
help
the sounds messier, in general, than lists. At least in this case. Overall, I'm trying to grok why choices are made.
2017-10-03T15:30:51.000292
Seema
pythondev_help_Seema_2017-10-03T15:30:51.000292
1,507,044,651.000292
95,541
pythondev
help
basically, use a list or tuple where you'd prefer accessing an item by an index
2017-10-03T15:31:50.000645
Meg
pythondev_help_Meg_2017-10-03T15:31:50.000645
1,507,044,710.000645
95,542
pythondev
help
use a dict if you would prefer accessing an item with a specific key
2017-10-03T15:32:08.000263
Meg
pythondev_help_Meg_2017-10-03T15:32:08.000263
1,507,044,728.000263
95,543
pythondev
help
the first, you'd pretty much have to iterate over the structure and do comparisons before doing something
2017-10-03T15:32:26.000384
Meg
pythondev_help_Meg_2017-10-03T15:32:26.000384
1,507,044,746.000384
95,544
pythondev
help
but with a dict, you can just do `item = dict_struct.get('key_name', None)` and get either the value for the key, or a `NoneType`
2017-10-03T15:32:55.000102
Meg
pythondev_help_Meg_2017-10-03T15:32:55.000102
1,507,044,775.000102
95,545
pythondev
help
like getting a bunch of values from a particular column in a flat data set?
2017-10-03T15:33:28.000368
Seema
pythondev_help_Seema_2017-10-03T15:33:28.000368
1,507,044,808.000368
95,546
pythondev
help
that's one way
2017-10-03T15:33:43.000389
Meg
pythondev_help_Meg_2017-10-03T15:33:43.000389
1,507,044,823.000389
95,547
pythondev
help
I need help with this. Am using Postgres for DB…. I have an IntegerField in my models.py defined such as `number = models.IntegerField(default=0)`: When I put in a number like 77370477795 in the form field, it throws error `Ensure this value is less than or equal to 2147483647`.
2017-10-03T16:19:37.000330
Marisela
pythondev_help_Marisela_2017-10-03T16:19:37.000330
1,507,047,577.00033
95,548
pythondev
help
<https://www.postgresql.org/docs/9.1/static/datatype-numeric.html>
2017-10-03T16:20:19.000150
Antionette
pythondev_help_Antionette_2017-10-03T16:20:19.000150
1,507,047,619.00015
95,549
pythondev
help
that is the maximum size for postgres's integer datatype
2017-10-03T16:20:35.000299
Antionette
pythondev_help_Antionette_2017-10-03T16:20:35.000299
1,507,047,635.000299
95,550
pythondev
help
if you're expecting numbers larger than that you will need to go to something like big int
2017-10-03T16:21:08.000457
Antionette
pythondev_help_Antionette_2017-10-03T16:21:08.000457
1,507,047,668.000457
95,551
pythondev
help
which can store numbers up to `9223372036854775807`
2017-10-03T16:21:27.000314
Antionette
pythondev_help_Antionette_2017-10-03T16:21:27.000314
1,507,047,687.000314
95,552
pythondev
help
I remember fixing this in Ruby and setting `limit: 8` which fixes as you described <@Antionette> Is there a way I could in Django? I meant how do I refactor this `number = models.IntegerField(default=0)` to handle that?
2017-10-03T16:25:38.000081
Marisela
pythondev_help_Marisela_2017-10-03T16:25:38.000081
1,507,047,938.000081
95,553
pythondev
help
can't
2017-10-03T16:26:05.000402
Meg
pythondev_help_Meg_2017-10-03T16:26:05.000402
1,507,047,965.000402
95,554
pythondev
help
you'll have to change the field type and run a migration
2017-10-03T16:26:14.000202
Meg
pythondev_help_Meg_2017-10-03T16:26:14.000202
1,507,047,974.000202
95,555
pythondev
help
that would also require a migration in rails afaik
2017-10-03T16:26:40.000002
Antionette
pythondev_help_Antionette_2017-10-03T16:26:40.000002
1,507,048,000.000002
95,556
pythondev
help
Ofcourse
2017-10-03T16:26:52.000495
Marisela
pythondev_help_Marisela_2017-10-03T16:26:52.000495
1,507,048,012.000495
95,557
pythondev
help
<https://docs.djangoproject.com/en/1.11/ref/models/fields/#bigintegerfield>
2017-10-03T16:26:56.000674
Meg
pythondev_help_Meg_2017-10-03T16:26:56.000674
1,507,048,016.000674
95,558
pythondev
help
ha right <@Meg> will change that data type to `BigIntegerField`. That should fix it. Thanks.
2017-10-03T16:27:58.000693
Marisela
pythondev_help_Marisela_2017-10-03T16:27:58.000693
1,507,048,078.000693
95,559
pythondev
help
Okay. Working now. Thanks <@Meg> <@Antionette>
2017-10-03T16:30:53.000397
Marisela
pythondev_help_Marisela_2017-10-03T16:30:53.000397
1,507,048,253.000397
95,560
pythondev
help
How can I run two asynchronous tasks at the same time? I have a twitter streamer using `Tweepy` and a discord bot running.
2017-10-03T17:56:39.000439
Myong
pythondev_help_Myong_2017-10-03T17:56:39.000439
1,507,053,399.000439
95,561
pythondev
help
I basically want the Twitter streamer to run and the discord bot to wait for a data to come in
2017-10-03T18:00:34.000288
Myong
pythondev_help_Myong_2017-10-03T18:00:34.000288
1,507,053,634.000288
95,562
pythondev
help
Hi guys, I have a very simple function below which relies on psutil. When I try to call it I see unexpected results.. 0.0% - However I am running the linux binary `stress` on 1 cpu for 60 seconds which consumes 100% cpu usage ```def get_cpu_usage(pid): """ Obtains CPU utilisation of a given PID as a % """ try: p = psutil.Process(pid) except psutil.NoSuchProcess: return None return p.cpu_percent(interval=0.1)``` is it possible psutil is not measuring usage across all cpu cores?
2017-10-03T18:01:40.000465
Cathern
pythondev_help_Cathern_2017-10-03T18:01:40.000465
1,507,053,700.000465
95,563
pythondev
help
percpu=True in that cpu_percent call
2017-10-03T18:18:29.000174
Marcelina
pythondev_help_Marcelina_2017-10-03T18:18:29.000174
1,507,054,709.000174
95,564
pythondev
help
Give that a shot
2017-10-03T18:18:31.000360
Marcelina
pythondev_help_Marcelina_2017-10-03T18:18:31.000360
1,507,054,711.00036
95,565
pythondev
help
<https://pythonhosted.org/psutil/#psutil.cpu_percent>
2017-10-03T18:19:13.000253
Marcelina
pythondev_help_Marcelina_2017-10-03T18:19:13.000253
1,507,054,753.000253
95,566
pythondev
help
<@Cathern> ^^
2017-10-03T18:19:18.000046
Marcelina
pythondev_help_Marcelina_2017-10-03T18:19:18.000046
1,507,054,758.000046
95,567
pythondev
help
Anyone around want to do a quick code review for this shell script I wrote that is pretty much a pre-commit git hook. It looks for changes in 2 specific directories, and appends todays timestamp. Let me know if there is some safe checks I should add or if I did anything wrong. But this script is currently working. <https://gist.github.com/bmaca/50c91aafa7c058d749e9b4105aa7e7f6> CC: <@Bruno> <@Orpha> from our talk earlier
2017-10-03T22:36:47.000230
Arlene
pythondev_help_Arlene_2017-10-03T22:36:47.000230
1,507,070,207.00023
95,568
pythondev
help
```DIR="/Users/uname/my_git_project_dir/"``` should be ```DIR="$HOME/my_git_project_dir/"```
2017-10-03T22:37:36.000096
Bruno
pythondev_help_Bruno_2017-10-03T22:37:36.000096
1,507,070,256.000096
95,569
pythondev
help
Making the change now.
2017-10-03T22:37:51.000056
Arlene
pythondev_help_Arlene_2017-10-03T22:37:51.000056
1,507,070,271.000056
95,570
pythondev
help
but, you might want a better way to get the project root. if you clone into another directory this wont work
2017-10-03T22:38:27.000093
Bruno
pythondev_help_Bruno_2017-10-03T22:38:27.000093
1,507,070,307.000093
95,571
pythondev
help
actually I wonder if I need he project paths in the first place hmm
2017-10-03T22:39:11.000026
Arlene
pythondev_help_Arlene_2017-10-03T22:39:11.000026
1,507,070,351.000026
95,572
pythondev
help
gona try the git hook without the paths
2017-10-03T22:39:20.000163
Arlene
pythondev_help_Arlene_2017-10-03T22:39:20.000163
1,507,070,360.000163
95,573
pythondev
help
ha nice. <@Bruno> I dont need the paths at all
2017-10-03T22:41:08.000138
Arlene
pythondev_help_Arlene_2017-10-03T22:41:08.000138
1,507,070,468.000138
95,574
pythondev
help
git knows, what to do if its in the projects .git/hooks dir
2017-10-03T22:41:29.000045
Arlene
pythondev_help_Arlene_2017-10-03T22:41:29.000045
1,507,070,489.000045
95,575
pythondev
help
I just removed those all out.They are not needed at all actually
2017-10-03T22:42:48.000113
Arlene
pythondev_help_Arlene_2017-10-03T22:42:48.000113
1,507,070,568.000113
95,576
pythondev
help
going to double quote this `$f` to try to prevent gobbling.
2017-10-03T22:45:03.000053
Arlene
pythondev_help_Arlene_2017-10-03T22:45:03.000053
1,507,070,703.000053
95,577
pythondev
help
sweet
2017-10-03T22:48:07.000034
Bruno
pythondev_help_Bruno_2017-10-03T22:48:07.000034
1,507,070,887.000034
95,578
pythondev
help
I guess its that simple. Idk if i should add any error handling etc. but ...
2017-10-03T22:48:36.000107
Arlene
pythondev_help_Arlene_2017-10-03T22:48:36.000107
1,507,070,916.000107
95,579
pythondev
help
¯\_(ツ)_/¯
2017-10-03T22:48:38.000068
Arlene
pythondev_help_Arlene_2017-10-03T22:48:38.000068
1,507,070,918.000068
95,580
pythondev
help
possibly a try/catch if the sed exits with an error. but other than that, yea. should be pretty simple.
2017-10-03T22:49:23.000016
Bruno
pythondev_help_Bruno_2017-10-03T22:49:23.000016
1,507,070,963.000016
95,581
pythondev
help
ive still never really had the need for commit hooks.
2017-10-03T22:49:40.000060
Bruno
pythondev_help_Bruno_2017-10-03T22:49:40.000060
1,507,070,980.00006
95,582
pythondev
help
this is for our dev team, because we make a lot of changes in thsoe directories or we new stuff, and we need to display the last modified date to the front end, so i figured we might as well automate it, instead of hardcoding it everytime we make changes to the file
2017-10-03T22:50:38.000174
Arlene
pythondev_help_Arlene_2017-10-03T22:50:38.000174
1,507,071,038.000174
95,583
pythondev
help
so this is my use case for now.
2017-10-03T22:50:44.000177
Arlene
pythondev_help_Arlene_2017-10-03T22:50:44.000177
1,507,071,044.000177
95,584
pythondev
help
but other than that another use case would be to run tests before commiting but hey lol
2017-10-03T22:50:59.000069
Arlene
pythondev_help_Arlene_2017-10-03T22:50:59.000069
1,507,071,059.000069
95,585
pythondev
help
Okay so I'm getting closer and closer to figuring out my issues here. I have a twitter API streamer running asynchronously alongside a discord bot, also running with async. Now, when I receive information from twitter, the stream is set to call a function. Now the function it calls is not set as async or anything like that. So my question is, when I call a synchronous function within an async function, is that no long asynchronous?
2017-10-03T23:59:33.000102
Myong
pythondev_help_Myong_2017-10-03T23:59:33.000102
1,507,075,173.000102
95,586
pythondev
help
<@Myong> correct, you're only getting async behaviour when you yield
2017-10-04T01:12:18.000102
Marcie
pythondev_help_Marcie_2017-10-04T01:12:18.000102
1,507,079,538.000102
95,587
pythondev
help
<@Marcie> Okay, now it seems that tweepy uses `Threading.py` for async. I am wondering if I can just throw the whole TweepyStreamer object into an `asyncio` loop to get async behavior and as for the two functions I have just mark those with `async def` and use await for return values?
2017-10-04T01:13:44.000099
Myong
pythondev_help_Myong_2017-10-04T01:13:44.000099
1,507,079,624.000099
95,588
pythondev
help
This issue is basically I have a bot for Discord that has it's own loop so when it runs it's blocking
2017-10-04T01:15:58.000016
Myong
pythondev_help_Myong_2017-10-04T01:15:58.000016
1,507,079,758.000016
95,589
pythondev
help
I need to get the stream to run while the the discord bot is also running
2017-10-04T01:16:37.000146
Myong
pythondev_help_Myong_2017-10-04T01:16:37.000146
1,507,079,797.000146
95,590
pythondev
help
Now the bot event loop is already making use of `asyncio`. Do you think that simply by putting the streamer as a whole into an event loop will fix the problem?
2017-10-04T01:17:47.000184
Myong
pythondev_help_Myong_2017-10-04T01:17:47.000184
1,507,079,867.000184
95,591
pythondev
help
Seems like if I want to run a blocking task I have to use run in executor
2017-10-04T02:11:51.000063
Myong
pythondev_help_Myong_2017-10-04T02:11:51.000063
1,507,083,111.000063
95,592
pythondev
help
i dont know how the interaction with Threading.py works with asyncio so i couldn't answer that, might be a good candidate for <#C07G5276F|async>
2017-10-04T02:11:59.000175
Marcie
pythondev_help_Marcie_2017-10-04T02:11:59.000175
1,507,083,119.000175
95,593
pythondev
help
Okay thanks
2017-10-04T02:15:58.000132
Myong
pythondev_help_Myong_2017-10-04T02:15:58.000132
1,507,083,358.000132
95,594
pythondev
help
Welp, didn't even realize they had webhooks so I think this shouldn't be too bad
2017-10-04T02:34:09.000133
Myong
pythondev_help_Myong_2017-10-04T02:34:09.000133
1,507,084,449.000133
95,595
pythondev
help
Hi all, do you know alternatives to geopy to get lat and lon from a city name? (<https://geopy.readthedocs.io/en/1.11.0/>)
2017-10-04T03:17:35.000138
Liana
pythondev_help_Liana_2017-10-04T03:17:35.000138
1,507,087,055.000138
95,596
pythondev
help
I'm using geopy and it's perfect for me, but I have to run my application in Windows 2012 server and this send me an error about certificates :disappointed:
2017-10-04T03:23:24.000171
Liana
pythondev_help_Liana_2017-10-04T03:23:24.000171
1,507,087,404.000171
95,597
pythondev
help
hey, *anybody uses boto3 library in python for talking to aws resources ??*
2017-10-04T07:11:41.000029
Florene
pythondev_help_Florene_2017-10-04T07:11:41.000029
1,507,101,101.000029
95,598
pythondev
help
<@Florene> quite a few people do yes
2017-10-04T07:29:23.000236
Meg
pythondev_help_Meg_2017-10-04T07:29:23.000236
1,507,102,163.000236
95,599
pythondev
help
what’s your issue
2017-10-04T07:29:27.000122
Meg
pythondev_help_Meg_2017-10-04T07:29:27.000122
1,507,102,167.000122
95,600
pythondev
help
when i fire multi-threaded calls using boto3 i'm getting boto3 error ```[/usr/lib/python2.7/dist-packages/boto3/resources/factory.py:285]```
2017-10-04T07:36:39.000149
Florene
pythondev_help_Florene_2017-10-04T07:36:39.000149
1,507,102,599.000149
95,601
pythondev
help
you’re going to have to show the entire stack trace
2017-10-04T07:37:18.000318
Meg
pythondev_help_Meg_2017-10-04T07:37:18.000318
1,507,102,638.000318
95,602