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 the fact that it points to 2.7 doesn't sound right, does it
2017-11-25T16:30:33.000036
Zelma
pythondev_help_Zelma_2017-11-25T16:30:33.000036
1,511,627,433.000036
101,103
pythondev
help
can you do `which pip` ?
2017-11-25T16:30:37.000028
Ciera
pythondev_help_Ciera_2017-11-25T16:30:37.000028
1,511,627,437.000028
101,104
pythondev
help
and `python --version`
2017-11-25T16:30:46.000023
Ciera
pythondev_help_Ciera_2017-11-25T16:30:46.000023
1,511,627,446.000023
101,105
pythondev
help
but return the correct thing
2017-11-25T16:31:03.000007
Zelma
pythondev_help_Zelma_2017-11-25T16:31:03.000007
1,511,627,463.000007
101,106
pythondev
help
python_test/bin/pip and v3.6.2
2017-11-25T16:31:16.000008
Zelma
pythondev_help_Zelma_2017-11-25T16:31:16.000008
1,511,627,476.000008
101,107
pythondev
help
anyone here good with matplotlib, specifically the FuncAnimation aspect?
2017-11-25T16:31:40.000084
Lakeesha
pythondev_help_Lakeesha_2017-11-25T16:31:40.000084
1,511,627,500.000084
101,108
pythondev
help
can you do `pip install requests` and copy the error here if you got one :slightly_smiling_face:
2017-11-25T16:32:06.000020
Ciera
pythondev_help_Ciera_2017-11-25T16:32:06.000020
1,511,627,526.00002
101,109
pythondev
help
when i run pip install pyside Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-z7ojhvbi/pyside/
2017-11-25T16:32:13.000005
Zelma
pythondev_help_Zelma_2017-11-25T16:32:13.000005
1,511,627,533.000005
101,110
pythondev
help
It downloaded and installed everything successful
2017-11-25T16:33:02.000008
Zelma
pythondev_help_Zelma_2017-11-25T16:33:02.000008
1,511,627,582.000008
101,111
pythondev
help
but running pip install pyside still gives me the same error
2017-11-25T16:33:21.000045
Zelma
pythondev_help_Zelma_2017-11-25T16:33:21.000045
1,511,627,601.000045
101,112
pythondev
help
that might be a problem with pyside then
2017-11-25T16:33:48.000063
Ciera
pythondev_help_Ciera_2017-11-25T16:33:48.000063
1,511,627,628.000063
101,113
pythondev
help
I'm not really familliar with it :confused:
2017-11-25T16:33:58.000017
Ciera
pythondev_help_Ciera_2017-11-25T16:33:58.000017
1,511,627,638.000017
101,114
pythondev
help
"Both PySide source and binary packages for all supported platforms are available from the Python Package Index (PyPI). Thanks to this, PySide can be downloaded and installed using `pip` installer. "
2017-11-25T16:34:34.000053
Zelma
pythondev_help_Zelma_2017-11-25T16:34:34.000053
1,511,627,674.000053
101,115
pythondev
help
can you do `pip install -U pip setuptools`
2017-11-25T16:34:43.000051
Ciera
pythondev_help_Ciera_2017-11-25T16:34:43.000051
1,511,627,683.000051
101,116
pythondev
help
it will update pip and setuptools and then retry
2017-11-25T16:34:59.000002
Ciera
pythondev_help_Ciera_2017-11-25T16:34:59.000002
1,511,627,699.000002
101,117
pythondev
help
Requirement already up-to-date: pip in ./lib/python3.6/site-packages
2017-11-25T16:35:12.000086
Zelma
pythondev_help_Zelma_2017-11-25T16:35:12.000086
1,511,627,712.000086
101,118
pythondev
help
Successfully installed setuptools-38.1.0
2017-11-25T16:35:26.000036
Zelma
pythondev_help_Zelma_2017-11-25T16:35:26.000036
1,511,627,726.000036
101,119
pythondev
help
Ahh i totally didn't see this output.. i just noticed the red error
2017-11-25T16:36:39.000004
Zelma
pythondev_help_Zelma_2017-11-25T16:36:39.000004
1,511,627,799.000004
101,120
pythondev
help
but it clearly says " Complete output from command python setup.py egg_info: only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]"
2017-11-25T16:36:45.000007
Zelma
pythondev_help_Zelma_2017-11-25T16:36:45.000007
1,511,627,805.000007
101,121
pythondev
help
My bad
2017-11-25T16:36:48.000031
Zelma
pythondev_help_Zelma_2017-11-25T16:36:48.000031
1,511,627,808.000031
101,122
pythondev
help
that explains that :slightly_smiling_face:
2017-11-25T16:37:24.000029
Ciera
pythondev_help_Ciera_2017-11-25T16:37:24.000029
1,511,627,844.000029
101,123
pythondev
help
I'm not sure what pyside does but there might be some more uptodate packages out there
2017-11-25T16:37:51.000067
Ciera
pythondev_help_Ciera_2017-11-25T16:37:51.000067
1,511,627,871.000067
101,124
pythondev
help
they seem to have binaries for pyside too
2017-11-25T16:38:48.000005
Zelma
pythondev_help_Zelma_2017-11-25T16:38:48.000005
1,511,627,928.000005
101,125
pythondev
help
<http://wiki.qt.io/PySide_Binaries_Linux>
2017-11-25T16:38:48.000094
Zelma
pythondev_help_Zelma_2017-11-25T16:38:48.000094
1,511,627,928.000094
101,126
pythondev
help
But i was going to try this and just use python 3.4
2017-11-25T16:39:02.000043
Zelma
pythondev_help_Zelma_2017-11-25T16:39:02.000043
1,511,627,942.000043
101,127
pythondev
help
Hey folks, trying to make a post request from my browser to a local flask app but keep getting the message ```Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.``` any ideas?
2017-11-25T17:45:57.000028
Corrinne
pythondev_help_Corrinne_2017-11-25T17:45:57.000028
1,511,631,957.000028
101,128
pythondev
help
That’ll be CORS
2017-11-25T17:46:57.000025
Temika
pythondev_help_Temika_2017-11-25T17:46:57.000025
1,511,632,017.000025
101,129
pythondev
help
works in postman like a dream
2017-11-25T17:47:09.000077
Corrinne
pythondev_help_Corrinne_2017-11-25T17:47:09.000077
1,511,632,029.000077
101,130
pythondev
help
Not entirely sure what the procedure to fix it on Flask is, but it’ll be due to you making a request in your browser from a different location to that of your server address I think?
2017-11-25T17:47:30.000032
Temika
pythondev_help_Temika_2017-11-25T17:47:30.000032
1,511,632,050.000032
101,131
pythondev
help
Ok I'll do some digging. If anyone has got a solution feel free to share :slightly_smiling_face:
2017-11-25T17:48:12.000045
Corrinne
pythondev_help_Corrinne_2017-11-25T17:48:12.000045
1,511,632,092.000045
101,132
pythondev
help
<https://pypi.python.org/pypi/Flask-Cors> is what is generally used by the look of it
2017-11-25T17:48:44.000028
Temika
pythondev_help_Temika_2017-11-25T17:48:44.000028
1,511,632,124.000028
101,133
pythondev
help
<@Temika> Flask-cors worked like a charm. Cheers dude
2017-11-25T17:52:56.000067
Corrinne
pythondev_help_Corrinne_2017-11-25T17:52:56.000067
1,511,632,376.000067
101,134
pythondev
help
Glad to hear it worked :thumbsup::skin-tone-2:
2017-11-25T17:54:11.000001
Temika
pythondev_help_Temika_2017-11-25T17:54:11.000001
1,511,632,451.000001
101,135
pythondev
help
hey guys
2017-11-25T21:07:01.000049
Zelma
pythondev_help_Zelma_2017-11-25T21:07:01.000049
1,511,644,021.000049
101,136
pythondev
help
Is there a way to install all python dependencies?
2017-11-25T21:07:10.000030
Zelma
pythondev_help_Zelma_2017-11-25T21:07:10.000030
1,511,644,030.00003
101,137
pythondev
help
like npm install
2017-11-25T21:07:13.000066
Zelma
pythondev_help_Zelma_2017-11-25T21:07:13.000066
1,511,644,033.000066
101,138
pythondev
help
pip
2017-11-25T21:07:17.000075
Corrinne
pythondev_help_Corrinne_2017-11-25T21:07:17.000075
1,511,644,037.000075
101,139
pythondev
help
well pip install does not work
2017-11-25T21:07:27.000046
Zelma
pythondev_help_Zelma_2017-11-25T21:07:27.000046
1,511,644,047.000046
101,140
pythondev
help
<https://docs.python.org/3/installing/index.html>
2017-11-25T21:07:50.000011
Corrinne
pythondev_help_Corrinne_2017-11-25T21:07:50.000011
1,511,644,070.000011
101,141
pythondev
help
<@Zelma> in python you'll often see `pip install -r requirements.txt`
2017-11-25T21:08:35.000003
Collette
pythondev_help_Collette_2017-11-25T21:08:35.000003
1,511,644,115.000003
101,142
pythondev
help
whats this requirements.txt file? Where does it come from?
2017-11-25T21:09:19.000030
Zelma
pythondev_help_Zelma_2017-11-25T21:09:19.000030
1,511,644,159.00003
101,143
pythondev
help
I just want to install all dependencies of my current python file
2017-11-25T21:09:35.000069
Zelma
pythondev_help_Zelma_2017-11-25T21:09:35.000069
1,511,644,175.000069
101,144
pythondev
help
Have you downloaded and installed python?
2017-11-25T21:09:37.000023
Corrinne
pythondev_help_Corrinne_2017-11-25T21:09:37.000023
1,511,644,177.000023
101,145
pythondev
help
yes..
2017-11-25T21:09:42.000008
Zelma
pythondev_help_Zelma_2017-11-25T21:09:42.000008
1,511,644,182.000008
101,146
pythondev
help
<@Zelma> you need to list them in `requirements.txt`
2017-11-25T21:09:56.000020
Collette
pythondev_help_Collette_2017-11-25T21:09:56.000020
1,511,644,196.00002
101,147
pythondev
help
Why do i have to do that manually?
2017-11-25T21:10:16.000036
Zelma
pythondev_help_Zelma_2017-11-25T21:10:16.000036
1,511,644,216.000036
101,148
pythondev
help
Is there no tool for that?
2017-11-25T21:10:25.000015
Zelma
pythondev_help_Zelma_2017-11-25T21:10:25.000015
1,511,644,225.000015
101,149
pythondev
help
There is, `pipenv`, <http://docs.python-guide.org/en/latest/dev/virtualenvs/#installing-packages-for-your-project>
2017-11-25T21:10:34.000019
Collette
pythondev_help_Collette_2017-11-25T21:10:34.000019
1,511,644,234.000019
101,150
pythondev
help
i already use
2017-11-25T21:10:51.000054
Zelma
pythondev_help_Zelma_2017-11-25T21:10:51.000054
1,511,644,251.000054
101,151
pythondev
help
venv
2017-11-25T21:10:53.000037
Zelma
pythondev_help_Zelma_2017-11-25T21:10:53.000037
1,511,644,253.000037
101,152
pythondev
help
<@Zelma> have you installed dependencies already into this venv?
2017-11-25T21:11:29.000009
Collette
pythondev_help_Collette_2017-11-25T21:11:29.000009
1,511,644,289.000009
101,153
pythondev
help
if so, you can do `pip freeze &gt; requirements.txt`
2017-11-25T21:11:42.000028
Collette
pythondev_help_Collette_2017-11-25T21:11:42.000028
1,511,644,302.000028
101,154
pythondev
help
Ah i see..
2017-11-25T21:13:58.000010
Zelma
pythondev_help_Zelma_2017-11-25T21:13:58.000010
1,511,644,438.00001
101,155
pythondev
help
i have not installed anything yet.. i am getting an error unfortunately
2017-11-25T21:14:13.000011
Zelma
pythondev_help_Zelma_2017-11-25T21:14:13.000011
1,511,644,453.000011
101,156
pythondev
help
<@Zelma> next time, before asking please read <https://mikeash.com/getting_answers.html>
2017-11-25T21:14:48.000013
Collette
pythondev_help_Collette_2017-11-25T21:14:48.000013
1,511,644,488.000013
101,157
pythondev
help
before asking what?
2017-11-25T21:15:26.000053
Zelma
pythondev_help_Zelma_2017-11-25T21:15:26.000053
1,511,644,526.000053
101,158
pythondev
help
questions
2017-11-25T21:15:35.000052
Meg
pythondev_help_Meg_2017-11-25T21:15:35.000052
1,511,644,535.000052
101,159
pythondev
help
which one?
2017-11-25T21:15:47.000012
Zelma
pythondev_help_Zelma_2017-11-25T21:15:47.000012
1,511,644,547.000012
101,160
pythondev
help
learning how to phrase a question will get you far in getting answers
2017-11-25T21:15:52.000008
Meg
pythondev_help_Meg_2017-11-25T21:15:52.000008
1,511,644,552.000008
101,161
pythondev
help
you’re being very fragmented, and its hard for anyone to understand the issue you’re having
2017-11-25T21:16:10.000003
Meg
pythondev_help_Meg_2017-11-25T21:16:10.000003
1,511,644,570.000003
101,162
pythondev
help
`pip list` is a handy little command
2017-11-25T21:16:28.000038
Corrinne
pythondev_help_Corrinne_2017-11-25T21:16:28.000038
1,511,644,588.000038
101,163
pythondev
help
i was going to get to my question regarding why it doesnt work in a bit
2017-11-25T21:17:00.000050
Zelma
pythondev_help_Zelma_2017-11-25T21:17:00.000050
1,511,644,620.00005
101,164
pythondev
help
once i rule out some other factors
2017-11-25T21:17:05.000037
Zelma
pythondev_help_Zelma_2017-11-25T21:17:05.000037
1,511,644,625.000037
101,165
pythondev
help
i dont even know where to start.. its a huge output when i am trying to install pyside
2017-11-25T21:24:21.000021
Zelma
pythondev_help_Zelma_2017-11-25T21:24:21.000021
1,511,645,061.000021
101,166
pythondev
help
Seems like the package itself has some missing files? Does someone here use pyside?
2017-11-25T21:25:58.000046
Zelma
pythondev_help_Zelma_2017-11-25T21:25:58.000046
1,511,645,158.000046
101,167
pythondev
help
Never heard of it, sorry But seems like that's an issue with the pyside package. Is there anything in the project repository issue tracker about installation problems?
2017-11-25T21:29:51.000028
Meg
pythondev_help_Meg_2017-11-25T21:29:51.000028
1,511,645,391.000028
101,168
pythondev
help
<@Zelma> you should paste the whole output
2017-11-25T21:31:21.000015
Collette
pythondev_help_Collette_2017-11-25T21:31:21.000015
1,511,645,481.000015
101,169
pythondev
help
Well does anyone else have that problem?
2017-11-25T23:09:05.000010
Zelma
pythondev_help_Zelma_2017-11-25T23:09:05.000010
1,511,651,345.00001
101,170
pythondev
help
If none else has that problem then something else must be wrong
2017-11-25T23:09:33.000089
Zelma
pythondev_help_Zelma_2017-11-25T23:09:33.000089
1,511,651,373.000089
101,171
pythondev
help
You need to paste the whole output if you want to receive any help.
2017-11-25T23:14:11.000063
Collette
pythondev_help_Collette_2017-11-25T23:14:11.000063
1,511,651,651.000063
101,172
pythondev
help
Oh i should mention that this works fine when i test in the browser, the only issue is my test
2017-11-26T01:15:50.000005
Vita
pythondev_help_Vita_2017-11-26T01:15:50.000005
1,511,658,950.000005
101,173
pythondev
help
hi, would anyone here be able to assist with something im trying to do with python and JSON?
2017-11-26T01:47:19.000053
Lavona
pythondev_help_Lavona_2017-11-26T01:47:19.000053
1,511,660,839.000053
101,174
pythondev
help
Im getting this error: : TypeError: ‘NoneType’ object is not subscriptable Here is my code:” <https://bpaste.net/show/b8a9b763b7aa> Python beginner here
2017-11-26T01:48:40.000008
Lavona
pythondev_help_Lavona_2017-11-26T01:48:40.000008
1,511,660,920.000008
101,175
pythondev
help
Sample JSON here: <https://bpaste.net/show/f5646034957c>
2017-11-26T01:49:07.000041
Lavona
pythondev_help_Lavona_2017-11-26T01:49:07.000041
1,511,660,947.000041
101,176
pythondev
help
<@Lavona> the JSON you've pasted is not complete. It's not possible to know exact cause of the issue
2017-11-26T01:55:56.000034
Collette
pythondev_help_Collette_2017-11-26T01:55:56.000034
1,511,661,356.000034
101,177
pythondev
help
all the values im after are in the JSON sample.
2017-11-26T01:57:50.000051
Lavona
pythondev_help_Lavona_2017-11-26T01:57:50.000051
1,511,661,470.000051
101,178
pythondev
help
ill try make a bigger sample
2017-11-26T01:57:58.000045
Lavona
pythondev_help_Lavona_2017-11-26T01:57:58.000045
1,511,661,478.000045
101,179
pythondev
help
If so, your code is trying to get a value from the key "d" on line 17
2017-11-26T02:01:19.000004
Collette
pythondev_help_Collette_2017-11-26T02:01:19.000004
1,511,661,679.000004
101,180
pythondev
help
There's no key "d" in the JSON you provided
2017-11-26T02:01:27.000042
Collette
pythondev_help_Collette_2017-11-26T02:01:27.000042
1,511,661,687.000042
101,181
pythondev
help
ahh so if i make that a child value?
2017-11-26T02:01:55.000003
Lavona
pythondev_help_Lavona_2017-11-26T02:01:55.000003
1,511,661,715.000003
101,182
pythondev
help
or a key name, keyname being the children values i guess?
2017-11-26T02:02:12.000042
Lavona
pythondev_help_Lavona_2017-11-26T02:02:12.000042
1,511,661,732.000042
101,183
pythondev
help
I have no idea what are you talking about :slightly_smiling_face:
2017-11-26T02:02:43.000057
Collette
pythondev_help_Collette_2017-11-26T02:02:43.000057
1,511,661,763.000057
101,184
pythondev
help
not sure if this is a better sample: <https://bpaste.net/show/0629afc935db>
2017-11-26T02:08:05.000040
Lavona
pythondev_help_Lavona_2017-11-26T02:08:05.000040
1,511,662,085.00004
101,185
pythondev
help
key ‘d’ i guess is because the JSON file starts with d?
2017-11-26T02:11:43.000032
Lavona
pythondev_help_Lavona_2017-11-26T02:11:43.000032
1,511,662,303.000032
101,186
pythondev
help
if i try another value i get for entry in find_all_entries(data[‘fileAssetId’]): KeyError: ‘fileAssetId’
2017-11-26T02:12:58.000003
Lavona
pythondev_help_Lavona_2017-11-26T02:12:58.000003
1,511,662,378.000003
101,187
pythondev
help
Yep, "d" is valid then. Can you paste the full traceback (lines above `TypeError` message)?
2017-11-26T02:15:34.000003
Collette
pythondev_help_Collette_2017-11-26T02:15:34.000003
1,511,662,534.000003
101,188
pythondev
help
python3 py3jsontest.py Traceback (most recent call last): File “py3jsontest.py”, line 17, in &lt;module&gt; for entry in find_all_entries(data[‘fileAssetId’]): KeyError: ‘fileAssetId’
2017-11-26T02:16:37.000020
Lavona
pythondev_help_Lavona_2017-11-26T02:16:37.000020
1,511,662,597.00002
101,189
pythondev
help
when id :anguished: python3 py3jsontest.py Traceback (most recent call last): File “py3jsontest.py”, line 17, in &lt;module&gt; for entry in find_all_entries(data[‘d’]): File “py3jsontest.py”, line 10, in find_all_entries fileAssetId = obj[‘content’][‘fileAssetId’], TypeError: ‘NoneType’ object is not subsc...
2017-11-26T02:17:03.000027
Lavona
pythondev_help_Lavona_2017-11-26T02:17:03.000027
1,511,662,623.000027
101,190
pythondev
help
Is that what you were refuring to?
2017-11-26T02:22:07.000022
Lavona
pythondev_help_Lavona_2017-11-26T02:22:07.000022
1,511,662,927.000022
101,191
pythondev
help
Yeah
2017-11-26T02:23:28.000001
Collette
pythondev_help_Collette_2017-11-26T02:23:28.000001
1,511,663,008.000001
101,192
pythondev
help
As you can see from the traceback, the actual error happened at line 10, `fileAssetId = obj[‘content’][‘fileAssetId’],`
2017-11-26T02:24:14.000024
Collette
pythondev_help_Collette_2017-11-26T02:24:14.000024
1,511,663,054.000024
101,193
pythondev
help
how do I give the set.difference function a single element?
2017-11-26T02:24:31.000042
Winnie
pythondev_help_Winnie_2017-11-26T02:24:31.000042
1,511,663,071.000042
101,194
pythondev
help
<@Lavona> `obj['content']` returns `None`, and `None` is not subscriptable (i.e. you can't do `None['fileAssetId']`)
2017-11-26T02:25:03.000045
Collette
pythondev_help_Collette_2017-11-26T02:25:03.000045
1,511,663,103.000045
101,195
pythondev
help
<@Collette> how could i do it then?
2017-11-26T02:26:12.000003
Lavona
pythondev_help_Lavona_2017-11-26T02:26:12.000003
1,511,663,172.000003
101,196
pythondev
help
<@Lavona> take a look at your json. `data["d"]` gives you `{"__type": ..., "children": {"__type": ..., "children": {...}}}`
2017-11-26T02:28:03.000051
Collette
pythondev_help_Collette_2017-11-26T02:28:03.000051
1,511,663,283.000051
101,197
pythondev
help
i.e. you need to dive deeper to get the value of the 'content' key
2017-11-26T02:28:30.000034
Collette
pythondev_help_Collette_2017-11-26T02:28:30.000034
1,511,663,310.000034
101,198
pythondev
help
anyway to display keys using Python?
2017-11-26T02:28:48.000016
Lavona
pythondev_help_Lavona_2017-11-26T02:28:48.000016
1,511,663,328.000016
101,199
pythondev
help
``` import pprint pprint.pprint(obj) ```
2017-11-26T02:29:41.000017
Collette
pythondev_help_Collette_2017-11-26T02:29:41.000017
1,511,663,381.000017
101,200
pythondev
help
I orgiginally was trying to extract the values using regex, but I couldnt tell regex to find a value BUT only if folder.png is before or type 1 is after.
2017-11-26T02:29:47.000023
Lavona
pythondev_help_Lavona_2017-11-26T02:29:47.000023
1,511,663,387.000023
101,201
pythondev
help
I'd play with the data in `ipython` shell instead, though
2017-11-26T02:30:00.000015
Collette
pythondev_help_Collette_2017-11-26T02:30:00.000015
1,511,663,400.000015
101,202