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
but I see what you mean
2017-10-21T12:02:51.000101
Winnie
pythondev_help_Winnie_2017-10-21T12:02:51.000101
1,508,587,371.000101
97,703
pythondev
help
how are mbid's generated?
2017-10-21T12:07:49.000081
Winnie
pythondev_help_Winnie_2017-10-21T12:07:49.000081
1,508,587,669.000081
97,704
pythondev
help
So here’s MBID info: <https://musicbrainz.org/doc/MusicBrainz_Identifier>
2017-10-21T12:15:37.000032
Kenny
pythondev_help_Kenny_2017-10-21T12:15:37.000032
1,508,588,137.000032
97,705
pythondev
help
I’m downloading the data from <http://Last.fm|Last.fm>, so I think it’s up to that community to attach an artist/album/track to its respective MBID, if that MBID exists
2017-10-21T12:16:20.000071
Kenny
pythondev_help_Kenny_2017-10-21T12:16:20.000071
1,508,588,180.000071
97,706
pythondev
help
<@Kenny> you could try generating the correct mbids
2017-10-21T21:51:50.000041
Winnie
pythondev_help_Winnie_2017-10-21T21:51:50.000041
1,508,622,710.000041
97,707
pythondev
help
Is there a way I can implement something like this using Jupiter or something? <https://github.com/toddnestor/mazerace/blob/master/README.md>
2017-10-22T00:19:02.000021
Bruno
pythondev_help_Bruno_2017-10-22T00:19:02.000021
1,508,631,542.000021
97,708
pythondev
help
how do I tell python to import a package from my current directory instead of where it was installed?
2017-10-22T06:22:52.000017
Winnie
pythondev_help_Winnie_2017-10-22T06:22:52.000017
1,508,653,372.000017
97,709
pythondev
help
<@Winnie> `from . import foo`
2017-10-22T06:23:58.000011
Collette
pythondev_help_Collette_2017-10-22T06:23:58.000011
1,508,653,438.000011
97,710
pythondev
help
Assuming your code is organized into a package, of course (if not, it should be).
2017-10-22T06:24:25.000042
Collette
pythondev_help_Collette_2017-10-22T06:24:25.000042
1,508,653,465.000042
97,711
pythondev
help
I have an issue
2017-10-22T06:25:06.000040
Winnie
pythondev_help_Winnie_2017-10-22T06:25:06.000040
1,508,653,506.00004
97,712
pythondev
help
``` ls code run.py module_container ls module_container module README.md ls module_container/module ```
2017-10-22T06:26:39.000018
Winnie
pythondev_help_Winnie_2017-10-22T06:26:39.000018
1,508,653,599.000018
97,713
pythondev
help
when I do from . import module_container it says it can't import
2017-10-22T06:27:28.000062
Winnie
pythondev_help_Winnie_2017-10-22T06:27:28.000062
1,508,653,648.000062
97,714
pythondev
help
<http://bit.ly/pypackages>
2017-10-22T06:27:47.000066
Collette
pythondev_help_Collette_2017-10-22T06:27:47.000066
1,508,653,667.000066
97,715
pythondev
help
No `__init__.py` in the folders? That's your problem
2017-10-22T06:29:04.000027
Meg
pythondev_help_Meg_2017-10-22T06:29:04.000027
1,508,653,744.000027
97,716
pythondev
help
You just have a regular directory structure and not python packages
2017-10-22T06:29:32.000015
Meg
pythondev_help_Meg_2017-10-22T06:29:32.000015
1,508,653,772.000015
97,717
pythondev
help
oh I'm starting to understand imports more now
2017-10-22T06:41:39.000002
Winnie
pythondev_help_Winnie_2017-10-22T06:41:39.000002
1,508,654,499.000002
97,718
pythondev
help
thanks <@Meg> <@Collette>
2017-10-22T06:41:46.000017
Winnie
pythondev_help_Winnie_2017-10-22T06:41:46.000017
1,508,654,506.000017
97,719
pythondev
help
In SQLAlchemy, I have 3 classes ``` class Thread(Base): class Group(Thread): class Room(Group): ``` I want a table for `groups` and a table for `rooms` and I want them to inherit all their superclasses variables But I'm getting this error `sqlalchemy.exc.ArgumentError: Mapper Mapper|Room|rooms could not assemble any primary key columns for mapped table 'rooms'` what am I missing?
2017-10-22T07:19:34.000001
Winnie
pythondev_help_Winnie_2017-10-22T07:19:34.000001
1,508,656,774.000001
97,720
pythondev
help
gonna have to show how you define those tables
2017-10-22T07:45:46.000017
Meg
pythondev_help_Meg_2017-10-22T07:45:46.000017
1,508,658,346.000017
97,721
pythondev
help
remember, we don’t know how you wrote the code
2017-10-22T07:46:31.000005
Meg
pythondev_help_Meg_2017-10-22T07:46:31.000005
1,508,658,391.000005
97,722
pythondev
help
that said, I suspect you have multiple primary keys
2017-10-22T07:47:32.000025
Meg
pythondev_help_Meg_2017-10-22T07:47:32.000025
1,508,658,452.000025
97,723
pythondev
help
<https://stackoverflow.com/questions/24872541/could-not-assemble-any-primary-key-columns-for-mapped-table>
2017-10-22T07:47:33.000046
Meg
pythondev_help_Meg_2017-10-22T07:47:33.000046
1,508,658,453.000046
97,724
pythondev
help
<@Meg> this is what I have so far <https://github.com/ekohilas/fbchat/blob/sqlalchemy/fbchat/models.py> it wasn't working when each class didn't have a primary key, which I thought would be fine since sqlalch would have each class make its own primary key since it inherits from base?
2017-10-22T07:57:20.000001
Winnie
pythondev_help_Winnie_2017-10-22T07:57:20.000001
1,508,659,040.000001
97,725
pythondev
help
looking in the actual code for `declarative_base`, it doesn’t seem like it actually sets primary key attribute by default
2017-10-22T08:14:46.000034
Meg
pythondev_help_Meg_2017-10-22T08:14:46.000034
1,508,660,086.000034
97,726
pythondev
help
<https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/ext/declarative/api.py#L268>
2017-10-22T08:15:17.000043
Meg
pythondev_help_Meg_2017-10-22T08:15:17.000043
1,508,660,117.000043
97,727
pythondev
help
well I set the primary key inside the base class
2017-10-22T08:20:08.000011
Winnie
pythondev_help_Winnie_2017-10-22T08:20:08.000011
1,508,660,408.000011
97,728
pythondev
help
but it was complaining it wasn't set inside the subclass's subclass
2017-10-22T08:20:32.000010
Winnie
pythondev_help_Winnie_2017-10-22T08:20:32.000010
1,508,660,432.00001
97,729
pythondev
help
Anyone having issues with upgrading to High Sierra on your imac?
2017-10-22T11:12:06.000057
Elsie
pythondev_help_Elsie_2017-10-22T11:12:06.000057
1,508,670,726.000057
97,730
pythondev
help
Does anyone know of a good fix?
2017-10-22T11:54:36.000014
Sonya
pythondev_help_Sonya_2017-10-22T11:54:36.000014
1,508,673,276.000014
97,731
pythondev
help
<@Sonya> for...?
2017-10-22T11:59:30.000074
Winnie
pythondev_help_Winnie_2017-10-22T11:59:30.000074
1,508,673,570.000074
97,732
pythondev
help
Installing awscli. I run pip install awscli --upgrade --version but when I run aws --version I get the reply that aws command not found.
2017-10-22T12:00:49.000036
Sonya
pythondev_help_Sonya_2017-10-22T12:00:49.000036
1,508,673,649.000036
97,733
pythondev
help
No pip install awscli --upgrade --user
2017-10-22T12:01:24.000035
Sonya
pythondev_help_Sonya_2017-10-22T12:01:24.000035
1,508,673,684.000035
97,734
pythondev
help
<@Sonya> using system python? OSX?
2017-10-22T12:01:42.000037
Collette
pythondev_help_Collette_2017-10-22T12:01:42.000037
1,508,673,702.000037
97,735
pythondev
help
python 2.7 and OSX 10.12
2017-10-22T12:02:24.000029
Sonya
pythondev_help_Sonya_2017-10-22T12:02:24.000029
1,508,673,744.000029
97,736
pythondev
help
It's good idea to avoid using system python
2017-10-22T12:07:01.000079
Collette
pythondev_help_Collette_2017-10-22T12:07:01.000079
1,508,674,021.000079
97,737
pythondev
help
Install another python via `brew` or `pyenv`
2017-10-22T12:07:17.000022
Collette
pythondev_help_Collette_2017-10-22T12:07:17.000022
1,508,674,037.000022
97,738
pythondev
help
Okay, thanks <@Collette>
2017-10-22T12:10:26.000063
Sonya
pythondev_help_Sonya_2017-10-22T12:10:26.000063
1,508,674,226.000063
97,739
pythondev
help
<@Elsie> no issues on Sierra for me
2017-10-22T21:51:17.000083
Carmella
pythondev_help_Carmella_2017-10-22T21:51:17.000083
1,508,709,077.000083
97,740
pythondev
help
I’m using argparse to parse the list of named arguments that get passed to a script. how can I accept both positional arguments and named arguments. for example, I want to run my script like this: ```./space.py /var/www/project --recursive=true```
2017-10-23T04:34:46.000190
Ines
pythondev_help_Ines_2017-10-23T04:34:46.000190
1,508,733,286.00019
97,741
pythondev
help
<@Ines> which tutorial you're following?
2017-10-23T04:35:22.000140
Collette
pythondev_help_Collette_2017-10-23T04:35:22.000140
1,508,733,322.00014
97,742
pythondev
help
none actually. going blind using official documentation, stackoverflow answers, various youtube tutorials
2017-10-23T04:36:26.000339
Ines
pythondev_help_Ines_2017-10-23T04:36:26.000339
1,508,733,386.000339
97,743
pythondev
help
<https://docs.python.org/3/library/argparse.html#example> The very first example contains both positional and optional arguments
2017-10-23T04:37:01.000289
Collette
pythondev_help_Collette_2017-10-23T04:37:01.000289
1,508,733,421.000289
97,744
pythondev
help
thank you!
2017-10-23T04:37:22.000103
Ines
pythondev_help_Ines_2017-10-23T04:37:22.000103
1,508,733,442.000103
97,745
pythondev
help
Good morning Everyone, noob here. I am looking to insert a python variable into a M$SQL query. Process would be something like: Script prompts user for site number Site number is defined as a variable Script connects to M$SQL and uses the site number variable within the query Script can then either create new python variables directly from SQL query results *or* return SQL query results to a list or tuple for reading/manipulation. I have looked into pymssql and pypyodbc and either I am too noob to catch onto something that's already in my face, or I don't see variables as a possible value to include in a SQL query. Any pointer or help are greatly appreciated! Thanks!
2017-10-23T08:14:28.000474
Jeanice
pythondev_help_Jeanice_2017-10-23T08:14:28.000474
1,508,746,468.000474
97,746
pythondev
help
Looks like pymssql exposes the commonly-used Python DB-API: <http://pymssql.org/en/stable/pymssql_examples.html#basic-features-strict-db-api-compliance>
2017-10-23T08:17:23.000347
Cynthia
pythondev_help_Cynthia_2017-10-23T08:17:23.000347
1,508,746,643.000347
97,747
pythondev
help
It looks like pypyodbc is also DB-API compliant. I'd be surprised if there's any commonly-used Python database adapters that aren't.
2017-10-23T08:21:56.000154
Cynthia
pythondev_help_Cynthia_2017-10-23T08:21:56.000154
1,508,746,916.000154
97,748
pythondev
help
sqlalchemy is often the go to
2017-10-23T08:24:56.000095
Ciera
pythondev_help_Ciera_2017-10-23T08:24:56.000095
1,508,747,096.000095
97,749
pythondev
help
there is a full ORM but also the core that format your sql querries
2017-10-23T08:25:14.000170
Ciera
pythondev_help_Ciera_2017-10-23T08:25:14.000170
1,508,747,114.00017
97,750
pythondev
help
Using pip install textract
2017-10-23T08:36:57.000141
Chasity
pythondev_help_Chasity_2017-10-23T08:36:57.000141
1,508,747,817.000141
97,751
pythondev
help
what's the output of `pip --version`?
2017-10-23T08:40:42.000212
Cynthia
pythondev_help_Cynthia_2017-10-23T08:40:42.000212
1,508,748,042.000212
97,752
pythondev
help
pip 10.0.0.dev0 from /Library/Python/2.7/site-packages/pip-10.0.0.dev0-py2.7.egg (python 2.7)
2017-10-23T08:41:36.000109
Chasity
pythondev_help_Chasity_2017-10-23T08:41:36.000109
1,508,748,096.000109
97,753
pythondev
help
so, lots of times when you install to system python, it won’t let you do it due to permissions
2017-10-23T08:42:19.000285
Meg
pythondev_help_Meg_2017-10-23T08:42:19.000285
1,508,748,139.000285
97,754
pythondev
help
when you ran `pip install textextract`, did you get any permision errors?
2017-10-23T08:42:50.000189
Meg
pythondev_help_Meg_2017-10-23T08:42:50.000189
1,508,748,170.000189
97,755
pythondev
help
Yes. I added sudo then and it installed properly.
2017-10-23T08:43:04.000343
Chasity
pythondev_help_Chasity_2017-10-23T08:43:04.000343
1,508,748,184.000343
97,756
pythondev
help
Also, how did you manage to install a development version of `pip`?
2017-10-23T08:43:14.000123
Collette
pythondev_help_Collette_2017-10-23T08:43:14.000123
1,508,748,194.000123
97,757
pythondev
help
hmm, I just ran this command - sudo easy_install pip
2017-10-23T08:43:43.000094
Chasity
pythondev_help_Chasity_2017-10-23T08:43:43.000094
1,508,748,223.000094
97,758
pythondev
help
:facepalm:
2017-10-23T08:43:48.000612
Collette
pythondev_help_Collette_2017-10-23T08:43:48.000612
1,508,748,228.000612
97,759
pythondev
help
And I got that version of pip.
2017-10-23T08:43:52.000321
Chasity
pythondev_help_Chasity_2017-10-23T08:43:52.000321
1,508,748,232.000321
97,760
pythondev
help
Great news, your machine is now a mess.
2017-10-23T08:44:04.000523
Collette
pythondev_help_Collette_2017-10-23T08:44:04.000523
1,508,748,244.000523
97,761
pythondev
help
basically, pip already was installed on your system
2017-10-23T08:44:38.000180
Meg
pythondev_help_Meg_2017-10-23T08:44:38.000180
1,508,748,278.00018
97,762
pythondev
help
and there are a number of system-critical programs that are pinned to that python version
2017-10-23T08:44:52.000156
Meg
pythondev_help_Meg_2017-10-23T08:44:52.000156
1,508,748,292.000156
97,763
pythondev
help
so when you overwrote that, you’ve possibly messed up a few things
2017-10-23T08:45:18.000207
Meg
pythondev_help_Meg_2017-10-23T08:45:18.000207
1,508,748,318.000207
97,764
pythondev
help
if you had just done `pip install -U pip`, that would have worked fine
2017-10-23T08:45:41.000125
Meg
pythondev_help_Meg_2017-10-23T08:45:41.000125
1,508,748,341.000125
97,765
pythondev
help
<@Collette> I was not aware of how important that command would be. <@Meg> How do I go about fixing it ?
2017-10-23T08:45:52.000383
Chasity
pythondev_help_Chasity_2017-10-23T08:45:52.000383
1,508,748,352.000383
97,766
pythondev
help
yeah… protip: _never_ run pip as root (i.e. with sudo)
2017-10-23T08:46:02.000434
Cynthia
pythondev_help_Cynthia_2017-10-23T08:46:02.000434
1,508,748,362.000434
97,767
pythondev
help
Guys, read about Virtual Environments!!! It will save you many hours of your future llife!!!
2017-10-23T08:46:20.000010
Sherryl
pythondev_help_Sherryl_2017-10-23T08:46:20.000010
1,508,748,380.00001
97,768
pythondev
help
or if you do, know what you’re doing.
2017-10-23T08:46:22.000078
Meg
pythondev_help_Meg_2017-10-23T08:46:22.000078
1,508,748,382.000078
97,769
pythondev
help
<@Cynthia> Ok. I will definitely keep that in mind.
2017-10-23T08:46:36.000391
Chasity
pythondev_help_Chasity_2017-10-23T08:46:36.000391
1,508,748,396.000391
97,770
pythondev
help
the consequences of doing so tend to be irreversible
2017-10-23T08:46:38.000247
Cynthia
pythondev_help_Cynthia_2017-10-23T08:46:38.000247
1,508,748,398.000247
97,771
pythondev
help
and also, don't run easy_install ever, especially to install pip
2017-10-23T08:47:30.000355
Cynthia
pythondev_help_Cynthia_2017-10-23T08:47:30.000355
1,508,748,450.000355
97,772
pythondev
help
there exist ensurepip and get-pip.py for that scenario
2017-10-23T08:47:48.000565
Cynthia
pythondev_help_Cynthia_2017-10-23T08:47:48.000565
1,508,748,468.000565
97,773
pythondev
help
Oh ok. I will do that going forward.
2017-10-23T08:48:08.000498
Chasity
pythondev_help_Chasity_2017-10-23T08:48:08.000498
1,508,748,488.000498
97,774
pythondev
help
that said, there’s also the issue of how easy it is to do something like this
2017-10-23T08:48:34.000589
Meg
pythondev_help_Meg_2017-10-23T08:48:34.000589
1,508,748,514.000589
97,775
pythondev
help
<@Chasity> don't worry, a lot of people learn this the hard way :stuck_out_tongue:
2017-10-23T08:48:48.000475
Winnie
pythondev_help_Winnie_2017-10-23T08:48:48.000475
1,508,748,528.000475
97,776
pythondev
help
yeah, and it really shouldn’t be this easy to screw up this way :confused:
2017-10-23T08:49:08.000504
Meg
pythondev_help_Meg_2017-10-23T08:49:08.000504
1,508,748,548.000504
97,777
pythondev
help
Ok, Can I remove pip ? Meaning the one I overrode ?
2017-10-23T08:50:59.000458
Chasity
pythondev_help_Chasity_2017-10-23T08:50:59.000458
1,508,748,659.000458
97,778
pythondev
help
the problem is that when installing something you are used to use `sudo` :confused:
2017-10-23T08:51:20.000018
Ciera
pythondev_help_Ciera_2017-10-23T08:51:20.000018
1,508,748,680.000018
97,779
pythondev
help
you have a machine backup, right? :stuck_out_tongue:
2017-10-23T08:51:39.000413
Junita
pythondev_help_Junita_2017-10-23T08:51:39.000413
1,508,748,699.000413
97,780
pythondev
help
Yup.
2017-10-23T08:51:57.000038
Chasity
pythondev_help_Chasity_2017-10-23T08:51:57.000038
1,508,748,717.000038
97,781
pythondev
help
yeah the best way would be to reinstall. Otherwise you might have trouble in the future that will be really hard to debug
2017-10-23T08:52:27.000422
Ciera
pythondev_help_Ciera_2017-10-23T08:52:27.000422
1,508,748,747.000422
97,782
pythondev
help
yeah I’d restore from your last backup
2017-10-23T08:52:45.000253
Junita
pythondev_help_Junita_2017-10-23T08:52:45.000253
1,508,748,765.000253
97,783
pythondev
help
and while restoring an article on virtualenv is needed :stuck_out_tongue:
2017-10-23T08:53:14.000022
Ciera
pythondev_help_Ciera_2017-10-23T08:53:14.000022
1,508,748,794.000022
97,784
pythondev
help
<@Ciera> I’ll probably restore to previous backup, <@Junita> Thank you.
2017-10-23T08:53:36.000091
Chasity
pythondev_help_Chasity_2017-10-23T08:53:36.000091
1,508,748,816.000091
97,785
pythondev
help
np. and yeah, this sort of stuff happens to lots of people starting out
2017-10-23T08:54:09.000635
Junita
pythondev_help_Junita_2017-10-23T08:54:09.000635
1,508,748,849.000635
97,786
pythondev
help
<http://docs.python-guide.org/en/latest/starting/installation/>
2017-10-23T08:54:42.000303
Collette
pythondev_help_Collette_2017-10-23T08:54:42.000303
1,508,748,882.000303
97,787
pythondev
help
Thank you everyone, for helping me understand. <@Collette> <@Meg> <@Winnie> <@Junita> <@Ciera> <@Cynthia>
2017-10-23T08:55:10.000113
Chasity
pythondev_help_Chasity_2017-10-23T08:55:10.000113
1,508,748,910.000113
97,788
pythondev
help
pipenv is really nice :ok_hand:
2017-10-23T08:56:00.000145
Cynthia
pythondev_help_Cynthia_2017-10-23T08:56:00.000145
1,508,748,960.000145
97,789
pythondev
help
I've read through the linked documentation and I cannot seem to decipher how to use the python defined variable within the query. Their examples just don't lay it out in a way that is making it click for me.
2017-10-23T10:48:20.000557
Jeanice
pythondev_help_Jeanice_2017-10-23T10:48:20.000557
1,508,755,700.000557
97,790
pythondev
help
I need to move a lot of files from a network drive to 2 separate external USB 2 drives in a Citrix environment (no idea on the hardware specs for USB Bus) I'm thinking that I can utilize multithreading or multiprocessing to speed this up... If using a pool of 2, what's the proper python way to assign a drive letter to each worker so they are writing to each drive at the same time?
2017-10-23T11:56:36.000149
Rikki
pythondev_help_Rikki_2017-10-23T11:56:36.000149
1,508,759,796.000149
97,791
pythondev
help
is this on linux or windows?
2017-10-23T11:58:10.000459
Meg
pythondev_help_Meg_2017-10-23T11:58:10.000459
1,508,759,890.000459
97,792
pythondev
help
because if you’re on linux, use rsync with parallel
2017-10-23T11:58:30.000333
Meg
pythondev_help_Meg_2017-10-23T11:58:30.000333
1,508,759,910.000333
97,793
pythondev
help
<https://stackoverflow.com/questions/24058544/speed-up-rsync-with-simultaneous-concurrent-file-transfers>
2017-10-23T11:59:00.000451
Meg
pythondev_help_Meg_2017-10-23T11:59:00.000451
1,508,759,940.000451
97,794
pythondev
help
Sadly, windows.
2017-10-23T12:15:34.000360
Rikki
pythondev_help_Rikki_2017-10-23T12:15:34.000360
1,508,760,934.00036
97,795
pythondev
help
Citrix is locked down so I don't have access to powershell or cmd, just the shutil in python
2017-10-23T12:16:13.000159
Rikki
pythondev_help_Rikki_2017-10-23T12:16:13.000159
1,508,760,973.000159
97,796
pythondev
help
they’re not making it easy on you, huh?
2017-10-23T12:19:07.000436
Meg
pythondev_help_Meg_2017-10-23T12:19:07.000436
1,508,761,147.000436
97,797
pythondev
help
<http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp>
2017-10-23T12:20:00.000688
Meg
pythondev_help_Meg_2017-10-23T12:20:00.000688
1,508,761,200.000688
97,798
pythondev
help
would you be able to install that?
2017-10-23T12:20:12.000106
Meg
pythondev_help_Meg_2017-10-23T12:20:12.000106
1,508,761,212.000106
97,799
pythondev
help
I don't know. I can definitely try. I have to keep track of each file as they like to reboot citrix at any point
2017-10-23T12:25:08.000183
Rikki
pythondev_help_Rikki_2017-10-23T12:25:08.000183
1,508,761,508.000183
97,800
pythondev
help
ok, are they adding these requirements just out of fun to make your life difficult? :smile:
2017-10-23T12:26:00.000099
Meg
pythondev_help_Meg_2017-10-23T12:26:00.000099
1,508,761,560.000099
97,801
pythondev
help
Using SQLite as i have to cherrypick what files didn't complete the last time they attempted this with File Explorer
2017-10-23T12:26:02.000554
Rikki
pythondev_help_Rikki_2017-10-23T12:26:02.000554
1,508,761,562.000554
97,802