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
here’s my terminal output from when i CD
2017-06-28T17:42:17.766773
Sherry
pythondev_help_Sherry_2017-06-28T17:42:17.766773
1,498,671,737.766773
83,503
pythondev
help
what do you get when you run `python -V`
2017-06-28T17:43:32.787867
Winnifred
pythondev_help_Winnifred_2017-06-28T17:43:32.787867
1,498,671,812.787867
83,504
pythondev
help
A very long output!
2017-06-28T17:44:32.804676
Sherry
pythondev_help_Sherry_2017-06-28T17:44:32.804676
1,498,671,872.804676
83,505
pythondev
help
I think it’s because you don’t have a pip3 under `bin` folder.
2017-06-28T17:44:33.805014
Suzanna
pythondev_help_Suzanna_2017-06-28T17:44:33.805014
1,498,671,873.805014
83,506
pythondev
help
capital `V`
2017-06-28T17:45:13.816442
Beula
pythondev_help_Beula_2017-06-28T17:45:13.816442
1,498,671,913.816442
83,507
pythondev
help
you did lowercase, which is a verbose log of the interpreter starting
2017-06-28T17:45:29.821147
Beula
pythondev_help_Beula_2017-06-28T17:45:29.821147
1,498,671,929.821147
83,508
pythondev
help
so it’s using a default `pip3` which installs libs into `/usr/local/lib`, but search path in environment is looking into `./lib/<version>/site-packages`?
2017-06-28T17:46:03.830432
Suzanna
pythondev_help_Suzanna_2017-06-28T17:46:03.830432
1,498,671,963.830432
83,509
pythondev
help
whoops, sorry!
2017-06-28T17:46:19.834737
Sherry
pythondev_help_Sherry_2017-06-28T17:46:19.834737
1,498,671,979.834737
83,510
pythondev
help
Looks like having a space in there is causing your problems
2017-06-28T17:46:43.841348
Beula
pythondev_help_Beula_2017-06-28T17:46:43.841348
1,498,672,003.841348
83,511
pythondev
help
So it's falling back to the system: ``` zsh: /Users/yousefissa/PycharmProjects/Small Projects/HOC/ultra_monitor/bin/pip3: bad interpreter: "/Users/yousefissa/PycharmProjects/Small: no such file or directory ```
2017-06-28T17:47:00.845766
Beula
pythondev_help_Beula_2017-06-28T17:47:00.845766
1,498,672,020.845766
83,512
pythondev
help
python 3.51
2017-06-28T17:47:03.846664
Sherry
pythondev_help_Sherry_2017-06-28T17:47:03.846664
1,498,672,023.846664
83,513
pythondev
help
Hmm
2017-06-28T17:47:14.849983
Sherry
pythondev_help_Sherry_2017-06-28T17:47:14.849983
1,498,672,034.849983
83,514
pythondev
help
rename `Small\ Projects` to `small_projects`
2017-06-28T17:47:18.851138
Beula
pythondev_help_Beula_2017-06-28T17:47:18.851138
1,498,672,038.851138
83,515
pythondev
help
I can move it to my desktop
2017-06-28T17:47:19.851315
Sherry
pythondev_help_Sherry_2017-06-28T17:47:19.851315
1,498,672,039.851315
83,516
pythondev
help
Or create your virtualenv at `~/.virtualenvs/my_project`
2017-06-28T17:47:43.857737
Beula
pythondev_help_Beula_2017-06-28T17:47:43.857737
1,498,672,063.857737
83,517
pythondev
help
which is pretty standard
2017-06-28T17:47:47.858729
Beula
pythondev_help_Beula_2017-06-28T17:47:47.858729
1,498,672,067.858729
83,518
pythondev
help
Giving it a go
2017-06-28T17:51:05.912463
Sherry
pythondev_help_Sherry_2017-06-28T17:51:05.912463
1,498,672,265.912463
83,519
pythondev
help
Perfect, that worked! Thank you!
2017-06-28T17:52:47.939872
Sherry
pythondev_help_Sherry_2017-06-28T17:52:47.939872
1,498,672,367.939872
83,520
pythondev
help
What does adding this (`~/.virtualenvs/my_project`) at the end of the virtual environment actually do?
2017-06-28T17:53:12.946693
Sherry
pythondev_help_Sherry_2017-06-28T17:53:12.946693
1,498,672,392.946693
83,521
pythondev
help
It sets the location, is that what you are asking?
2017-06-28T17:53:35.952959
Beula
pythondev_help_Beula_2017-06-28T17:53:35.952959
1,498,672,415.952959
83,522
pythondev
help
`virtualenv -p $(which python3) ~/.virtualenvs/my_project`
2017-06-28T17:54:01.959941
Beula
pythondev_help_Beula_2017-06-28T17:54:01.959941
1,498,672,441.959941
83,523
pythondev
help
it’s the destination of where the virtualenv will be created.
2017-06-28T17:54:02.960077
Johana
pythondev_help_Johana_2017-06-28T17:54:02.960077
1,498,672,442.960077
83,524
pythondev
help
So now you need to `source ~/.virtualenvs/my_project/bin/activate` when you need it
2017-06-28T17:54:19.964700
Beula
pythondev_help_Beula_2017-06-28T17:54:19.964700
1,498,672,459.9647
83,525
pythondev
help
I add that to an `autoenv.zsh` script, so each project in my shell auto-sources.
2017-06-28T17:54:35.968861
Beula
pythondev_help_Beula_2017-06-28T17:54:35.968861
1,498,672,475.968861
83,526
pythondev
help
If you use `virtualenvwrapper` it's even easier: `mkproject -p $(which python3.6) my_app` and then later you can `workon my_app` and it auto put you in your source :slightly_smiling_face:
2017-06-28T17:56:22.997584
Beula
pythondev_help_Beula_2017-06-28T17:56:22.997584
1,498,672,582.997584
83,527
pythondev
help
Thank you so much guys! I’ve got a lot to learn about virtualenvironments
2017-06-28T18:00:31.064434
Sherry
pythondev_help_Sherry_2017-06-28T18:00:31.064434
1,498,672,831.064434
83,528
pythondev
help
i use `pyenv` with `pyenv-virtualenv`. both of them together allow you to use a `.python_version` file. The python_version file is kept in the root dir of your project. When you change into the project’s dir it will activate the right virtualenv for you. it’s quite nice although the instructions of getting it going weren’t all too clear. <https://github.com/pyenv/pyenv> <https://github.com/pyenv/pyenv-virtualenv>
2017-06-28T18:00:37.066325
Johana
pythondev_help_Johana_2017-06-28T18:00:37.066325
1,498,672,837.066325
83,529
pythondev
help
:taco: <@Beula>
2017-06-28T18:01:07.074324
Sherry
pythondev_help_Sherry_2017-06-28T18:01:07.074324
1,498,672,867.074324
83,530
pythondev
help
if you are on a mac you can install both with brew.
2017-06-28T18:01:28.079649
Johana
pythondev_help_Johana_2017-06-28T18:01:28.079649
1,498,672,888.079649
83,531
pythondev
help
:taco: <@Suzanna>
2017-06-28T18:01:46.084474
Sherry
pythondev_help_Sherry_2017-06-28T18:01:46.084474
1,498,672,906.084474
83,532
pythondev
help
:taco: <@Winnifred>
2017-06-28T18:02:09.090480
Sherry
pythondev_help_Sherry_2017-06-28T18:02:09.090480
1,498,672,929.09048
83,533
pythondev
help
okay im done!
2017-06-28T18:02:11.090927
Sherry
pythondev_help_Sherry_2017-06-28T18:02:11.090927
1,498,672,931.090927
83,534
pythondev
help
virtualenvwrapper is nice too. i used that since the beginning. if you don’t want to leave behind virtualenvwrapper there is a plugin. <https://github.com/pyenv/pyenv-virtualenvwrapper>
2017-06-28T18:04:15.122680
Johana
pythondev_help_Johana_2017-06-28T18:04:15.122680
1,498,673,055.12268
83,535
pythondev
help
hi has anyone familiar with lmbda in aws?
2017-06-28T19:40:53.296282
Margareta
pythondev_help_Margareta_2017-06-28T19:40:53.296282
1,498,678,853.296282
83,536
pythondev
help
need some help troubleshooting a function
2017-06-28T19:41:12.299186
Margareta
pythondev_help_Margareta_2017-06-28T19:41:12.299186
1,498,678,872.299186
83,537
pythondev
help
<@Margareta> just ask and see if someone can help.
2017-06-28T19:57:57.464657
Beula
pythondev_help_Beula_2017-06-28T19:57:57.464657
1,498,679,877.464657
83,538
pythondev
help
<@Margareta> I can try :slightly_smiling_face:
2017-06-28T19:59:09.476082
Gregorio
pythondev_help_Gregorio_2017-06-28T19:59:09.476082
1,498,679,949.476082
83,539
pythondev
help
``` def lambda_handler(event, context): reservations = ec.describe_instances( Filters=[ {'Name': ['Backup'], 'Values': ['jira_backup']}, ] ).get( 'Reservations', [] ) instances = sum( [ [i for i in r['Instances']] for r in reservations ], []) print "Found %d instances that need backing up" % len(instances) ``` not sure why i get 0 instances found while testing my function
2017-06-28T19:59:10.476238
Margareta
pythondev_help_Margareta_2017-06-28T19:59:10.476238
1,498,679,950.476238
83,540
pythondev
help
trying to build a function that will backup ebs volumes
2017-06-28T19:59:39.481004
Margareta
pythondev_help_Margareta_2017-06-28T19:59:39.481004
1,498,679,979.481004
83,541
pythondev
help
looking
2017-06-28T20:00:08.486708
Gregorio
pythondev_help_Gregorio_2017-06-28T20:00:08.486708
1,498,680,008.486708
83,542
pythondev
help
i get the following error `Invalid type for parameter Filters[0].Name, value: ['Backup'], type: &lt;type 'list'&gt;, valid types: &lt;type 'basestring'&gt;: ParamValidationError`
2017-06-28T20:01:34.502005
Margareta
pythondev_help_Margareta_2017-06-28T20:01:34.502005
1,498,680,094.502005
83,543
pythondev
help
try `"Backup"`?
2017-06-28T20:02:09.507606
Gregorio
pythondev_help_Gregorio_2017-06-28T20:02:09.507606
1,498,680,129.507606
83,544
pythondev
help
instead of `['Backup']`
2017-06-28T20:02:21.509687
Gregorio
pythondev_help_Gregorio_2017-06-28T20:02:21.509687
1,498,680,141.509687
83,545
pythondev
help
`An error occurred (InvalidParameterValue) when calling the DescribeInstances operation: The filter 'Backup' is invalid: ClientError`
2017-06-28T20:02:51.514605
Margareta
pythondev_help_Margareta_2017-06-28T20:02:51.514605
1,498,680,171.514605
83,546
pythondev
help
what is `'Backup'` when it comes to your EC2 instances?
2017-06-28T20:03:50.524400
Gregorio
pythondev_help_Gregorio_2017-06-28T20:03:50.524400
1,498,680,230.5244
83,547
pythondev
help
its tag
2017-06-28T20:03:58.525706
Margareta
pythondev_help_Margareta_2017-06-28T20:03:58.525706
1,498,680,238.525706
83,548
pythondev
help
ok
2017-06-28T20:04:02.526224
Gregorio
pythondev_help_Gregorio_2017-06-28T20:04:02.526224
1,498,680,242.526224
83,549
pythondev
help
key and `jira_backup` its value
2017-06-28T20:04:18.528678
Margareta
pythondev_help_Margareta_2017-06-28T20:04:18.528678
1,498,680,258.528678
83,550
pythondev
help
this is example syntax i c ``` response = client.describe_instances( Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], ```
2017-06-28T20:05:19.538442
Margareta
pythondev_help_Margareta_2017-06-28T20:05:19.538442
1,498,680,319.538442
83,551
pythondev
help
Are you able to display this tag in your AWS console?
2017-06-28T20:06:04.545797
Gregorio
pythondev_help_Gregorio_2017-06-28T20:06:04.545797
1,498,680,364.545797
83,552
pythondev
help
yes
2017-06-28T20:06:10.546745
Margareta
pythondev_help_Margareta_2017-06-28T20:06:10.546745
1,498,680,370.546745
83,553
pythondev
help
hmm
2017-06-28T20:06:14.547289
Gregorio
pythondev_help_Gregorio_2017-06-28T20:06:14.547289
1,498,680,374.547289
83,554
pythondev
help
``` aws ec2 describe-instances --filters "Name=tag:Backup,Values=jira_backup" "Tags": [ { "Value": "jira_backup", "Key": "Backup" ```
2017-06-28T20:06:51.553007
Margareta
pythondev_help_Margareta_2017-06-28T20:06:51.553007
1,498,680,411.553007
83,555
pythondev
help
in `reservations = ec.describe_instances`, Where is ec defined?
2017-06-28T20:08:13.565264
Deedee
pythondev_help_Deedee_2017-06-28T20:08:13.565264
1,498,680,493.565264
83,556
pythondev
help
<@Deedee> `ec = boto3.client('ec2')`
2017-06-28T20:09:42.578492
Margareta
pythondev_help_Margareta_2017-06-28T20:09:42.578492
1,498,680,582.578492
83,557
pythondev
help
nevermind
2017-06-28T20:09:44.578874
Deedee
pythondev_help_Deedee_2017-06-28T20:09:44.578874
1,498,680,584.578874
83,558
pythondev
help
<https://gist.github.com/ryansb/c5807c6785f326e9510d> &lt;-- no brackets around tag-key
2017-06-28T20:11:39.596163
Deedee
pythondev_help_Deedee_2017-06-28T20:11:39.596163
1,498,680,699.596163
83,559
pythondev
help
<@Deedee> THANKS! ur example helped me to realize i was useing `'tag-key'` instead of `'tag-value'`
2017-06-28T20:14:25.620391
Margareta
pythondev_help_Margareta_2017-06-28T20:14:25.620391
1,498,680,865.620391
83,560
pythondev
help
and this is why things were failing
2017-06-28T20:14:45.623541
Margareta
pythondev_help_Margareta_2017-06-28T20:14:45.623541
1,498,680,885.623541
83,561
pythondev
help
full disclosure, NOT MY EXAMPLE hahaha
2017-06-28T20:15:37.631329
Deedee
pythondev_help_Deedee_2017-06-28T20:15:37.631329
1,498,680,937.631329
83,562
pythondev
help
well not ur example but whatever u provided as an example
2017-06-28T20:15:56.634031
Margareta
pythondev_help_Margareta_2017-06-28T20:15:56.634031
1,498,680,956.634031
83,563
pythondev
help
:stuck_out_tongue_winking_eye:
2017-06-28T20:15:58.634336
Margareta
pythondev_help_Margareta_2017-06-28T20:15:58.634336
1,498,680,958.634336
83,564
pythondev
help
glad it worked hahaha cheers
2017-06-28T20:16:27.638592
Deedee
pythondev_help_Deedee_2017-06-28T20:16:27.638592
1,498,680,987.638592
83,565
pythondev
help
Hi Guys... ```application.add_url_rule( apipath + "/apis/ view_func=api_view, methods=[ 'GET', 'PUT', 'PATCH', 'DELETE' ]) ``` This is how i'm adding rules to my flask-app but for ONLY patch request it's giving error as ``` &lt;html&gt;&lt;title&gt;405: Method Not Allowed&lt;/title&gt;&lt;body&gt;405: Method Not Allowed&lt;/body&gt;&lt;/html&gt;[ ``` Even if the method is there for PATCH, why PATCH isn't getting routed ? any mistakes or something to add up ?
2017-06-29T02:10:58.197929
Florene
pythondev_help_Florene_2017-06-29T02:10:58.197929
1,498,702,258.197929
83,566
pythondev
help
how do I make `01` to `Jan`. ?
2017-06-29T03:53:49.305421
Georgeann
pythondev_help_Georgeann_2017-06-29T03:53:49.305421
1,498,708,429.305421
83,567
pythondev
help
have a dictionary mapping which would pretty much do the trick
2017-06-29T03:57:21.353973
Shelly
pythondev_help_Shelly_2017-06-29T03:57:21.353973
1,498,708,641.353973
83,568
pythondev
help
it's complicated. the standard library won't help me?
2017-06-29T04:00:51.405669
Georgeann
pythondev_help_Georgeann_2017-06-29T04:00:51.405669
1,498,708,851.405669
83,569
pythondev
help
`data = {01: 'Jan'}`
2017-06-29T04:01:07.409664
Bella
pythondev_help_Bella_2017-06-29T04:01:07.409664
1,498,708,867.409664
83,570
pythondev
help
you can use `datetime` though
2017-06-29T04:01:11.410634
Shelly
pythondev_help_Shelly_2017-06-29T04:01:11.410634
1,498,708,871.410634
83,571
pythondev
help
our use `datetime`
2017-06-29T04:01:36.417125
Bella
pythondev_help_Bella_2017-06-29T04:01:36.417125
1,498,708,896.417125
83,572
pythondev
help
`calendar.month_abbr`
2017-06-29T04:05:55.479593
Georgeann
pythondev_help_Georgeann_2017-06-29T04:05:55.479593
1,498,709,155.479593
83,573
pythondev
help
yeah, i was looking at the same <@Georgeann>
2017-06-29T04:06:24.486494
Shelly
pythondev_help_Shelly_2017-06-29T04:06:24.486494
1,498,709,184.486494
83,574
pythondev
help
<@Georgeann> but it starts with empty item
2017-06-29T04:07:21.499545
Shelly
pythondev_help_Shelly_2017-06-29T04:07:21.499545
1,498,709,241.499545
83,575
pythondev
help
can't understand how to pass a number to return the month
2017-06-29T04:09:26.529268
Georgeann
pythondev_help_Georgeann_2017-06-29T04:09:26.529268
1,498,709,366.529268
83,576
pythondev
help
```In [99]: calendar.month_abbr[3] Out[99]: 'Mar'```
2017-06-29T04:14:13.598810
Georgeann
pythondev_help_Georgeann_2017-06-29T04:14:13.598810
1,498,709,653.59881
83,577
pythondev
help
```In[14]: calendar.month_abbr[int("03")] Out[14]: 'Mar'```
2017-06-29T04:21:08.702156
Shelly
pythondev_help_Shelly_2017-06-29T04:21:08.702156
1,498,710,068.702156
83,578
pythondev
help
eh I have a stupid issue with imports, what I am trying to do: <https://www.dropbox.com/s/oajyhncno1xz5p4/Screenshot%202017-06-29%2012.17.07.png?dl=0> what I get: `ModuleNotFoundError: No module named 'exercises'` the `playground` dir in the project root is a virtualenv dir, all worked fine until I added extra directory structure (the `python-mega-course-udemy` dir) any help please?
2017-06-29T06:20:08.526250
Jerica
pythondev_help_Jerica_2017-06-29T06:20:08.526250
1,498,717,208.52625
83,579
pythondev
help
`.exercises`?
2017-06-29T07:08:04.142428
Suellen
pythondev_help_Suellen_2017-06-29T07:08:04.142428
1,498,720,084.142428
83,580
pythondev
help
<@Suellen> hmm doesnt seem to work
2017-06-29T07:36:36.498155
Jerica
pythondev_help_Jerica_2017-06-29T07:36:36.498155
1,498,721,796.498155
83,581
pythondev
help
import pygame pygame.init() screen = pygame.display.set_mode((600,480)) done = False font = pygame.font.SysFont("comicsansms", 72) text = font.render("Hello, World", True, (0, 40, 0)) while not done: for event in pygame.event.get(): if event.type == pygame.QUIT: done = True if event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE: done = True screen.fill((255, 255, 255)) screen.blit(text, (320 - text.get_width() // 2, 240 - text.get_height() // 2)) pygame.display.flip()
2017-06-29T07:48:36.650848
Johna
pythondev_help_Johna_2017-06-29T07:48:36.650848
1,498,722,516.650848
83,582
pythondev
help
I WANT ONLY THE TEXT AND NOT THE CONTAINING PYGAME WINDOW
2017-06-29T07:49:20.660285
Johna
pythondev_help_Johna_2017-06-29T07:49:20.660285
1,498,722,560.660285
83,583
pythondev
help
No all-capitals please... if you're hoping to just draw the text on top of your desktop background, then unfortunately that's not (practically) possible
2017-06-29T07:52:07.696982
Gabriele
pythondev_help_Gabriele_2017-06-29T07:52:07.696982
1,498,722,727.696982
83,584
pythondev
help
That would require that you create a transparent window, which is beyond the scope of what pygame is for
2017-06-29T07:53:04.709280
Gabriele
pythondev_help_Gabriele_2017-06-29T07:53:04.709280
1,498,722,784.70928
83,585
pythondev
help
so is there a way to add text which can be moved anywhere on screen
2017-06-29T07:54:12.723696
Johna
pythondev_help_Johna_2017-06-29T07:54:12.723696
1,498,722,852.723696
83,586
pythondev
help
yes, but probably not with Pygame, and implementation depends on the platform
2017-06-29T07:55:05.735454
Gabriele
pythondev_help_Gabriele_2017-06-29T07:55:05.735454
1,498,722,905.735454
83,587
pythondev
help
python 2.7
2017-06-29T07:55:26.739969
Johna
pythondev_help_Johna_2017-06-29T07:55:26.739969
1,498,722,926.739969
83,588
pythondev
help
no, the actual operating system platform
2017-06-29T07:55:36.742134
Gabriele
pythondev_help_Gabriele_2017-06-29T07:55:36.742134
1,498,722,936.742134
83,589
pythondev
help
ubuntu
2017-06-29T07:55:49.745111
Johna
pythondev_help_Johna_2017-06-29T07:55:49.745111
1,498,722,949.745111
83,590
pythondev
help
because transparent windows depend on the underlying window manager
2017-06-29T07:55:51.745370
Gabriele
pythondev_help_Gabriele_2017-06-29T07:55:51.745370
1,498,722,951.74537
83,591
pythondev
help
pygame is not necessary
2017-06-29T07:56:11.749874
Johna
pythondev_help_Johna_2017-06-29T07:56:11.749874
1,498,722,971.749874
83,592
pythondev
help
unfortunately I can't help you
2017-06-29T07:56:28.753799
Gabriele
pythondev_help_Gabriele_2017-06-29T07:56:28.753799
1,498,722,988.753799
83,593
pythondev
help
?
2017-06-29T07:57:01.761114
Johna
pythondev_help_Johna_2017-06-29T07:57:01.761114
1,498,723,021.761114
83,594
pythondev
help
<@Johna> have you tried to google before asking here?
2017-06-29T07:58:49.785275
Collette
pythondev_help_Collette_2017-06-29T07:58:49.785275
1,498,723,129.785275
83,595
pythondev
help
<https://www.pygame.org/docs/ref/display.html#pygame.display.set_mode>
2017-06-29T07:58:52.785697
Collette
pythondev_help_Collette_2017-06-29T07:58:52.785697
1,498,723,132.785697
83,596
pythondev
help
i google but can't find anything good
2017-06-29T07:59:29.794226
Johna
pythondev_help_Johna_2017-06-29T07:59:29.794226
1,498,723,169.794226
83,597
pythondev
help
Pygame is a wrapper for SDL, and SDL doesn't support this natively. There are per-platform ways to do transparent windows, but I don't know what they are, so I can't recommend anything
2017-06-29T08:00:15.806719
Gabriele
pythondev_help_Gabriele_2017-06-29T08:00:15.806719
1,498,723,215.806719
83,598
pythondev
help
You will probably want to find some platform-level documentation for this task, and then look for a Python library or package that encapsulates that
2017-06-29T08:00:49.815350
Gabriele
pythondev_help_Gabriele_2017-06-29T08:00:49.815350
1,498,723,249.81535
83,599
pythondev
help
Oh, you _actually_ want a fully transparent window
2017-06-29T08:01:27.824980
Collette
pythondev_help_Collette_2017-06-29T08:01:27.824980
1,498,723,287.82498
83,600
pythondev
help
<@Jerica> did you get it figured out?
2017-06-29T09:57:00.009316
Deedee
pythondev_help_Deedee_2017-06-29T09:57:00.009316
1,498,730,220.009316
83,601
pythondev
help
<@Deedee> I just did, I added an init file into the wrapping dir and renamed it to have underscores not hyphens, I had no idea python would ignore hyphenated dir names
2017-06-29T10:03:15.172601
Jerica
pythondev_help_Jerica_2017-06-29T10:03:15.172601
1,498,730,595.172601
83,602