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
<@Gabriele> How do I fix this?
2017-06-23T12:13:45.337930
Marcela
pythondev_help_Marcela_2017-06-23T12:13:45.337930
1,498,220,025.33793
82,903
pythondev
help
there is a setup.py that contains #include io.h
2017-06-23T12:14:08.345853
Marcela
pythondev_help_Marcela_2017-06-23T12:14:08.345853
1,498,220,048.345853
82,904
pythondev
help
but i could not remove that line
2017-06-23T12:14:11.346918
Marcela
pythondev_help_Marcela_2017-06-23T12:14:11.346918
1,498,220,051.346918
82,905
pythondev
help
Install the package via a different method. Its website might have some clues
2017-06-23T12:14:41.357437
Gabriele
pythondev_help_Gabriele_2017-06-23T12:14:41.357437
1,498,220,081.357437
82,906
pythondev
help
Yeah, I suggested using anaconda since it should have the precompiled one available
2017-06-23T12:16:19.392192
Beula
pythondev_help_Beula_2017-06-23T12:16:19.392192
1,498,220,179.392192
82,907
pythondev
help
yeah i am trying that but am running into different issue
2017-06-23T12:18:52.445851
Marcela
pythondev_help_Marcela_2017-06-23T12:18:52.445851
1,498,220,332.445851
82,908
pythondev
help
it says it cannot find bitfield on the proper channels
2017-06-23T12:19:05.450291
Marcela
pythondev_help_Marcela_2017-06-23T12:19:05.450291
1,498,220,345.450291
82,909
pythondev
help
but i found this one here
2017-06-23T12:19:07.450937
Marcela
pythondev_help_Marcela_2017-06-23T12:19:07.450937
1,498,220,347.450937
82,910
pythondev
help
<https://anaconda.org/pypi/bitfield>
2017-06-23T12:19:07.451061
Marcela
pythondev_help_Marcela_2017-06-23T12:19:07.451061
1,498,220,347.451061
82,911
pythondev
help
and im running conda install -c pypi bitfield
2017-06-23T12:19:24.456578
Marcela
pythondev_help_Marcela_2017-06-23T12:19:24.456578
1,498,220,364.456578
82,912
pythondev
help
and its not working
2017-06-23T12:19:26.457228
Marcela
pythondev_help_Marcela_2017-06-23T12:19:26.457228
1,498,220,366.457228
82,913
pythondev
help
is it easier to set up a virtual linux env at this point? lol ugh
2017-06-23T12:19:32.459312
Marcela
pythondev_help_Marcela_2017-06-23T12:19:32.459312
1,498,220,372.459312
82,914
pythondev
help
Without the exact errors it's hard to say
2017-06-23T12:21:03.490757
Gabriele
pythondev_help_Gabriele_2017-06-23T12:21:03.490757
1,498,220,463.490757
82,915
pythondev
help
PackageNotFoundError: Package missing in current win-64 channels: - bitfield
2017-06-23T12:26:30.604979
Marcela
pythondev_help_Marcela_2017-06-23T12:26:30.604979
1,498,220,790.604979
82,916
pythondev
help
sry didnt clarify
2017-06-23T12:26:40.607987
Marcela
pythondev_help_Marcela_2017-06-23T12:26:40.607987
1,498,220,800.607987
82,917
pythondev
help
kill windows, go to linux? ¯\_(ツ)_/¯
2017-06-23T12:27:12.619101
Meg
pythondev_help_Meg_2017-06-23T12:27:12.619101
1,498,220,832.619101
82,918
pythondev
help
basically, even though windows has made good strides in becoming more development friendly outside of C# and Java, it still has a long ways to go
2017-06-23T12:27:43.629947
Meg
pythondev_help_Meg_2017-06-23T12:27:43.629947
1,498,220,863.629947
82,919
pythondev
help
so, for anything outside basic python, I'd just go to linux
2017-06-23T12:28:00.635735
Meg
pythondev_help_Meg_2017-06-23T12:28:00.635735
1,498,220,880.635735
82,920
pythondev
help
`(Mac or Linux) &gt; windows`
2017-06-23T12:28:28.645824
Dave
pythondev_help_Dave_2017-06-23T12:28:28.645824
1,498,220,908.645824
82,921
pythondev
help
with the exception of c# and visual studio
2017-06-23T12:29:03.658227
Meg
pythondev_help_Meg_2017-06-23T12:29:03.658227
1,498,220,943.658227
82,922
pythondev
help
I've usually been able to develop just fine on Windows; it's the people who work only on Mac and Linux who tend not to put the extra work in to make their stuff work on Windows. And I guess it's up to them, since nobody's paying them
2017-06-23T12:29:10.660556
Gabriele
pythondev_help_Gabriele_2017-06-23T12:29:10.660556
1,498,220,950.660556
82,923
pythondev
help
or try the linux subsystem
2017-06-23T12:30:05.680152
Ciera
pythondev_help_Ciera_2017-06-23T12:30:05.680152
1,498,221,005.680152
82,924
pythondev
help
might be worth it if you can't fully migrate
2017-06-23T12:30:17.684689
Ciera
pythondev_help_Ciera_2017-06-23T12:30:17.684689
1,498,221,017.684689
82,925
pythondev
help
<@Marcela> I'm intrigued as to why you can find a package online, and which claims to be platform-independent, but it appears to not show up when you use `conda install`. That's probably worth taking up with someone more familiar with using conda
2017-06-23T12:31:20.706826
Gabriele
pythondev_help_Gabriele_2017-06-23T12:31:20.706826
1,498,221,080.706826
82,926
pythondev
help
yep
2017-06-23T12:31:30.710232
Marcela
pythondev_help_Marcela_2017-06-23T12:31:30.710232
1,498,221,090.710232
82,927
pythondev
help
that error pissed me off lol
2017-06-23T12:31:35.711807
Marcela
pythondev_help_Marcela_2017-06-23T12:31:35.711807
1,498,221,095.711807
82,928
pythondev
help
If you don't _need_ to use anaconda then find the regular package and see if there's a Windows version
2017-06-23T12:33:02.742476
Gabriele
pythondev_help_Gabriele_2017-06-23T12:33:02.742476
1,498,221,182.742476
82,929
pythondev
help
You said "there is a setup.py that contains #include io.h" but that's not true of the bitfield package, so it's not clear what your actual problem is
2017-06-23T12:34:11.765216
Gabriele
pythondev_help_Gabriele_2017-06-23T12:34:11.765216
1,498,221,251.765216
82,930
pythondev
help
Hi, guys is there one option to use round function and rounding the value for example 2.59 -- show 2.60
2017-06-23T13:12:08.545982
Twila
pythondev_help_Twila_2017-06-23T13:12:08.545982
1,498,223,528.545982
82,931
pythondev
help
<https://docs.python.org/2/library/functions.html#round>
2017-06-23T13:13:10.566063
Meg
pythondev_help_Meg_2017-06-23T13:13:10.566063
1,498,223,590.566063
82,932
pythondev
help
On documents there is a note about that: Note The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact that most decimal fractions can’t be represented exactly as a float. See Floating Point Arithmetic: Issues and Limitations for more information.
2017-06-23T13:13:11.566373
Twila
pythondev_help_Twila_2017-06-23T13:13:11.566373
1,498,223,591.566373
82,933
pythondev
help
yup. what's the question?
2017-06-23T13:14:03.583596
Meg
pythondev_help_Meg_2017-06-23T13:14:03.583596
1,498,223,643.583596
82,934
pythondev
help
look this function: qtd_lata = round(120 / (18 * 3), 2)
2017-06-23T13:16:13.627562
Twila
pythondev_help_Twila_2017-06-23T13:16:13.627562
1,498,223,773.627562
82,935
pythondev
help
returns: 2.0
2017-06-23T13:16:21.630410
Twila
pythondev_help_Twila_2017-06-23T13:16:21.630410
1,498,223,781.63041
82,936
pythondev
help
But if i don't use round function
2017-06-23T13:16:35.635243
Twila
pythondev_help_Twila_2017-06-23T13:16:35.635243
1,498,223,795.635243
82,937
pythondev
help
are you using python 2 or 3?
2017-06-23T13:17:08.646403
Meg
pythondev_help_Meg_2017-06-23T13:17:08.646403
1,498,223,828.646403
82,938
pythondev
help
Related: Division changed in python: <https://www.python.org/dev/peps/pep-0238/>
2017-06-23T13:17:37.656025
Beula
pythondev_help_Beula_2017-06-23T13:17:37.656025
1,498,223,857.656025
82,939
pythondev
help
You can just make any of those numbers a float
2017-06-23T13:17:47.659176
Beula
pythondev_help_Beula_2017-06-23T13:17:47.659176
1,498,223,867.659176
82,940
pythondev
help
Python 2.7.9
2017-06-23T13:17:51.660273
Twila
pythondev_help_Twila_2017-06-23T13:17:51.660273
1,498,223,871.660273
82,941
pythondev
help
``` python 2 In [5]: 120 / (18 * 3) Out[5]: 2 3 &gt;&gt;&gt; 120 / (18 * 3) 2.2222222222222223 ```
2017-06-23T13:17:55.661696
Meg
pythondev_help_Meg_2017-06-23T13:17:55.661696
1,498,223,875.661696
82,942
pythondev
help
`120.0 / (18 * 3)`
2017-06-23T13:18:09.666518
Beula
pythondev_help_Beula_2017-06-23T13:18:09.666518
1,498,223,889.666518
82,943
pythondev
help
<@Gabriele> I tried using virtualenv to install requirements.txt that way but had huge problems
2017-06-23T13:18:11.667269
Marcela
pythondev_help_Marcela_2017-06-23T13:18:11.667269
1,498,223,891.667269
82,944
pythondev
help
or `from __future__ import division`
2017-06-23T13:18:21.670862
Patty
pythondev_help_Patty_2017-06-23T13:18:21.670862
1,498,223,901.670862
82,945
pythondev
help
Or :point_up::skin-tone-2:
2017-06-23T13:18:27.673409
Beula
pythondev_help_Beula_2017-06-23T13:18:27.673409
1,498,223,907.673409
82,946
pythondev
help
&gt;&gt;&gt; from __future__ import division &gt;&gt;&gt; 140 / (18 * 3) 2.5925925925925926
2017-06-23T13:19:37.700932
Twila
pythondev_help_Twila_2017-06-23T13:19:37.700932
1,498,223,977.700932
82,947
pythondev
help
in this case i need 3
2017-06-23T13:19:50.706178
Twila
pythondev_help_Twila_2017-06-23T13:19:50.706178
1,498,223,990.706178
82,948
pythondev
help
understood
2017-06-23T13:19:55.707687
Twila
pythondev_help_Twila_2017-06-23T13:19:55.707687
1,498,223,995.707687
82,949
pythondev
help
or `from __future__ import division`
2017-06-23T13:19:56.708082
Patty
pythondev_help_Patty_2017-06-23T13:19:56.708082
1,498,223,996.708082
82,950
pythondev
help
?
2017-06-23T13:19:56.708261
Twila
pythondev_help_Twila_2017-06-23T13:19:56.708261
1,498,223,996.708261
82,951
pythondev
help
If i use round
2017-06-23T13:20:10.713752
Twila
pythondev_help_Twila_2017-06-23T13:20:10.713752
1,498,224,010.713752
82,952
pythondev
help
its show 2.0
2017-06-23T13:20:15.715770
Twila
pythondev_help_Twila_2017-06-23T13:20:15.715770
1,498,224,015.71577
82,953
pythondev
help
if you dont want to switch versions of python, use `from __future__ import division` or change one value to a float
2017-06-23T13:20:26.720219
Patty
pythondev_help_Patty_2017-06-23T13:20:26.720219
1,498,224,026.720219
82,954
pythondev
help
what happens when you called `round` after using `from __future__ import division`?
2017-06-23T13:20:38.724390
Patty
pythondev_help_Patty_2017-06-23T13:20:38.724390
1,498,224,038.72439
82,955
pythondev
help
try run this:
2017-06-23T13:21:33.745578
Twila
pythondev_help_Twila_2017-06-23T13:21:33.745578
1,498,224,093.745578
82,956
pythondev
help
from __future__ import division round(140 / (18 * 3), 2)
2017-06-23T13:21:34.745972
Twila
pythondev_help_Twila_2017-06-23T13:21:34.745972
1,498,224,094.745972
82,957
pythondev
help
the result is 2.59
2017-06-23T13:21:43.749638
Twila
pythondev_help_Twila_2017-06-23T13:21:43.749638
1,498,224,103.749638
82,958
pythondev
help
i need in this case rounding to 3.0
2017-06-23T13:21:53.753496
Twila
pythondev_help_Twila_2017-06-23T13:21:53.753496
1,498,224,113.753496
82,959
pythondev
help
the second argument to `round` is how many significant digits to give, you’re asking it for 2
2017-06-23T13:22:14.760626
Patty
pythondev_help_Patty_2017-06-23T13:22:14.760626
1,498,224,134.760626
82,960
pythondev
help
hence it being 2.59
2017-06-23T13:22:53.775364
Patty
pythondev_help_Patty_2017-06-23T13:22:53.775364
1,498,224,173.775364
82,961
pythondev
help
remove the second argument to the round function to get a whole number
2017-06-23T13:23:02.778334
Patty
pythondev_help_Patty_2017-06-23T13:23:02.778334
1,498,224,182.778334
82,962
pythondev
help
@flasp look at code formatting with slack
2017-06-23T13:23:09.780996
Meg
pythondev_help_Meg_2017-06-23T13:23:09.780996
1,498,224,189.780996
82,963
pythondev
help
<https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#code-blocks>
2017-06-23T13:23:10.781257
Meg
pythondev_help_Meg_2017-06-23T13:23:10.781257
1,498,224,190.781257
82,964
pythondev
help
perfect JOE
2017-06-23T13:23:18.783584
Twila
pythondev_help_Twila_2017-06-23T13:23:18.783584
1,498,224,198.783584
82,965
pythondev
help
``` from __future__ import division round(140 / (18 * 3)) ```
2017-06-23T13:23:18.783662
Patty
pythondev_help_Patty_2017-06-23T13:23:18.783662
1,498,224,198.783662
82,966
pythondev
help
should equal 3.0
2017-06-23T13:23:23.784987
Patty
pythondev_help_Patty_2017-06-23T13:23:23.784987
1,498,224,203.784987
82,967
pythondev
help
very good man
2017-06-23T13:23:23.785134
Twila
pythondev_help_Twila_2017-06-23T13:23:23.785134
1,498,224,203.785134
82,968
pythondev
help
so easy
2017-06-23T13:23:34.789736
Twila
pythondev_help_Twila_2017-06-23T13:23:34.789736
1,498,224,214.789736
82,969
pythondev
help
ahauuaa
2017-06-23T13:23:36.790194
Twila
pythondev_help_Twila_2017-06-23T13:23:36.790194
1,498,224,216.790194
82,970
pythondev
help
<@Marcela> virtualenv won't change the underlying problem, unfortunately. It just changes where the final packages get stored
2017-06-23T13:38:46.111426
Gabriele
pythondev_help_Gabriele_2017-06-23T13:38:46.111426
1,498,225,126.111426
82,971
pythondev
help
yeah
2017-06-23T13:39:13.120548
Marcela
pythondev_help_Marcela_2017-06-23T13:39:13.120548
1,498,225,153.120548
82,972
pythondev
help
i cant edit setup.py to remove #include io.h for some reason
2017-06-23T13:39:32.127139
Marcela
pythondev_help_Marcela_2017-06-23T13:39:32.127139
1,498,225,172.127139
82,973
pythondev
help
Why do you think there is that include inside setup.py?
2017-06-23T13:43:30.209908
Gabriele
pythondev_help_Gabriele_2017-06-23T13:43:30.209908
1,498,225,410.209908
82,974
pythondev
help
#include is a C/C++ construct, setup.py is Python
2017-06-23T13:43:46.215749
Gabriele
pythondev_help_Gabriele_2017-06-23T13:43:46.215749
1,498,225,426.215749
82,975
pythondev
help
idk, tbh
2017-06-23T13:54:32.443642
Marcela
pythondev_help_Marcela_2017-06-23T13:54:32.443642
1,498,226,072.443642
82,976
pythondev
help
this is my first time setting up a python environment
2017-06-23T13:54:37.445189
Marcela
pythondev_help_Marcela_2017-06-23T13:54:37.445189
1,498,226,077.445189
82,977
pythondev
help
some cursory googling makes this sound like a VS issue
2017-06-23T13:59:10.544435
Patty
pythondev_help_Patty_2017-06-23T13:59:10.544435
1,498,226,350.544435
82,978
pythondev
help
yeah
2017-06-23T14:04:00.649949
Marcela
pythondev_help_Marcela_2017-06-23T14:04:00.649949
1,498,226,640.649949
82,979
pythondev
help
ive installed all i can
2017-06-23T14:04:07.652420
Marcela
pythondev_help_Marcela_2017-06-23T14:04:07.652420
1,498,226,647.65242
82,980
pythondev
help
llo
2017-06-23T14:04:08.652540
Marcela
pythondev_help_Marcela_2017-06-23T14:04:08.652540
1,498,226,648.65254
82,981
pythondev
help
lol
2017-06-23T14:04:09.652886
Marcela
pythondev_help_Marcela_2017-06-23T14:04:09.652886
1,498,226,649.652886
82,982
pythondev
help
i believe its vs2015_runtime because anaconda automatically installs that one for me
2017-06-23T14:04:30.660231
Marcela
pythondev_help_Marcela_2017-06-23T14:04:30.660231
1,498,226,670.660231
82,983
pythondev
help
however when i try to install it myself in venv i am getting the io.h issues
2017-06-23T14:04:43.664700
Marcela
pythondev_help_Marcela_2017-06-23T14:04:43.664700
1,498,226,683.6647
82,984
pythondev
help
or maybe that is still a completely separate issue
2017-06-23T14:04:54.668637
Marcela
pythondev_help_Marcela_2017-06-23T14:04:54.668637
1,498,226,694.668637
82,985
pythondev
help
the fact that it cannot detect bitfield in anaconda even though i am looking right at the package is weird to me
2017-06-23T14:05:21.677712
Marcela
pythondev_help_Marcela_2017-06-23T14:05:21.677712
1,498,226,721.677712
82,986
pythondev
help
because VS doesn’t know where to look for the header: <https://stackoverflow.com/questions/40018405/cython-cannot-open-include-file-io-h-no-such-file-or-directory>
2017-06-23T14:05:50.687844
Patty
pythondev_help_Patty_2017-06-23T14:05:50.687844
1,498,226,750.687844
82,987
pythondev
help
yeah i remember trying that two days ago
2017-06-23T14:36:13.322695
Marcela
pythondev_help_Marcela_2017-06-23T14:36:13.322695
1,498,228,573.322695
82,988
pythondev
help
i forgot why it wasnt working
2017-06-23T14:36:17.324180
Marcela
pythondev_help_Marcela_2017-06-23T14:36:17.324180
1,498,228,577.32418
82,989
pythondev
help
should try again today
2017-06-23T14:36:19.324942
Marcela
pythondev_help_Marcela_2017-06-23T14:36:19.324942
1,498,228,579.324942
82,990
pythondev
help
I know I mentioned it earlier but references to io.h are usually a bad sign on Windows, and references to unistd.h are almost certainly wrong
2017-06-23T14:38:42.373618
Gabriele
pythondev_help_Gabriele_2017-06-23T14:38:42.373618
1,498,228,722.373618
82,991
pythondev
help
It implies that something is not picking up the platform correctly; or just isn't designed to build on Windows at all
2017-06-23T14:39:13.383964
Gabriele
pythondev_help_Gabriele_2017-06-23T14:39:13.383964
1,498,228,753.383964
82,992
pythondev
help
we also have <#C5XHHMXHB|os_windows> and someone may know there, or maybe a linux VM would be easier at this point ¯\_(ツ)_/¯
2017-06-23T14:41:20.428048
Patty
pythondev_help_Patty_2017-06-23T14:41:20.428048
1,498,228,880.428048
82,993
pythondev
help
ugh, looks like pyconfig.h is usually output by the configure script... so who knows what state it might be in when a Windows compiler gets hold of it
2017-06-23T14:47:07.545330
Gabriele
pythondev_help_Gabriele_2017-06-23T14:47:07.545330
1,498,229,227.54533
82,994
pythondev
help
yeah i believe that is one of the problems
2017-06-23T15:02:22.856635
Marcela
pythondev_help_Marcela_2017-06-23T15:02:22.856635
1,498,230,142.856635
82,995
pythondev
help
read in another thread that windows has a tendency to mishandle the script
2017-06-23T15:02:40.862780
Marcela
pythondev_help_Marcela_2017-06-23T15:02:40.862780
1,498,230,160.86278
82,996
pythondev
help
if i put Linux Bash on Windows, am I able to set up an environment that way?
2017-06-23T15:02:56.867741
Marcela
pythondev_help_Marcela_2017-06-23T15:02:56.867741
1,498,230,176.867741
82,997
pythondev
help
or linux VM yeah like joe suggested
2017-06-23T15:03:08.871990
Marcela
pythondev_help_Marcela_2017-06-23T15:03:08.871990
1,498,230,188.87199
82,998
pythondev
help
why don't you skip windows entirely
2017-06-23T15:09:36.997768
Meg
pythondev_help_Meg_2017-06-23T15:09:36.997768
1,498,230,576.997768
82,999
pythondev
help
and go straight to linux vm?
2017-06-23T15:09:41.999257
Meg
pythondev_help_Meg_2017-06-23T15:09:41.999257
1,498,230,581.999257
83,000
pythondev
help
you've been bashing your head against this issue for, what, two days now?
2017-06-23T15:09:55.003639
Meg
pythondev_help_Meg_2017-06-23T15:09:55.003639
1,498,230,595.003639
83,001
pythondev
help
I'd say you've given it an honest effort, now use something that _works_
2017-06-23T15:10:19.011239
Meg
pythondev_help_Meg_2017-06-23T15:10:19.011239
1,498,230,619.011239
83,002