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 | well just do pip freeze and find the package name and version | 2019-02-25T20:27:27.738900 | Candra | pythondev_help_Candra_2019-02-25T20:27:27.738900 | 1,551,126,447.7389 | 10,721 |
pythondev | help | it's 2.7.5 | 2019-02-25T20:27:39.739200 | Natosha | pythondev_help_Natosha_2019-02-25T20:27:39.739200 | 1,551,126,459.7392 | 10,722 |
pythondev | help | do `pip uninstall python_dateutil` and then `pip install python_dateutil==2.8.0` | 2019-02-25T20:28:13.739900 | Candra | pythondev_help_Candra_2019-02-25T20:28:13.739900 | 1,551,126,493.7399 | 10,723 |
pythondev | help | when I tried to uninstall the package | 2019-02-25T20:29:05.740200 | Natosha | pythondev_help_Natosha_2019-02-25T20:29:05.740200 | 1,551,126,545.7402 | 10,724 |
pythondev | help | I need to make sure the global d_names updates. Is the return statement necessary? | 2019-02-25T20:29:12.740600 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:29:12.740600 | 1,551,126,552.7406 | 10,725 |
pythondev | help | I'm getting the exception error | 2019-02-25T20:29:14.740900 | Natosha | pythondev_help_Natosha_2019-02-25T20:29:14.740900 | 1,551,126,554.7409 | 10,726 |
pythondev | help | What is the exception | 2019-02-25T20:29:24.741100 | Candra | pythondev_help_Candra_2019-02-25T20:29:24.741100 | 1,551,126,564.7411 | 10,727 |
pythondev | help | Copy what it says into here | 2019-02-25T20:29:32.741400 | Candra | pythondev_help_Candra_2019-02-25T20:29:32.741400 | 1,551,126,572.7414 | 10,728 |
pythondev | help | this are the last line
```
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: '*\\envs\\data_analysis\\lib\\site-packages\\python_dateutil-2.7.5.dist-info\\RECORD'
``` | 2019-02-25T20:30:32.741900 | Natosha | pythondev_help_Natosha_2019-02-25T20:30:32.741900 | 1,551,126,632.7419 | 10,729 |
pythondev | help | Oh wait do `pip install python-dateutil -U` | 2019-02-25T20:31:41.742600 | Candra | pythondev_help_Candra_2019-02-25T20:31:41.742600 | 1,551,126,701.7426 | 10,730 |
pythondev | help | <@Demetrice> No, the `return` isn't necessary. | 2019-02-25T20:32:05.743200 | Sasha | pythondev_help_Sasha_2019-02-25T20:32:05.743200 | 1,551,126,725.7432 | 10,731 |
pythondev | help | <@Candra> still has an error | 2019-02-25T20:33:24.743900 | Natosha | pythondev_help_Natosha_2019-02-25T20:33:24.743900 | 1,551,126,804.7439 | 10,732 |
pythondev | help | Okay nice. So i now have a class named robot and each instance of it is going to generate a new default name in the format the test wants | 2019-02-25T20:33:33.744400 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:33:33.744400 | 1,551,126,813.7444 | 10,733 |
pythondev | help | I tried creating a new virtualenv | 2019-02-25T20:33:35.744600 | Natosha | pythondev_help_Natosha_2019-02-25T20:33:35.744600 | 1,551,126,815.7446 | 10,734 |
pythondev | help | and install new packages and it works fine | 2019-02-25T20:33:49.745300 | Natosha | pythondev_help_Natosha_2019-02-25T20:33:49.745300 | 1,551,126,829.7453 | 10,735 |
pythondev | help | I guess the virtualenv is destroyed | 2019-02-25T20:34:03.745800 | Natosha | pythondev_help_Natosha_2019-02-25T20:34:03.745800 | 1,551,126,843.7458 | 10,736 |
pythondev | help | Yeah was gonna say just recreate it | 2019-02-25T20:34:03.745900 | Candra | pythondev_help_Candra_2019-02-25T20:34:03.745900 | 1,551,126,843.7459 | 10,737 |
pythondev | help | yeah hahaha | 2019-02-25T20:34:09.746100 | Natosha | pythondev_help_Natosha_2019-02-25T20:34:09.746100 | 1,551,126,849.7461 | 10,738 |
pythondev | help | That's what they're there for :slightly_smiling_face: | 2019-02-25T20:34:18.746400 | Candra | pythondev_help_Candra_2019-02-25T20:34:18.746400 | 1,551,126,858.7464 | 10,739 |
pythondev | help | just have to replicate the packages that I installed | 2019-02-25T20:34:27.746600 | Natosha | pythondev_help_Natosha_2019-02-25T20:34:27.746600 | 1,551,126,867.7466 | 10,740 |
pythondev | help | hahah, do you know how to remove an existing virtualenv? | 2019-02-25T20:35:04.747300 | Natosha | pythondev_help_Natosha_2019-02-25T20:35:04.747300 | 1,551,126,904.7473 | 10,741 |
pythondev | help | I think i just don't know how to interpret the second set of instructions. So for the second half after i call the reset method it wants it to be a new name | 2019-02-25T20:36:30.748000 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:36:30.748000 | 1,551,126,990.748 | 10,742 |
pythondev | help | But not follow any pattern? | 2019-02-25T20:36:43.748200 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:36:43.748200 | 1,551,127,003.7482 | 10,743 |
pythondev | help | I'm a newb, seems the while statement would fail with the first iteration. Is that correct? | 2019-02-25T20:39:47.749500 | Corey | pythondev_help_Corey_2019-02-25T20:39:47.749500 | 1,551,127,187.7495 | 10,744 |
pythondev | help | Oh don't sorry. I'm really new too. yet somehow i wanna be job ready in a few weeks | 2019-02-25T20:44:42.750400 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:44:42.750400 | 1,551,127,482.7504 | 10,745 |
pythondev | help | The while statement is only there to make sure that the value that's randomly generated is unique | 2019-02-25T20:44:58.751000 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:44:58.751000 | 1,551,127,498.751 | 10,746 |
pythondev | help | Did you try .appending the default_name to the d_names list initially? | 2019-02-25T20:45:09.751400 | Corey | pythondev_help_Corey_2019-02-25T20:45:09.751400 | 1,551,127,509.7514 | 10,747 |
pythondev | help | So while it's not unique i want the program to try again | 2019-02-25T20:45:19.751600 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:45:19.751600 | 1,551,127,519.7516 | 10,748 |
pythondev | help | <@Candra> I got it. Thanks man for the help :slightly_smiling_face: | 2019-02-25T20:46:04.752300 | Natosha | pythondev_help_Natosha_2019-02-25T20:46:04.752300 | 1,551,127,564.7523 | 10,749 |
pythondev | help | <@Demetrice> sorry for interrupting your convo earlier | 2019-02-25T20:46:50.752700 | Natosha | pythondev_help_Natosha_2019-02-25T20:46:50.752700 | 1,551,127,610.7527 | 10,750 |
pythondev | help | Oh no you're fine. I felt bad. That's why i tried to not type as much while you where going | 2019-02-25T20:47:56.753200 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:47:56.753200 | 1,551,127,676.7532 | 10,751 |
pythondev | help | I can understand how frustrating issues like that can be | 2019-02-25T20:48:31.753700 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:48:31.753700 | 1,551,127,711.7537 | 10,752 |
pythondev | help | <@Demetrice> letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
d_names = []
default_name = random.choice(letters) + random.choice(letters) + str(random.randint(0,9))+ str(random.randint(0,9))+ str(random.randint(0,9))
d_names.append(default_name)
print(d_names) | 2019-02-25T20:50:04.754000 | Corey | pythondev_help_Corey_2019-02-25T20:50:04.754000 | 1,551,127,804.754 | 10,753 |
pythondev | help | <@Demetrice> See the list chained to the built-in append() function? :slightly_smiling_face: | 2019-02-25T20:51:15.755200 | Corey | pythondev_help_Corey_2019-02-25T20:51:15.755200 | 1,551,127,875.7552 | 10,754 |
pythondev | help | Well so i'm writing this all as part of a class. so i don't really want to print anything | 2019-02-25T20:51:15.755300 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:51:15.755300 | 1,551,127,875.7553 | 10,755 |
pythondev | help | Oh, the print was just a test of the desired value | 2019-02-25T20:51:34.755800 | Corey | pythondev_help_Corey_2019-02-25T20:51:34.755800 | 1,551,127,894.7558 | 10,756 |
pythondev | help | It's just part of your total script from before. | 2019-02-25T20:52:00.756500 | Corey | pythondev_help_Corey_2019-02-25T20:52:00.756500 | 1,551,127,920.7565 | 10,757 |
pythondev | help | I get what you're saying. You're just saying that i should write the last line a little differently | 2019-02-25T20:52:17.756800 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:52:17.756800 | 1,551,127,937.7568 | 10,758 |
pythondev | help | I guess it would look better that way, Thanks | 2019-02-25T20:52:28.757200 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:52:28.757200 | 1,551,127,948.7572 | 10,759 |
pythondev | help | The first four initialize the list. | 2019-02-25T20:52:57.757700 | Corey | pythondev_help_Corey_2019-02-25T20:52:57.757700 | 1,551,127,977.7577 | 10,760 |
pythondev | help | How many elements would you like to store in the list? | 2019-02-25T20:53:46.758100 | Corey | pythondev_help_Corey_2019-02-25T20:53:46.758100 | 1,551,128,026.7581 | 10,761 |
pythondev | help | It's not a fixed number. It's just supposed to pass this test | 2019-02-25T20:56:34.759200 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:56:34.759200 | 1,551,128,194.7592 | 10,762 |
pythondev | help | Have you ever gone through the tests on <http://exercism.io|exercism.io>? They've all been pretty difficult for me so far | 2019-02-25T20:56:56.760100 | Demetrice | pythondev_help_Demetrice_2019-02-25T20:56:56.760100 | 1,551,128,216.7601 | 10,763 |
pythondev | help | <@Demetrice> Enclose my line 4, the one employing the .append() function, in a loop to keep adding new values to your list. | 2019-02-25T20:56:59.760200 | Corey | pythondev_help_Corey_2019-02-25T20:56:59.760200 | 1,551,128,219.7602 | 10,764 |
pythondev | help | Haven't noodled around on <http://exercism.io|exercism.io> | 2019-02-25T20:57:55.760700 | Corey | pythondev_help_Corey_2019-02-25T20:57:55.760700 | 1,551,128,275.7607 | 10,765 |
pythondev | help | In general though, I'd offer that in your initial code snippet above, an initial value nor subsequent values were not added to the list. | 2019-02-25T20:59:13.762000 | Corey | pythondev_help_Corey_2019-02-25T20:59:13.762000 | 1,551,128,353.762 | 10,766 |
pythondev | help | Given the dataset `[{'id': 1, 'name': 'John'}, {'id': 2, 'name': 'Mary'}]` what's the best approach to get the name of the id whose value is `n`? I can iterate through the list or do `filter`, but I'm not sure if there's a faster way of doing this when handling json. | 2019-02-25T21:28:15.763500 | Philip | pythondev_help_Philip_2019-02-25T21:28:15.763500 | 1,551,130,095.7635 | 10,767 |
pythondev | help | If you're going to be doing the same operation repeatedly, it's probably worth it to build an index dict. But for a one-off, you don't have much choice but to scan through the entries one way or another, yeah. | 2019-02-25T21:31:35.765200 | Sasha | pythondev_help_Sasha_2019-02-25T21:31:35.765200 | 1,551,130,295.7652 | 10,768 |
pythondev | help | yes, the action would be done repeatedly. So I should just do `the_index = {i['id']: i for i in foo}` then `the_index.get(n)` right? | 2019-02-25T21:32:47.766200 | Philip | pythondev_help_Philip_2019-02-25T21:32:47.766200 | 1,551,130,367.7662 | 10,769 |
pythondev | help | Yep, that's what I meant. Nice! | 2019-02-25T21:34:11.767400 | Sasha | pythondev_help_Sasha_2019-02-25T21:34:11.767400 | 1,551,130,451.7674 | 10,770 |
pythondev | help | Thanks for clarifying <@Sasha>, I was overthinking it too much like I'm missing out on something. :taco: | 2019-02-25T21:34:18.767500 | Philip | pythondev_help_Philip_2019-02-25T21:34:18.767500 | 1,551,130,458.7675 | 10,771 |
pythondev | help | Hey thanks again for all the help you guys. See you all tomorrow | 2019-02-25T23:25:57.768300 | Demetrice | pythondev_help_Demetrice_2019-02-25T23:25:57.768300 | 1,551,137,157.7683 | 10,772 |
pythondev | help | should make use of thread reply instead making new post | 2019-02-25T23:34:59.769800 | China | pythondev_help_China_2019-02-25T23:34:59.769800 | 1,551,137,699.7698 | 10,773 |
pythondev | help | What would people in here recommend for simple file logging for a transaction processing app? My app automates transactions through a windows desktop application and I want to capture logs such as:
```
yyyy-mm-dd hh:mi:ss -- xyz123 processed
yyyy-mm-dd hh:mi:ss -- abc098 not found
```
(where 'yyyy-mm-dd hh:mi:ss' would be the date and time of the transaction). | 2019-02-26T00:12:45.772200 | Chuck | pythondev_help_Chuck_2019-02-26T00:12:45.772200 | 1,551,139,965.7722 | 10,774 |
pythondev | help | `logzero` looks interesting -- has anyone used this? | 2019-02-26T00:13:42.772700 | Chuck | pythondev_help_Chuck_2019-02-26T00:13:42.772700 | 1,551,140,022.7727 | 10,775 |
pythondev | help | <@Chuck> Is there some reason that the `logging` module won't work? | 2019-02-26T00:23:01.773400 | Krista | pythondev_help_Krista_2019-02-26T00:23:01.773400 | 1,551,140,581.7734 | 10,776 |
pythondev | help | <@Krista> probably no reason at all, I don't know enough about it (yet) to know if it matches the 'simple' benchmark. But will definitely investigate, many thanks. | 2019-02-26T00:27:43.774400 | Chuck | pythondev_help_Chuck_2019-02-26T00:27:43.774400 | 1,551,140,863.7744 | 10,777 |
pythondev | help | <@Chuck> It's fairly robust, and is more than adequate for the rather simple example logs you provided. You are handed FileHandlers out of the box, and can even setup automatic file log rotation.
`logzero` looks interesting, though I've never used it; but it seems like overkill for your use case | 2019-02-26T00:30:51.775800 | Krista | pythondev_help_Krista_2019-02-26T00:30:51.775800 | 1,551,141,051.7758 | 10,778 |
pythondev | help | interesting, worth investigating -- I don't need rotating log files, I need log files 'attached' (by using the same filename aside from the ".log" extension) to the batch files that are processed. I'm sure `logging` can do this as well. | 2019-02-26T00:33:18.777100 | Chuck | pythondev_help_Chuck_2019-02-26T00:33:18.777100 | 1,551,141,198.7771 | 10,779 |
pythondev | help | as in the batch file would be called something like `process_this_2019-02-26.csv` and the log file would be `process_this_2019-02-26.log`. | 2019-02-26T00:34:57.777900 | Chuck | pythondev_help_Chuck_2019-02-26T00:34:57.777900 | 1,551,141,297.7779 | 10,780 |
pythondev | help | In vscode it doesn’t detect any django tests though a standard python test can be detected. Do I need to config the python extension somehow for detecting django tests? | 2019-02-26T05:28:31.780300 | Lanny | pythondev_help_Lanny_2019-02-26T05:28:31.780300 | 1,551,158,911.7803 | 10,781 |
pythondev | help | Or should this be asked in <#C0LMFRMB5|django> ? | 2019-02-26T05:34:51.780800 | Lanny | pythondev_help_Lanny_2019-02-26T05:34:51.780800 | 1,551,159,291.7808 | 10,782 |
pythondev | help | there is #testing_ channel. i hope it could help | 2019-02-26T05:38:45.781400 | Sherrie | pythondev_help_Sherrie_2019-02-26T05:38:45.781400 | 1,551,159,525.7814 | 10,783 |
pythondev | help | Hi folks, anyone here used Requests_html to render pages ? | 2019-02-26T07:01:45.781900 | Jeannine | pythondev_help_Jeannine_2019-02-26T07:01:45.781900 | 1,551,164,505.7819 | 10,784 |
pythondev | help | I have a page that won't render with this library, but will in Chromium, and also when run direct from pyppeteer (the library used by requests_html) | 2019-02-26T07:02:12.782500 | Jeannine | pythondev_help_Jeannine_2019-02-26T07:02:12.782500 | 1,551,164,532.7825 | 10,785 |
pythondev | help | question in more detail in <#C07F1KB2Q|advanced_python> | 2019-02-26T07:27:59.783600 | Jeannine | pythondev_help_Jeannine_2019-02-26T07:27:59.783600 | 1,551,166,079.7836 | 10,786 |
pythondev | help | Does anyone have the package Prophet installed with Windows? I have the familiar problem that I can install and use Prophet on my Mac, but not on my Windows device. I have installed it via Anaconda (together with depending packages such as Pystan) but I get the traceback "No module named fbprophet" Anyone succeeded? | 2019-02-26T07:39:29.785700 | Bob | pythondev_help_Bob_2019-02-26T07:39:29.785700 | 1,551,166,769.7857 | 10,787 |
pythondev | help | I have a bash installation script that runs through a couple conditionals and does several apt-get/installs, it exposes a port, then runs the application on a tomcat server.
How do I go about creating a standalone *docker image* of this entire application? | 2019-02-26T08:58:08.786100 | Mariah | pythondev_help_Mariah_2019-02-26T08:58:08.786100 | 1,551,171,488.7861 | 10,788 |
pythondev | help | <https://docs.docker.com/get-started/part2/> will be a lot of help here | 2019-02-26T09:09:36.786500 | Jonas | pythondev_help_Jonas_2019-02-26T09:09:36.786500 | 1,551,172,176.7865 | 10,789 |
pythondev | help | Give that a read <@Mariah> | 2019-02-26T09:09:50.787000 | Jonas | pythondev_help_Jonas_2019-02-26T09:09:50.787000 | 1,551,172,190.787 | 10,790 |
pythondev | help | Has anyone solve this <https://ayende.com/blog/104449/hiring-questions-the-phone-book> | 2019-02-26T09:40:19.788100 | Lourie | pythondev_help_Lourie_2019-02-26T09:40:19.788100 | 1,551,174,019.7881 | 10,791 |
pythondev | help | ? | 2019-02-26T09:40:19.788200 | Lourie | pythondev_help_Lourie_2019-02-26T09:40:19.788200 | 1,551,174,019.7882 | 10,792 |
pythondev | help | <@Lourie> I just have it a quick read, and it seems pretty straightforward | 2019-02-26T09:42:38.788600 | Ashley | pythondev_help_Ashley_2019-02-26T09:42:38.788600 | 1,551,174,158.7886 | 10,793 |
pythondev | help | It's meant to be somewhat open-ended with plenty of things to cover to see how you, as a developer, go about problem solving | 2019-02-26T09:43:18.789600 | Ashley | pythondev_help_Ashley_2019-02-26T09:43:18.789600 | 1,551,174,198.7896 | 10,794 |
pythondev | help | the persistence bit is the only thing that seemed extraordinary to me :smile: | 2019-02-26T09:45:23.790200 | Otto | pythondev_help_Otto_2019-02-26T09:45:23.790200 | 1,551,174,323.7902 | 10,795 |
pythondev | help | what the heck do they want :slightly_smiling_face: | 2019-02-26T09:45:41.790600 | Otto | pythondev_help_Otto_2019-02-26T09:45:41.790600 | 1,551,174,341.7906 | 10,796 |
pythondev | help | sqlite or something similar I'd guess | 2019-02-26T09:45:57.790900 | Carlo | pythondev_help_Carlo_2019-02-26T09:45:57.790900 | 1,551,174,357.7909 | 10,797 |
pythondev | help | bson | 2019-02-26T09:46:14.791500 | Otto | pythondev_help_Otto_2019-02-26T09:46:14.791500 | 1,551,174,374.7915 | 10,798 |
pythondev | help | quite unusual | 2019-02-26T09:46:36.792200 | Otto | pythondev_help_Otto_2019-02-26T09:46:36.792200 | 1,551,174,396.7922 | 10,799 |
pythondev | help | but that's a requirement I'd actually discuss over in an actual interview | 2019-02-26T09:46:55.792600 | Carlo | pythondev_help_Carlo_2019-02-26T09:46:55.792600 | 1,551,174,415.7926 | 10,800 |
pythondev | help | ya like is csv okay? | 2019-02-26T09:47:09.793300 | Claudine | pythondev_help_Claudine_2019-02-26T09:47:09.793300 | 1,551,174,429.7933 | 10,801 |
pythondev | help | I’d ask why | 2019-02-26T09:47:12.793600 | Otto | pythondev_help_Otto_2019-02-26T09:47:12.793600 | 1,551,174,432.7936 | 10,802 |
pythondev | help | looking for a rationale behind the decision | 2019-02-26T09:47:12.793800 | Carlo | pythondev_help_Carlo_2019-02-26T09:47:12.793800 | 1,551,174,432.7938 | 10,803 |
pythondev | help | seems like an odd one | 2019-02-26T09:47:16.793900 | Claudine | pythondev_help_Claudine_2019-02-26T09:47:16.793900 | 1,551,174,436.7939 | 10,804 |
pythondev | help | The persistence format of the phone book library must be a file, (i.e. XML, JSON, Binary etc.) and is not an embedded DB (i.e. SQLite, Access, Excel, etc. are not allowed). | 2019-02-26T09:47:17.794200 | Lourie | pythondev_help_Lourie_2019-02-26T09:47:17.794200 | 1,551,174,437.7942 | 10,805 |
pythondev | help | > text based format _such as_ XML or Json has been ruled out. | 2019-02-26T09:47:22.794500 | Carlo | pythondev_help_Carlo_2019-02-26T09:47:22.794500 | 1,551,174,442.7945 | 10,806 |
pythondev | help | so CSV is not okay | 2019-02-26T09:47:26.794700 | Carlo | pythondev_help_Carlo_2019-02-26T09:47:26.794700 | 1,551,174,446.7947 | 10,807 |
pythondev | help | for some reason | 2019-02-26T09:47:28.794900 | Carlo | pythondev_help_Carlo_2019-02-26T09:47:28.794900 | 1,551,174,448.7949 | 10,808 |
pythondev | help | .pkl | 2019-02-26T09:47:30.795200 | Lillia | pythondev_help_Lillia_2019-02-26T09:47:30.795200 | 1,551,174,450.7952 | 10,809 |
pythondev | help | Hi guys | 2019-02-26T09:47:53.795900 | Harvey | pythondev_help_Harvey_2019-02-26T09:47:53.795900 | 1,551,174,473.7959 | 10,810 |
pythondev | help | I saved them on binary file | 2019-02-26T09:47:55.796100 | Lourie | pythondev_help_Lourie_2019-02-26T09:47:55.796100 | 1,551,174,475.7961 | 10,811 |
pythondev | help | >text based format such as XML or Json has been ruled out. | 2019-02-26T09:48:13.796600 | Claudine | pythondev_help_Claudine_2019-02-26T09:48:13.796600 | 1,551,174,493.7966 | 10,812 |
pythondev | help | but they add another point : "The library should be ready for other persistence formats even though only the implementation for a file storage is currently required. " | 2019-02-26T09:48:15.796800 | Lourie | pythondev_help_Lourie_2019-02-26T09:48:15.796800 | 1,551,174,495.7968 | 10,813 |
pythondev | help | ```
import zipfile
file = zipfile.ZipFile("hi.zip")
passwd = open("dic.txt")
for line in passwd.readlines():
pw = line.strip("\n")
file.extractall(pwd=bytes(pw,"utf-8"))
print("### Password = " + pwd)
```
| 2019-02-26T09:48:20.797000 | Harvey | pythondev_help_Harvey_2019-02-26T09:48:20.797000 | 1,551,174,500.797 | 10,814 |
pythondev | help | Im getting error:
```
Traceback (most recent call last):
File "cracker.py", line 11, in <module>
file.extractall(pwd=bytes(pw,"utf-8"))
File "/usr/lib/python3.7/zipfile.py", line 1616, in extractall
self._extract_member(zipinfo, path, pwd)
File "/usr/lib/python3.7/zipfile.py", line 1669, in _extract_member
with self.open(member, pwd=pwd) as source, \
File "/usr/lib/python3.7/zipfile.py", line 1538, in open
raise RuntimeError("Bad password for file %r" % name)
RuntimeError: Bad password for file <ZipInfo filename='hi.txt' filemode='-rw-r--r--' file_size=0 compress_size=12>
``` | 2019-02-26T09:49:02.798100 | Harvey | pythondev_help_Harvey_2019-02-26T09:49:02.798100 | 1,551,174,542.7981 | 10,815 |
pythondev | help | But i have entered the correct password in dic.txt | 2019-02-26T09:49:17.798900 | Harvey | pythondev_help_Harvey_2019-02-26T09:49:17.798900 | 1,551,174,557.7989 | 10,816 |
pythondev | help | <@Lourie> that's mostly so you abstract your IO in some wrapper class | 2019-02-26T09:49:33.799300 | Carlo | pythondev_help_Carlo_2019-02-26T09:49:33.799300 | 1,551,174,573.7993 | 10,817 |
pythondev | help | so the API doesn't change, and rewriting the storage part only requires modifying that class | 2019-02-26T09:50:12.800000 | Carlo | pythondev_help_Carlo_2019-02-26T09:50:12.800000 | 1,551,174,612.8 | 10,818 |
pythondev | help | yep, good old decoupling and SoC | 2019-02-26T09:52:22.801200 | Otto | pythondev_help_Otto_2019-02-26T09:52:22.801200 | 1,551,174,742.8012 | 10,819 |
pythondev | help | Guys kindly help me | 2019-02-26T09:52:49.801500 | Harvey | pythondev_help_Harvey_2019-02-26T09:52:49.801500 | 1,551,174,769.8015 | 10,820 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.