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 | Try installing the package from repo, during the installation make a list of dependencies and then uninstall the package. After that create a requirements file or maybe do manual install of all the dependencies. | 2019-04-09T06:46:15.968100 | Virgil | pythondev_help_Virgil_2019-04-09T06:46:15.968100 | 1,554,792,375.9681 | 17,721 |
pythondev | help | Does this work? | 2019-04-09T06:46:18.968300 | Virgil | pythondev_help_Virgil_2019-04-09T06:46:18.968300 | 1,554,792,378.9683 | 17,722 |
pythondev | help | ... seems little hacky. I was hoping there's a pip option to get the requirements of a whl file or to tell pip to install everything BUT the local whl from a repo | 2019-04-09T06:48:40.970200 | Tyson | pythondev_help_Tyson_2019-04-09T06:48:40.970200 | 1,554,792,520.9702 | 17,723 |
pythondev | help | If I’m going thru a list with the for x in y: and y is a list how can I get the list number of y | 2019-04-09T06:50:44.972000 | Rodrick | pythondev_help_Rodrick_2019-04-09T06:50:44.972000 | 1,554,792,644.972 | 17,724 |
pythondev | help | Let's see if someone might suggest something, but AFAIK there is no such option. | 2019-04-09T06:50:44.972100 | Virgil | pythondev_help_Virgil_2019-04-09T06:50:44.972100 | 1,554,792,644.9721 | 17,725 |
pythondev | help | <@Rodrick> use
``` for index, x in enumerate(y):
``` | 2019-04-09T06:51:15.972600 | Virgil | pythondev_help_Virgil_2019-04-09T06:51:15.972600 | 1,554,792,675.9726 | 17,726 |
pythondev | help | K | 2019-04-09T06:51:31.972900 | Rodrick | pythondev_help_Rodrick_2019-04-09T06:51:31.972900 | 1,554,792,691.9729 | 17,727 |
pythondev | help | <@Virgil> that doesn’t really solve my problem it’s not ur fault I think I put he question wrong | 2019-04-09T06:58:24.973900 | Rodrick | pythondev_help_Rodrick_2019-04-09T06:58:24.973900 | 1,554,793,104.9739 | 17,728 |
pythondev | help | If I have list y I want to find what line string x is on | 2019-04-09T06:58:40.974500 | Rodrick | pythondev_help_Rodrick_2019-04-09T06:58:40.974500 | 1,554,793,120.9745 | 17,729 |
pythondev | help | <@Rodrick> please paste your code or a similar example code as a snippet. That would help me to understand the problem | 2019-04-09T06:59:14.975000 | Virgil | pythondev_help_Virgil_2019-04-09T06:59:14.975000 | 1,554,793,154.975 | 17,730 |
pythondev | help | <@Rodrick> `print([i for i, e in enumerate(y) if e == 'string value'])` | 2019-04-09T08:27:34.976300 | Chuck | pythondev_help_Chuck_2019-04-09T08:27:34.976300 | 1,554,798,454.9763 | 17,731 |
pythondev | help | <@Rodrick> if you don't know the complete string:
```
for index, item in enumerate(my_list):
if my_string in item:
break
print(index)
```
this is very similar to <@Chuck>'s approach, but this goes for partial matches, isn't a list comprehension so it won't give you a list of indexes back, and will stop on the first match it finds instead of iterating over the whole list, so it's faster. But if you need all indexes that it's found in, go with <@Chuck>’s approach (but switch `==` for `in` and flip them around).
if you do know the complete string:
```
index = my_list.index(my_string)
```
If you need all matches though, <@Chuck> approach will find them all | 2019-04-09T08:59:02.984200 | Ashley | pythondev_help_Ashley_2019-04-09T08:59:02.984200 | 1,554,800,342.9842 | 17,732 |
pythondev | help | <@Ashley> I think you need to be careful with `list.index()` -- it will throw an error if the value isn't in the list, so you would need this in a `try` | 2019-04-09T09:26:18.986600 | Chuck | pythondev_help_Chuck_2019-04-09T09:26:18.986600 | 1,554,801,978.9866 | 17,733 |
pythondev | help | Hi :slightly_smiling_face: Hope everyone is well :slightly_smiling_face: I'm looking for a reliable python packager, for mobile apps. Currently trying Buildozer with Kivy but it's hard :disappointed: Python3 on Mac btw :slightly_smiling_face: Oh and Android :slightly_smiling_face: | 2019-04-09T09:26:45.987200 | Erika | pythondev_help_Erika_2019-04-09T09:26:45.987200 | 1,554,802,005.9872 | 17,734 |
pythondev | help | I have a really odd situation happening with `pyautogui` I have a function which has a try-except block in it to check use the `locateCenterOnSreen` and then `click` functions depending on what image it is there. And this works but when I call the function from another module, it works first time then the second time it locates the image verified by printing the coords, but it then doesn't click the image, but if I test it without calling it from another function it works fine | 2019-04-09T09:33:29.991200 | Arturo | pythondev_help_Arturo_2019-04-09T09:33:29.991200 | 1,554,802,409.9912 | 17,735 |
pythondev | help | ```
def login_out_spes(want_offline):
try:
print("this is want offline")
print(want_offline)
print()
coord_x, coord_y = pyautogui.locateCenterOnScreen("img\\online_spes.png")
if want_offline == True:
print(coord_x, coord_y)
pyautogui.click(x=coord_x, y=coord_y)
except:
coord_x, coord_y = pyautogui.locateCenterOnScreen("img\\offline_spes.png")
pyautogui.click(coord_x, coord_y, button='right')
click_item(1, 1, "select_spes")
[pyautogui.hotkey("up") for x in range(0, 3)]
pyautogui.press("enter")
``` | 2019-04-09T09:37:10.992500 | Arturo | pythondev_help_Arturo_2019-04-09T09:37:10.992500 | 1,554,802,630.9925 | 17,736 |
pythondev | help | Sounds like you are more in need of R. Python is good for analytical development however R is better for Data Analysis.
You will seldomly create classes for Data Analysis but much more for Analytical Development. Don't try and hit the nail with a saw, use a hammer | 2019-04-09T09:38:27.992600 | Erika | pythondev_help_Erika_2019-04-09T09:38:27.992600 | 1,554,802,707.9926 | 17,737 |
pythondev | help | <@Chuck> good catch. thanks! | 2019-04-09T09:53:14.993300 | Ashley | pythondev_help_Ashley_2019-04-09T09:53:14.993300 | 1,554,803,594.9933 | 17,738 |
pythondev | help | Hi, I am looking for a library that would help with displaying a PDF or image on the screen, allowing you to draw a field on it, and send back the field coordinates. Perhaps more a JavaScript question. I've seen a million implementations of it but I can't tell if there's a standard library people are using. Any suggestions?
This is to enhance an open source platform called Docassemble to make it easier for people to automate forms for access to justice applications.
Hate to reinvent the wheel. I think I might be using the wrong keywords when I'm searching for prior examples | 2019-04-09T10:21:13.996300 | Fredric | pythondev_help_Fredric_2019-04-09T10:21:13.996300 | 1,554,805,273.9963 | 17,739 |
pythondev | help | ReStructured Text is driving me insane. All I want to do is define the beginning AND END of a code block so I can have a blank line in my code. I’ve been googling for like 30 minutes. | 2019-04-09T10:51:00.997900 | Carrol | pythondev_help_Carrol_2019-04-09T10:51:00.997900 | 1,554,807,060.9979 | 17,740 |
pythondev | help | isn’t it just a blank line? | 2019-04-09T10:52:11.998200 | Clemmie | pythondev_help_Clemmie_2019-04-09T10:52:11.998200 | 1,554,807,131.9982 | 17,741 |
pythondev | help | Apparently not. Here’s what I have:
```
.. code-block:: python
from django.shortcuts import redirect
from hueydrfapi import TaskGroup
from myapp.tasks import my_task
def run_a_bunch_of_tasks(iterable):
task_group = TaskGroup()
for item in iterable:
task_group.add(my_task(item))
return redirect(task_group.url)
``` | 2019-04-09T10:53:28.998600 | Carrol | pythondev_help_Carrol_2019-04-09T10:53:28.998600 | 1,554,807,208.9986 | 17,742 |
pythondev | help | None | 2019-04-09T10:53:58.998700 | Carrol | pythondev_help_Carrol_2019-04-09T10:53:58.998700 | 1,554,807,238.9987 | 17,743 |
pythondev | help | that’s what Github shows | 2019-04-09T10:54:06.999100 | Carrol | pythondev_help_Carrol_2019-04-09T10:54:06.999100 | 1,554,807,246.9991 | 17,744 |
pythondev | help | I just looked it up - blocks are indent aware - you need to indent every line after your `.. code-block:: python` and when you dedent the code block is over | 2019-04-09T10:55:30.000100 | Clemmie | pythondev_help_Clemmie_2019-04-09T10:55:30.000100 | 1,554,807,330.0001 | 17,745 |
pythondev | help | Thank you! | 2019-04-09T10:57:39.000300 | Carrol | pythondev_help_Carrol_2019-04-09T10:57:39.000300 | 1,554,807,459.0003 | 17,746 |
pythondev | help | Your welcome (also :taco: only works in comments with an @ mention) | 2019-04-09T10:59:26.001100 | Clemmie | pythondev_help_Clemmie_2019-04-09T10:59:26.001100 | 1,554,807,566.0011 | 17,747 |
pythondev | help | :taco: <@Carrol> | 2019-04-09T10:59:39.001500 | Clemmie | pythondev_help_Clemmie_2019-04-09T10:59:39.001500 | 1,554,807,579.0015 | 17,748 |
pythondev | help | taco rules and regulations, per the taco overlords
:taco: <@Clemmie> | 2019-04-09T11:01:26.002500 | Carrol | pythondev_help_Carrol_2019-04-09T11:01:26.002500 | 1,554,807,686.0025 | 17,749 |
pythondev | help | wasn’t it Hipchat or IRC? | 2019-04-09T11:39:58.003000 | Rivka | pythondev_help_Rivka_2019-04-09T11:39:58.003000 | 1,554,809,998.003 | 17,750 |
pythondev | help | You can test if the `response` is returned and if its value is the expected…
```
assert "Terminated" = terminate(id)
```
If the response is the client instance with a changed state, it will be more tricky. But you can also test if the state was changed to the expected value
```
terminated_client = terminate(id)
assert "terminated" == terminated_client.status
``` | 2019-04-09T11:54:29.003300 | Rivka | pythondev_help_Rivka_2019-04-09T11:54:29.003300 | 1,554,810,869.0033 | 17,751 |
pythondev | help | I need delete all button on Tkinter window | 2019-04-09T11:59:06.004000 | Brittany | pythondev_help_Brittany_2019-04-09T11:59:06.004000 | 1,554,811,146.004 | 17,752 |
pythondev | help | but keep a combobox on it | 2019-04-09T12:00:11.004500 | Brittany | pythondev_help_Brittany_2019-04-09T12:00:11.004500 | 1,554,811,211.0045 | 17,753 |
pythondev | help | anyone can help? | 2019-04-09T12:00:16.004800 | Brittany | pythondev_help_Brittany_2019-04-09T12:00:16.004800 | 1,554,811,216.0048 | 17,754 |
pythondev | help | None | 2019-04-09T12:00:35.004900 | Brittany | pythondev_help_Brittany_2019-04-09T12:00:35.004900 | 1,554,811,235.0049 | 17,755 |
pythondev | help | Hi, can anybody help me make a plot time vs temp that compares the curve for different h (step sizes)? Thanks! :slightly_smiling_face: | 2019-04-09T12:09:32.005200 | Doretha | pythondev_help_Doretha_2019-04-09T12:09:32.005200 | 1,554,811,772.0052 | 17,756 |
pythondev | help | Hi everyone. Is there a decent library or some solution for handling converting date strings of varying types to a consistent type? Specifically I'm pulling news from <http://newsapi.org|newsapi.org> and their timestamps vary ... some are in `2019-04-09T16:09:46.8946424+00:00` format, some are in regular `2019-04-09T16:09:46Z` format, some have varying milliseconds, nanoseconds, etc. I just want to be able to convert them all to eastern time. Is there any way other than building an if-statement for every possible format? | 2019-04-09T12:32:33.008200 | Frankie | pythondev_help_Frankie_2019-04-09T12:32:33.008200 | 1,554,813,153.0082 | 17,757 |
pythondev | help | I'd at least take a look at Arrow <https://arrow.readthedocs.io/en/latest/> | 2019-04-09T12:40:03.008700 | Joette | pythondev_help_Joette_2019-04-09T12:40:03.008700 | 1,554,813,603.0087 | 17,758 |
pythondev | help | parsedatetime <https://pypi.org/project/parsedatetime/> | 2019-04-09T12:41:45.009100 | Joette | pythondev_help_Joette_2019-04-09T12:41:45.009100 | 1,554,813,705.0091 | 17,759 |
pythondev | help | thanks. fwiw they are all UTC time so I do know that | 2019-04-09T12:53:59.010000 | Frankie | pythondev_help_Frankie_2019-04-09T12:53:59.010000 | 1,554,814,439.01 | 17,760 |
pythondev | help | the issue is I don't know what format it will come in. I think even w/ arrow I will need to have a bunch of conditional logic to decide which function to use. | 2019-04-09T12:55:01.010700 | Frankie | pythondev_help_Frankie_2019-04-09T12:55:01.010700 | 1,554,814,501.0107 | 17,761 |
pythondev | help | Probably yes. In arrow anything that isn’t an ISO-8601 (and possibly some that are) will need the format provided. | 2019-04-09T12:57:52.012300 | Clemmie | pythondev_help_Clemmie_2019-04-09T12:57:52.012300 | 1,554,814,672.0123 | 17,762 |
pythondev | help | Time is hard - the real answer is to get in touch with newsapi and push for them to normalize their timestamps | 2019-04-09T12:59:00.013900 | Clemmie | pythondev_help_Clemmie_2019-04-09T12:59:00.013900 | 1,554,814,740.0139 | 17,763 |
pythondev | help | When would you use Flask (or Django) over just using CouchDB?
CouchDB has a REST api and a NoSQL database built in.
(Seeing if there is a reason to convince my teammates away from CouchDB) | 2019-04-09T12:59:11.014100 | Annabell | pythondev_help_Annabell_2019-04-09T12:59:11.014100 | 1,554,814,751.0141 | 17,764 |
pythondev | help | When you want a relational database | 2019-04-09T12:59:52.014700 | Clemmie | pythondev_help_Clemmie_2019-04-09T12:59:52.014700 | 1,554,814,792.0147 | 17,765 |
pythondev | help | pg has a rest api option for it, but to be honest, the inclusion of that in a prod project gives me the chills | 2019-04-09T13:00:06.015200 | Hiroko | pythondev_help_Hiroko_2019-04-09T13:00:06.015200 | 1,554,814,806.0152 | 17,766 |
pythondev | help | pg? postgresql? | 2019-04-09T13:00:35.015700 | Annabell | pythondev_help_Annabell_2019-04-09T13:00:35.015700 | 1,554,814,835.0157 | 17,767 |
pythondev | help | also, <@Clemmie> has a point. if your data is relational and structured, stick with a RDBMS | 2019-04-09T13:00:42.016100 | Hiroko | pythondev_help_Hiroko_2019-04-09T13:00:42.016100 | 1,554,814,842.0161 | 17,768 |
pythondev | help | <@Clemmie> : D true. Maybe just use Django at that point and its ORM. | 2019-04-09T13:01:05.016700 | Annabell | pythondev_help_Annabell_2019-04-09T13:01:05.016700 | 1,554,814,865.0167 | 17,769 |
pythondev | help | Also often your rest model _does not_ map cleanly to tables | 2019-04-09T13:01:25.017200 | Clemmie | pythondev_help_Clemmie_2019-04-09T13:01:25.017200 | 1,554,814,885.0172 | 17,770 |
pythondev | help | so a built in rest view is nice, but you end up implementing another set of rest endpoints in a different stack | 2019-04-09T13:02:13.018000 | Clemmie | pythondev_help_Clemmie_2019-04-09T13:02:13.018000 | 1,554,814,933.018 | 17,771 |
pythondev | help | Gotcha.
Thanks for the information. | 2019-04-09T13:02:53.018500 | Annabell | pythondev_help_Annabell_2019-04-09T13:02:53.018500 | 1,554,814,973.0185 | 17,772 |
pythondev | help | thanks guys. I'll deal w/ it for now I guess. I agree non-normalized timestamps are annoying as hell though | 2019-04-09T13:03:24.018900 | Frankie | pythondev_help_Frankie_2019-04-09T13:03:24.018900 | 1,554,815,004.0189 | 17,773 |
pythondev | help | hello, anyone experienced with wtforms? | 2019-04-09T15:03:04.024800 | Mario | pythondev_help_Mario_2019-04-09T15:03:04.024800 | 1,554,822,184.0248 | 17,774 |
pythondev | help | I wonder about the first parameter (u'Full Name',...) for example | 2019-04-09T15:04:43.024900 | Mario | pythondev_help_Mario_2019-04-09T15:04:43.024900 | 1,554,822,283.0249 | 17,775 |
pythondev | help | what does the u stand for? I couldn't fnd it in the docs, and the examples vary, some are written with u some without | 2019-04-09T15:05:20.025800 | Mario | pythondev_help_Mario_2019-04-09T15:05:20.025800 | 1,554,822,320.0258 | 17,776 |
pythondev | help | here it is different | 2019-04-09T15:06:29.025900 | Mario | pythondev_help_Mario_2019-04-09T15:06:29.025900 | 1,554,822,389.0259 | 17,777 |
pythondev | help | <@Mario> it indicates a unicode string (opposed to a to byte string) in python2. If you are using python3 (and you should be) ~don’t use it~ it is meaningless. | 2019-04-09T15:18:57.029100 | Clemmie | pythondev_help_Clemmie_2019-04-09T15:18:57.029100 | 1,554,823,137.0291 | 17,778 |
pythondev | help | If that documentation is on the wtforms page I would open and issue/make a pull request if I were you, according to their test setup they don’t support python2 anymore | 2019-04-09T15:19:10.029400 | Clemmie | pythondev_help_Clemmie_2019-04-09T15:19:10.029400 | 1,554,823,150.0294 | 17,779 |
pythondev | help | ok thanks | 2019-04-09T15:19:41.029700 | Mario | pythondev_help_Mario_2019-04-09T15:19:41.029700 | 1,554,823,181.0297 | 17,780 |
pythondev | help | I am using v3 yes | 2019-04-09T15:21:47.030200 | Mario | pythondev_help_Mario_2019-04-09T15:21:47.030200 | 1,554,823,307.0302 | 17,781 |
pythondev | help | perfect | 2019-04-09T15:22:20.030600 | Clemmie | pythondev_help_Clemmie_2019-04-09T15:22:20.030600 | 1,554,823,340.0306 | 17,782 |
pythondev | help | FYI I ended up finding a decent way to handle multiple time formats | 2019-04-09T15:29:49.031100 | Frankie | pythondev_help_Frankie_2019-04-09T15:29:49.031100 | 1,554,823,789.0311 | 17,783 |
pythondev | help | None | 2019-04-09T15:31:28.031900 | Frankie | pythondev_help_Frankie_2019-04-09T15:31:28.031900 | 1,554,823,888.0319 | 17,784 |
pythondev | help | Feel free to critique if you see any way to make it better but it works well so far for handling all the formats I've come across :slightly_smiling_face: | 2019-04-09T15:33:04.032800 | Frankie | pythondev_help_Frankie_2019-04-09T15:33:04.032800 | 1,554,823,984.0328 | 17,785 |
pythondev | help | Hi! Is there anybody who uses behave? I need to find the way how to parametrize Example based on environment I use. Something like:
```
@use.with_stage=develop
Examples: Araxas
| name | birthyear |
| Alice | 1985 |
@use.with_stage=integration
Examples:
| name | birthyear |
| Charly | 1995 |
```
I tried to use that way but
1. It tries to find develop or integration folders (like `develop_steps`) but the example from docs uses the default folder…have no idea my version looks folder | 2019-04-09T17:19:02.038900 | Mi | pythondev_help_Mi_2019-04-09T17:19:02.038900 | 1,554,830,342.0389 | 17,786 |
pythondev | help | <@Clemmie> :taco: :taco: :taco: :taco: :taco: I appreciate all the help | 2019-04-09T21:23:13.000600 | Demetrice | pythondev_help_Demetrice_2019-04-09T21:23:13.000600 | 1,554,844,993.0006 | 17,787 |
pythondev | help | hi can i ask for django help here | 2019-04-09T22:59:00.001300 | Nickole | pythondev_help_Nickole_2019-04-09T22:59:00.001300 | 1,554,850,740.0013 | 17,788 |
pythondev | help | I can't help with django, and I think you'll be fine asking here, but fyi there is also a <#C0LMFRMB5|django> channel! :slightly_smiling_face: | 2019-04-09T23:12:56.002200 | Marth | pythondev_help_Marth_2019-04-09T23:12:56.002200 | 1,554,851,576.0022 | 17,789 |
pythondev | help | Why 5^2 equals 7 but 5**2 equals 25 in python?I thought the answer to be 25 for both the cases. | 2019-04-09T23:18:05.003400 | Scot | pythondev_help_Scot_2019-04-09T23:18:05.003400 | 1,554,851,885.0034 | 17,790 |
pythondev | help | What does '^' mean in python? | 2019-04-09T23:18:29.003800 | Scot | pythondev_help_Scot_2019-04-09T23:18:29.003800 | 1,554,851,909.0038 | 17,791 |
pythondev | help | It's the exclusive-or (XOR) bitwise operator. So `0b0101 ^ 0b0010 == 0b0111` in binary. | 2019-04-09T23:24:40.004900 | Sasha | pythondev_help_Sasha_2019-04-09T23:24:40.004900 | 1,554,852,280.0049 | 17,792 |
pythondev | help | Thanks <@Sasha> | 2019-04-10T00:24:57.006100 | Scot | pythondev_help_Scot_2019-04-10T00:24:57.006100 | 1,554,855,897.0061 | 17,793 |
pythondev | help | I am having problem in understanding how the assignment of variables are taking place,what value is assigned in a and b throughout the iterations. | 2019-04-10T00:49:04.006500 | Scot | pythondev_help_Scot_2019-04-10T00:49:04.006500 | 1,554,857,344.0065 | 17,794 |
pythondev | help | The comma is essentially doing two assignments at once, so `a, b = b, a+b` is equivalent to:
```temp1 = b
temp2 = a+b
a = temp1
b = temp2```
But note that it's not quite equivalent to:
```a = b
b = a+b```
because you don't want `a` to be altered before its old value can be used in the second part. | 2019-04-10T00:59:26.009100 | Sasha | pythondev_help_Sasha_2019-04-10T00:59:26.009100 | 1,554,857,966.0091 | 17,795 |
pythondev | help | <@Sasha> :taco:
Great explanation | 2019-04-10T01:05:35.009500 | Cori | pythondev_help_Cori_2019-04-10T01:05:35.009500 | 1,554,858,335.0095 | 17,796 |
pythondev | help | Last line
b=b+temp1 | 2019-04-10T02:34:48.010000 | Petronila | pythondev_help_Petronila_2019-04-10T02:34:48.010000 | 1,554,863,688.01 | 17,797 |
pythondev | help | hi how can one display graps in frontend/GUI using python | 2019-04-10T02:36:22.010800 | Malika | pythondev_help_Malika_2019-04-10T02:36:22.010800 | 1,554,863,782.0108 | 17,798 |
pythondev | help | like is there any python package and all? | 2019-04-10T02:36:45.011400 | Malika | pythondev_help_Malika_2019-04-10T02:36:45.011400 | 1,554,863,805.0114 | 17,799 |
pythondev | help | depends on your frontend but sure | 2019-04-10T02:38:04.011700 | Leida | pythondev_help_Leida_2019-04-10T02:38:04.011700 | 1,554,863,884.0117 | 17,800 |
pythondev | help | stuff like <https://www.qt.io/qt-for-python> | 2019-04-10T02:38:36.011900 | Leida | pythondev_help_Leida_2019-04-10T02:38:36.011900 | 1,554,863,916.0119 | 17,801 |
pythondev | help | <https://plot.ly/python/> | 2019-04-10T02:39:00.012200 | Leida | pythondev_help_Leida_2019-04-10T02:39:00.012200 | 1,554,863,940.0122 | 17,802 |
pythondev | help | matplotlib, Seaborn, ggplot, Bokeh, pygal, geoplotlib, Gleam | 2019-04-10T02:41:04.013200 | Leida | pythondev_help_Leida_2019-04-10T02:41:04.013200 | 1,554,864,064.0132 | 17,803 |
pythondev | help | Yeah, you can formulate it that way too. | 2019-04-10T02:50:34.013600 | Sasha | pythondev_help_Sasha_2019-04-10T02:50:34.013600 | 1,554,864,634.0136 | 17,804 |
pythondev | help | I'm experiencing a weird discrepancy; I try to import a class in "data_prep.py" but only
from models.policy import Policy
works in VSCode and only
from .models.policy import Policy works in flask | 2019-04-10T04:02:48.014400 | Junior | pythondev_help_Junior_2019-04-10T04:02:48.014400 | 1,554,868,968.0144 | 17,805 |
pythondev | help | Hello. I'm building virtualenv3 with python3 for my restapi project. But when I start it with `python3 index.wsgi`, return error
```
File "index.wsgi", line 5, in <module>
from app import app as application
```
How to resolve this? | 2019-04-10T04:18:10.015800 | Cinda | pythondev_help_Cinda_2019-04-10T04:18:10.015800 | 1,554,869,890.0158 | 17,806 |
pythondev | help | so all files ran by the `python` executable, needs to end in `.py` | 2019-04-10T04:22:39.016200 | Mica | pythondev_help_Mica_2019-04-10T04:22:39.016200 | 1,554,870,159.0162 | 17,807 |
pythondev | help | not `.wsgi` | 2019-04-10T04:22:47.016500 | Mica | pythondev_help_Mica_2019-04-10T04:22:47.016500 | 1,554,870,167.0165 | 17,808 |
pythondev | help | pretty sure `wsgi` isn't a file format either? :thinking_face: | 2019-04-10T04:23:02.016900 | Mica | pythondev_help_Mica_2019-04-10T04:23:02.016900 | 1,554,870,182.0169 | 17,809 |
pythondev | help | rename the file to something like `wsgi.py` | 2019-04-10T04:23:13.017200 | Mica | pythondev_help_Mica_2019-04-10T04:23:13.017200 | 1,554,870,193.0172 | 17,810 |
pythondev | help | the project has already runned on Python2 | 2019-04-10T04:36:38.017300 | Cinda | pythondev_help_Cinda_2019-04-10T04:36:38.017300 | 1,554,870,998.0173 | 17,811 |
pythondev | help | <@Cinda> are you sure? what does the full file look like? | 2019-04-10T04:37:41.017800 | Mica | pythondev_help_Mica_2019-04-10T04:37:41.017800 | 1,554,871,061.0178 | 17,812 |
pythondev | help | Of course, it's running. I have to switch environment from python 2 to python 3 (with virtualenv env). here is is's content:
```
from app import app as application
if __name__ == "__main__":
application.run(host='0.0.0.0')
``` | 2019-04-10T04:39:12.017900 | Cinda | pythondev_help_Cinda_2019-04-10T04:39:12.017900 | 1,554,871,152.0179 | 17,813 |
pythondev | help | it runned on Python 2 env well, but when I run it on python3 env, got above error! | 2019-04-10T04:40:16.018100 | Cinda | pythondev_help_Cinda_2019-04-10T04:40:16.018100 | 1,554,871,216.0181 | 17,814 |
pythondev | help | is there a full stacktrace for the error? | 2019-04-10T04:45:27.018600 | Mica | pythondev_help_Mica_2019-04-10T04:45:27.018600 | 1,554,871,527.0186 | 17,815 |
pythondev | help | ```
$ python3 index.wsgi
Traceback (most recent call last):
File "index.wsgi", line 5, in <module>
from app import app as application
``` | 2019-04-10T04:48:00.018700 | Cinda | pythondev_help_Cinda_2019-04-10T04:48:00.018700 | 1,554,871,680.0187 | 17,816 |
pythondev | help | here you are | 2019-04-10T04:48:06.018900 | Cinda | pythondev_help_Cinda_2019-04-10T04:48:06.018900 | 1,554,871,686.0189 | 17,817 |
pythondev | help | I guess none of the files have changed since switching to 3? | 2019-04-10T04:50:12.019300 | Mica | pythondev_help_Mica_2019-04-10T04:50:12.019300 | 1,554,871,812.0193 | 17,818 |
pythondev | help | yes, no file changed, all file keep origin from when it runned success on python2 | 2019-04-10T04:54:42.019500 | Cinda | pythondev_help_Cinda_2019-04-10T04:54:42.019500 | 1,554,872,082.0195 | 17,819 |
pythondev | help | In python3, I’m seeing some syntax like `request.[use]`, what is this called? Where can I read about it? | 2019-04-10T05:23:19.020900 | Neta | pythondev_help_Neta_2019-04-10T05:23:19.020900 | 1,554,873,799.0209 | 17,820 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.