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 converting it to a string
2017-08-17T13:59:51.000405
Maida
pythondev_help_Maida_2017-08-17T13:59:51.000405
1,502,978,391.000405
90,003
pythondev
help
can you print out resource_file here?
2017-08-17T14:00:34.000386
Meg
pythondev_help_Meg_2017-08-17T14:00:34.000386
1,502,978,434.000386
90,004
pythondev
help
according to the debugger
2017-08-17T14:02:30.000498
Maida
pythondev_help_Maida_2017-08-17T14:02:30.000498
1,502,978,550.000498
90,005
pythondev
help
resource_abspath = {str} '/home/mmacheerpuppy/bark/bark_drive/bark/bark_project/17082017IOVCAWKXYA/17082017IOVCAWKXYA.zip' resource_file = {str} '17082017IOVCAWKXYA/17082017IOVCAWKXYA.zip'
2017-08-17T14:02:36.000296
Maida
pythondev_help_Maida_2017-08-17T14:02:36.000296
1,502,978,556.000296
90,006
pythondev
help
whether i can print the object
2017-08-17T14:02:41.000072
Maida
pythondev_help_Maida_2017-08-17T14:02:41.000072
1,502,978,561.000072
90,007
pythondev
help
hang on
2017-08-17T14:02:44.000441
Maida
pythondev_help_Maida_2017-08-17T14:02:44.000441
1,502,978,564.000441
90,008
pythondev
help
Anyone have any experience working with text using cairocffi?
2017-08-17T14:03:10.000096
Mendy
pythondev_help_Mendy_2017-08-17T14:03:10.000096
1,502,978,590.000096
90,009
pythondev
help
oh, so abspath goes to the project root
2017-08-17T14:06:25.000231
Meg
pythondev_help_Meg_2017-08-17T14:06:25.000231
1,502,978,785.000231
90,010
pythondev
help
use `MEDIA_ROOT + / + resource_file`
2017-08-17T14:06:46.000395
Meg
pythondev_help_Meg_2017-08-17T14:06:46.000395
1,502,978,806.000395
90,011
pythondev
help
Looks like it's going through with that
2017-08-17T14:11:36.000234
Maida
pythondev_help_Maida_2017-08-17T14:11:36.000234
1,502,979,096.000234
90,012
pythondev
help
we'll see
2017-08-17T14:11:39.000062
Maida
pythondev_help_Maida_2017-08-17T14:11:39.000062
1,502,979,099.000062
90,013
pythondev
help
Worked like a charm!
2017-08-17T14:31:48.000030
Maida
pythondev_help_Maida_2017-08-17T14:31:48.000030
1,502,980,308.00003
90,014
pythondev
help
Hi guys, looking for a bit of help of what best practice is. We have multiple git repos of python packages. There is some code that is shared between them that I want to pull of into its own project. What is the most common way of managing dependencies between projects/repos? This is not code that I can upload to pypy.
2017-08-17T16:15:13.000451
Gustavo
pythondev_help_Gustavo_2017-08-17T16:15:13.000451
1,502,986,513.000451
90,015
pythondev
help
You can still pip install it without using pypi.
2017-08-17T16:15:56.000061
Meghan
pythondev_help_Meghan_2017-08-17T16:15:56.000061
1,502,986,556.000061
90,016
pythondev
help
so a virtual env for each project and then pip install the other projects for them?
2017-08-17T16:16:34.000311
Gustavo
pythondev_help_Gustavo_2017-08-17T16:16:34.000311
1,502,986,594.000311
90,017
pythondev
help
If they are libraries, yeah.
2017-08-17T16:16:46.000370
Meghan
pythondev_help_Meghan_2017-08-17T16:16:46.000370
1,502,986,606.00037
90,018
pythondev
help
You can even pip install it as development, so it won't be copied to site-packages.
2017-08-17T16:17:12.000465
Meghan
pythondev_help_Meghan_2017-08-17T16:17:12.000465
1,502,986,632.000465
90,019
pythondev
help
right now they are just packages
2017-08-17T16:17:26.000415
Gustavo
pythondev_help_Gustavo_2017-08-17T16:17:26.000415
1,502,986,646.000415
90,020
pythondev
help
Yeah, probably just pip install each library as a development.
2017-08-17T16:17:48.000302
Meghan
pythondev_help_Meghan_2017-08-17T16:17:48.000302
1,502,986,668.000302
90,021
pythondev
help
At least for people who are working on the code rather than just using it.
2017-08-17T16:18:02.000118
Meghan
pythondev_help_Meghan_2017-08-17T16:18:02.000118
1,502,986,682.000118
90,022
pythondev
help
from pip install ``` -e, --editable <path/url> Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url. ```
2017-08-17T16:19:15.000009
Meghan
pythondev_help_Meghan_2017-08-17T16:19:15.000009
1,502,986,755.000009
90,023
pythondev
help
ah ok I didn't know that existed
2017-08-17T16:19:39.000022
Gustavo
pythondev_help_Gustavo_2017-08-17T16:19:39.000022
1,502,986,779.000022
90,024
pythondev
help
I've only used it once, but it is nice.
2017-08-17T16:20:49.000433
Meghan
pythondev_help_Meghan_2017-08-17T16:20:49.000433
1,502,986,849.000433
90,025
pythondev
help
thanks
2017-08-17T16:31:40.000508
Gustavo
pythondev_help_Gustavo_2017-08-17T16:31:40.000508
1,502,987,500.000508
90,026
pythondev
help
hello I am totally new to python, I just installed it now on my windows 8.1 system when i went to my git bash and ran "python -v" it gave off a kind of a long list of gibberish rather than the version of python
2017-08-17T21:58:22.000011
Jeanett
pythondev_help_Jeanett_2017-08-17T21:58:22.000011
1,503,007,102.000011
90,027
pythondev
help
<@Jeanett> lowercase `-v` is "verbose", capital `-V` is version
2017-08-17T22:01:20.000028
Marcie
pythondev_help_Marcie_2017-08-17T22:01:20.000028
1,503,007,280.000028
90,028
pythondev
help
:grinning:
2017-08-17T22:02:37.000147
Jeanett
pythondev_help_Jeanett_2017-08-17T22:02:37.000147
1,503,007,357.000147
90,029
pythondev
help
It worked. thanks mate
2017-08-17T22:02:51.000142
Jeanett
pythondev_help_Jeanett_2017-08-17T22:02:51.000142
1,503,007,371.000142
90,030
pythondev
help
help with code
2017-08-17T23:34:37.000192
Margaretta
pythondev_help_Margaretta_2017-08-17T23:34:37.000192
1,503,012,877.000192
90,031
pythondev
help
`code`
2017-08-17T23:35:07.000089
Margaretta
pythondev_help_Margaretta_2017-08-17T23:35:07.000089
1,503,012,907.000089
90,032
pythondev
help
i get this error
2017-08-17T23:36:16.000134
Margaretta
pythondev_help_Margaretta_2017-08-17T23:36:16.000134
1,503,012,976.000134
90,033
pythondev
help
<@Margaretta> the `set` object in python doesn't support indexing because they're unordered collections of items
2017-08-17T23:54:53.000051
Marcie
pythondev_help_Marcie_2017-08-17T23:54:53.000051
1,503,014,093.000051
90,034
pythondev
help
as soon as you convert a list to a set you lose the ordering of any items inside
2017-08-17T23:56:36.000065
Marcie
pythondev_help_Marcie_2017-08-17T23:56:36.000065
1,503,014,196.000065
90,035
pythondev
help
you can optionally cast back to a list and then sort again
2017-08-17T23:57:13.000038
Marcie
pythondev_help_Marcie_2017-08-17T23:57:13.000038
1,503,014,233.000038
90,036
pythondev
help
`topdata = sorted(list(data))[0:3]`
2017-08-17T23:57:50.000002
Marcie
pythondev_help_Marcie_2017-08-17T23:57:50.000002
1,503,014,270.000002
90,037
pythondev
help
tl;dr I want to create multiple record of a Model based on a variable which sits pn the webpage(fron-end)
2017-08-18T00:24:49.000049
Latrina
pythondev_help_Latrina_2017-08-18T00:24:49.000049
1,503,015,889.000049
90,038
pythondev
help
<@Marcie> :taco:
2017-08-18T01:32:05.000110
Margaretta
pythondev_help_Margaretta_2017-08-18T01:32:05.000110
1,503,019,925.00011
90,039
pythondev
help
<@Marcie> - This works
2017-08-18T01:33:14.000086
Margaretta
pythondev_help_Margaretta_2017-08-18T01:33:14.000086
1,503,019,994.000086
90,040
pythondev
help
`data=sorted(set([sanitize(t) for t in data]))`
2017-08-18T01:33:29.000137
Margaretta
pythondev_help_Margaretta_2017-08-18T01:33:29.000137
1,503,020,009.000137
90,041
pythondev
help
oh nice
2017-08-18T01:34:01.000047
Marcie
pythondev_help_Marcie_2017-08-18T01:34:01.000047
1,503,020,041.000047
90,042
pythondev
help
passing a set to sorted directly is definitely gonna come in handy for some code golf
2017-08-18T01:34:34.000071
Marcie
pythondev_help_Marcie_2017-08-18T01:34:34.000071
1,503,020,074.000071
90,043
pythondev
help
i would request you all , if you have a look to my problem. I need some advice with that ^^
2017-08-18T02:00:29.000162
Latrina
pythondev_help_Latrina_2017-08-18T02:00:29.000162
1,503,021,629.000162
90,044
pythondev
help
<@Latrina> what's stopping you from just creating three instances?
2017-08-18T02:01:23.000158
Marcie
pythondev_help_Marcie_2017-08-18T02:01:23.000158
1,503,021,683.000158
90,045
pythondev
help
its not only 3 , it depends , For example : If anyone wants to add 6 items, then they will add the items on the frontend variable(var item= 6) ,now its 6 items
2017-08-18T02:03:42.000139
Latrina
pythondev_help_Latrina_2017-08-18T02:03:42.000139
1,503,021,822.000139
90,046
pythondev
help
so the no of forms to be generated depends on the value of a variable in Javascript
2017-08-18T02:04:38.000012
Latrina
pythondev_help_Latrina_2017-08-18T02:04:38.000012
1,503,021,878.000012
90,047
pythondev
help
<@Marcie> do i have to use a for loop for this or is there any other way ?
2017-08-18T02:06:38.000131
Latrina
pythondev_help_Latrina_2017-08-18T02:06:38.000131
1,503,021,998.000131
90,048
pythondev
help
a for loop is fine if you need X instances of something to be created
2017-08-18T02:07:45.000145
Marcie
pythondev_help_Marcie_2017-08-18T02:07:45.000145
1,503,022,065.000145
90,049
pythondev
help
so in this case i have to pass the Js variable value(let's say n) to my function which will set the forloop to n.
2017-08-18T02:09:57.000028
Latrina
pythondev_help_Latrina_2017-08-18T02:09:57.000028
1,503,022,197.000028
90,050
pythondev
help
i was researching on this and found formsets(extras=some value)
2017-08-18T02:10:43.000043
Latrina
pythondev_help_Latrina_2017-08-18T02:10:43.000043
1,503,022,243.000043
90,051
pythondev
help
can i use form sets in my use case?
2017-08-18T02:10:54.000221
Latrina
pythondev_help_Latrina_2017-08-18T02:10:54.000221
1,503,022,254.000221
90,052
pythondev
help
Anyone ??
2017-08-18T04:48:14.000098
Latrina
pythondev_help_Latrina_2017-08-18T04:48:14.000098
1,503,031,694.000098
90,053
pythondev
help
Anyone stumbled upon something like this?
2017-08-18T07:21:13.000023
Jeanette
pythondev_help_Jeanette_2017-08-18T07:21:13.000023
1,503,040,873.000023
90,054
pythondev
help
<@Latrina> sorry, i'm not too familiar with formsets, that's a good question for <#C0LMFRMB5|django> though
2017-08-18T07:32:21.000035
Marcie
pythondev_help_Marcie_2017-08-18T07:32:21.000035
1,503,041,541.000035
90,055
pythondev
help
<@Jeanette> looks like either `parent_url_path` or `slug` are `None`, can you post more of your code that's causing this error?
2017-08-18T07:41:07.000043
Rufus
pythondev_help_Rufus_2017-08-18T07:41:07.000043
1,503,042,067.000043
90,056
pythondev
help
oh ok, sorry, I didn't realise the exception was coming from library code
2017-08-18T07:48:16.000366
Rufus
pythondev_help_Rufus_2017-08-18T07:48:16.000366
1,503,042,496.000366
90,057
pythondev
help
either the `wagtail_modeltranslation` package is broken, or it's expecting your model or some other part of your code to behave differently to how it actually is
2017-08-18T07:49:17.000188
Rufus
pythondev_help_Rufus_2017-08-18T07:49:17.000188
1,503,042,557.000188
90,058
pythondev
help
oh good heavens, they're dynamically attaching methods to classes
2017-08-18T07:51:34.000081
Rufus
pythondev_help_Rufus_2017-08-18T07:51:34.000081
1,503,042,694.000081
90,059
pythondev
help
yes and based on the language that is chosen you get the translated field
2017-08-18T07:52:24.000088
Jeanette
pythondev_help_Jeanette_2017-08-18T07:52:24.000088
1,503,042,744.000088
90,060
pythondev
help
just makes it a lot harder to figure out what's going on without actually attaching a debugger to your code, that's all
2017-08-18T07:53:53.000082
Rufus
pythondev_help_Rufus_2017-08-18T07:53:53.000082
1,503,042,833.000082
90,061
pythondev
help
maybe file an issue with `wagtail_modeltranslation`? search around first to see if someone else already has, though
2017-08-18T07:54:15.000151
Rufus
pythondev_help_Rufus_2017-08-18T07:54:15.000151
1,503,042,855.000151
90,062
pythondev
help
yep that is true
2017-08-18T07:55:51.000203
Jeanette
pythondev_help_Jeanette_2017-08-18T07:55:51.000203
1,503,042,951.000203
90,063
pythondev
help
It's been a couple of hours now ...
2017-08-18T07:56:02.000160
Jeanette
pythondev_help_Jeanette_2017-08-18T07:56:02.000160
1,503,042,962.00016
90,064
pythondev
help
Why is it trying to reach the en version? I don't get it
2017-08-18T08:00:33.000118
Jeanette
pythondev_help_Jeanette_2017-08-18T08:00:33.000118
1,503,043,233.000118
90,065
pythondev
help
tried: ['en/((?:[\\w\\-]+/)*)$']
2017-08-18T08:00:45.000197
Jeanette
pythondev_help_Jeanette_2017-08-18T08:00:45.000197
1,503,043,245.000197
90,066
pythondev
help
I think at this point, you need to attach a debugger and put a breakpoint on that line in wagtail_modeltranslation/patch_wagtailadmin.py
2017-08-18T08:04:51.000130
Meg
pythondev_help_Meg_2017-08-18T08:04:51.000130
1,503,043,491.00013
90,067
pythondev
help
Because that's a wagtail issue, and if it's not reported, then the debugger can help
2017-08-18T08:05:36.000227
Meg
pythondev_help_Meg_2017-08-18T08:05:36.000227
1,503,043,536.000227
90,068
pythondev
help
thanks I didn't think about that
2017-08-18T08:08:38.000034
Jeanette
pythondev_help_Jeanette_2017-08-18T08:08:38.000034
1,503,043,718.000034
90,069
pythondev
help
just fyi the regex is matching the english version because of the i18n_patterns in settings.py urlpatterns += i18n_patterns( url(r'', include(wagtail_urls)), )
2017-08-18T08:21:54.000238
Jeanette
pythondev_help_Jeanette_2017-08-18T08:21:54.000238
1,503,044,514.000238
90,070
pythondev
help
I have a package that I'm developing. I want to use the package inside of a virtualenv and install it with something like pip... but that's not possible unless I create a setup.py, right? Since pip only works with setup.py? Setup: ``` mypackage/ mymodule/ __init__.py testcode.py requirements.txt ``` I can import the function defined in __init__.py to testcode.py by creating a virtualenv then symlinking the `mypackage` folder to my virtualenv
2017-08-18T09:52:04.000244
Lanita
pythondev_help_Lanita_2017-08-18T09:52:04.000244
1,503,049,924.000244
90,071
pythondev
help
you can create setup.py and call it directly
2017-08-18T09:53:14.000310
Liberty
pythondev_help_Liberty_2017-08-18T09:53:14.000310
1,503,049,994.00031
90,072
pythondev
help
exactly. There is some tools that ease that. I heard some good things about Flit but never used it myself
2017-08-18T09:53:25.000604
Ciera
pythondev_help_Ciera_2017-08-18T09:53:25.000604
1,503,050,005.000604
90,073
pythondev
help
<http://flit.readthedocs.io/en/latest/index.html>
2017-08-18T09:53:26.000418
Ciera
pythondev_help_Ciera_2017-08-18T09:53:26.000418
1,503,050,006.000418
90,074
pythondev
help
I was just thinking that it's be nice to not have to manually symlink or write the setup.py (until it's needed later for packaging purposes)
2017-08-18T09:53:55.000196
Lanita
pythondev_help_Lanita_2017-08-18T09:53:55.000196
1,503,050,035.000196
90,075
pythondev
help
you can also install your package with the `-e` flags for pip
2017-08-18T09:54:15.000562
Ciera
pythondev_help_Ciera_2017-08-18T09:54:15.000562
1,503,050,055.000562
90,076
pythondev
help
that allow you to edit the code in place without needing to reinstall each time
2017-08-18T09:54:27.000441
Ciera
pythondev_help_Ciera_2017-08-18T09:54:27.000441
1,503,050,067.000441
90,077
pythondev
help
yeah, but I still need a setup.py for that?
2017-08-18T09:54:55.000070
Lanita
pythondev_help_Lanita_2017-08-18T09:54:55.000070
1,503,050,095.00007
90,078
pythondev
help
`pip install -e .`
2017-08-18T09:55:01.000340
Ciera
pythondev_help_Ciera_2017-08-18T09:55:01.000340
1,503,050,101.00034
90,079
pythondev
help
yes
2017-08-18T09:55:02.000108
Ciera
pythondev_help_Ciera_2017-08-18T09:55:02.000108
1,503,050,102.000108
90,080
pythondev
help
Hm, I guess I'll just manually symlink to my venv's lib/python3.5/site-packages folder until I've written a setup.py file
2017-08-18T09:56:36.000123
Lanita
pythondev_help_Lanita_2017-08-18T09:56:36.000123
1,503,050,196.000123
90,081
pythondev
help
Since it's symlinked I can edit the code in place just fine
2017-08-18T09:57:12.000197
Lanita
pythondev_help_Lanita_2017-08-18T09:57:12.000197
1,503,050,232.000197
90,082
pythondev
help
you might want to take a look at the tool I linked :point_up: it does almost everything for you for the setup.py
2017-08-18T10:03:15.000372
Ciera
pythondev_help_Ciera_2017-08-18T10:03:15.000372
1,503,050,595.000372
90,083
pythondev
help
looking at it, it seems like a way to generate the setup.py and upload it to pypi. But I'm not sure how it helps if I'm not uploading it to pypi
2017-08-18T10:08:55.000353
Lanita
pythondev_help_Lanita_2017-08-18T10:08:55.000353
1,503,050,935.000353
90,084
pythondev
help
well generate the setup.py :smile:
2017-08-18T10:10:25.000005
Ciera
pythondev_help_Ciera_2017-08-18T10:10:25.000005
1,503,051,025.000005
90,085
pythondev
help
I suppose, but through another, new sytnax
2017-08-18T10:10:36.000452
Lanita
pythondev_help_Lanita_2017-08-18T10:10:36.000452
1,503,051,036.000452
90,086
pythondev
help
syntax
2017-08-18T10:10:38.000307
Lanita
pythondev_help_Lanita_2017-08-18T10:10:38.000307
1,503,051,038.000307
90,087
pythondev
help
by the way, I haven't heard much about alternatives to pypi... is there a way to create a custom repository like pypi, or do people usually just install from git repos? (Which pip support)
2017-08-18T10:11:29.000417
Lanita
pythondev_help_Lanita_2017-08-18T10:11:29.000417
1,503,051,089.000417
90,088
pythondev
help
I suppose there's little reason to create a custom pypi repo when serving things from a git repo is simple enough
2017-08-18T10:12:57.000652
Lanita
pythondev_help_Lanita_2017-08-18T10:12:57.000652
1,503,051,177.000652
90,089
pythondev
help
usually from git or pypi
2017-08-18T10:19:13.000115
Ciera
pythondev_help_Ciera_2017-08-18T10:19:13.000115
1,503,051,553.000115
90,090
pythondev
help
there is also <https://pypi.python.org/pypi/devpi> if you want your own pypi
2017-08-18T10:19:52.000159
Ciera
pythondev_help_Ciera_2017-08-18T10:19:52.000159
1,503,051,592.000159
90,091
pythondev
help
and <https://pypi.org/> that is in the process of replacing PyPi
2017-08-18T10:20:47.000037
Ciera
pythondev_help_Ciera_2017-08-18T10:20:47.000037
1,503,051,647.000037
90,092
pythondev
help
what's the difference between "the" pypi and <http://pypi.org|pypi.org>?
2017-08-18T10:23:01.000286
Lanita
pythondev_help_Lanita_2017-08-18T10:23:01.000286
1,503,051,781.000286
90,093
pythondev
help
who thought that calling them the same thing was a good idea?
2017-08-18T10:23:09.000448
Lanita
pythondev_help_Lanita_2017-08-18T10:23:09.000448
1,503,051,789.000448
90,094
pythondev
help
I see, it's a rewrite called warehouse but the main implementation instance will also be called PyPi.
2017-08-18T10:25:29.000408
Lanita
pythondev_help_Lanita_2017-08-18T10:25:29.000408
1,503,051,929.000408
90,095
pythondev
help
<http://pypi.python.org|pypi.python.org> is the legacy server, <http://pypi.org|pypi.org> is the new one
2017-08-18T10:27:02.000404
Beula
pythondev_help_Beula_2017-08-18T10:27:02.000404
1,503,052,022.000404
90,096
pythondev
help
Naming it the same makes sense since it is the same thing, basically everything beyond the frontend and some plumbing, but the same spec
2017-08-18T10:27:58.000402
Beula
pythondev_help_Beula_2017-08-18T10:27:58.000402
1,503,052,078.000402
90,097
pythondev
help
Hi, We migrated our db from mysql to postgres, I am facing an issue though and had to revert back to SQL for now.
2017-08-18T10:33:59.000554
Desire
pythondev_help_Desire_2017-08-18T10:33:59.000554
1,503,052,439.000554
90,098
pythondev
help
`Partner.objects.get(client_id=client_id)` returns `ObjectDoesNotExist`
2017-08-18T10:34:16.000335
Desire
pythondev_help_Desire_2017-08-18T10:34:16.000335
1,503,052,456.000335
90,099
pythondev
help
What could be wrong, I can confirm that the particular client_id exists on the partner table.
2017-08-18T10:34:54.000282
Desire
pythondev_help_Desire_2017-08-18T10:34:54.000282
1,503,052,494.000282
90,100
pythondev
help
What is the ORM? SQLAlchemy? Django? Something else? And how did you manage the migration?
2017-08-18T10:35:20.000443
Gabriele
pythondev_help_Gabriele_2017-08-18T10:35:20.000443
1,503,052,520.000443
90,101
pythondev
help
ORM is Django.
2017-08-18T10:35:36.000151
Desire
pythondev_help_Desire_2017-08-18T10:35:36.000151
1,503,052,536.000151
90,102