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 | I wouldn’t use an ORM for this unless there’s a need to abstract the SQL away. | 2018-01-08T19:03:39.000153 | Shaun | pythondev_help_Shaun_2018-01-08T19:03:39.000153 | 1,515,438,219.000153 | 28,224 |
pythondev | help | Or you want to do object serialization. | 2018-01-08T19:04:03.000018 | Shaun | pythondev_help_Shaun_2018-01-08T19:04:03.000018 | 1,515,438,243.000018 | 28,225 |
pythondev | help | Or if you want to learn. | 2018-01-08T19:30:40.000285 | Shaun | pythondev_help_Shaun_2018-01-08T19:30:40.000285 | 1,515,439,840.000285 | 28,226 |
pythondev | help | Is it possible to do "UPDATE table set A = A - 1 WHERE ID = 1" in SQLAlchemy? | 2018-01-08T20:12:50.000091 | Jada | pythondev_help_Jada_2018-01-08T20:12:50.000091 | 1,515,442,370.000091 | 28,227 |
pythondev | help | with SQLAlchemy record.A = record.A -1 uses the fetched record's A value, not the A value stored in the database. | 2018-01-08T20:13:31.000195 | Jada | pythondev_help_Jada_2018-01-08T20:13:31.000195 | 1,515,442,411.000195 | 28,228 |
pythondev | help | You could write one Python script to do it all if you like or you could run separate cronjobs. | 2018-01-08T20:17:56.000245 | Davina | pythondev_help_Davina_2018-01-08T20:17:56.000245 | 1,515,442,676.000245 | 28,229 |
pythondev | help | It all depends on what is easier for you and your team to maintain. | 2018-01-08T20:18:35.000244 | Davina | pythondev_help_Davina_2018-01-08T20:18:35.000244 | 1,515,442,715.000244 | 28,230 |
pythondev | help | There are also good reasons to build something for learning purposes too. | 2018-01-08T22:14:05.000030 | Davina | pythondev_help_Davina_2018-01-08T22:14:05.000030 | 1,515,449,645.00003 | 28,231 |
pythondev | help | the Python Cookbook has a great section on writing a task scheduler. | 2018-01-08T22:14:18.000240 | Davina | pythondev_help_Davina_2018-01-08T22:14:18.000240 | 1,515,449,658.00024 | 28,232 |
pythondev | help | I’ve also used celery, celery-beat, and sqlalchemy | 2018-01-08T22:23:02.000195 | Davina | pythondev_help_Davina_2018-01-08T22:23:02.000195 | 1,515,450,182.000195 | 28,233 |
pythondev | help | hi everyone i asked a question yesterday in help channel but i didn’t write the complete message so i try to ask again today. Hope somebody can help me solve this probelm thanks
I have a question about python mongo orm like package(mongoengine)
Can anyone help me?
I declare a class as below
```class Product(Document... | 2018-01-08T22:23:44.000085 | Azalee | pythondev_help_Azalee_2018-01-08T22:23:44.000085 | 1,515,450,224.000085 | 28,234 |
pythondev | help | I'm guessing it's referring to this `option = DictField(`. Does the error indicate a line #? | 2018-01-08T22:24:45.000118 | Dominica | pythondev_help_Dominica_2018-01-08T22:24:45.000118 | 1,515,450,285.000118 | 28,235 |
pythondev | help | yes <@Dominica> error line is ` types = StringField()` | 2018-01-08T22:27:01.000176 | Azalee | pythondev_help_Azalee_2018-01-08T22:27:01.000176 | 1,515,450,421.000176 | 28,236 |
pythondev | help | Julian addressed it previously. What exactly are you trying to achieve? | 2018-01-08T22:28:03.000201 | Monroe | pythondev_help_Monroe_2018-01-08T22:28:03.000201 | 1,515,450,483.000201 | 28,237 |
pythondev | help | uh.. <@Monroe> i don’t know how to explain that but i will try my best
there is two reason i need to use the same name
first, i am cooperate with other so i can’t modify it easily
second, line 2 `types = StringField()` means product’s type
but at line 5 `types = StringField()` means option’s type it just a key in d... | 2018-01-08T22:35:11.000176 | Azalee | pythondev_help_Azalee_2018-01-08T22:35:11.000176 | 1,515,450,911.000176 | 28,238 |
pythondev | help | Thanks for all of the help. I'll keep researching a bit before making a final decision. | 2018-01-09T00:15:20.000192 | Cecille | pythondev_help_Cecille_2018-01-09T00:15:20.000192 | 1,515,456,920.000192 | 28,239 |
pythondev | help | How do you deal with `Warning: (1300, "Invalid utf8mb4 character string: '\\xD0\\x9A\\xD1\\x82\\xD0\\xBE...'")` error while inserting an emoji?
I am doing following things:
```
cursor.execute('SET NAMES utf8mb4')
cursor.execute('SET CHARACTER SET utf8mb4')
```
Before INSERT
And my connection string looks like:
```... | 2018-01-09T01:59:37.000246 | Krista | pythondev_help_Krista_2018-01-09T01:59:37.000246 | 1,515,463,177.000246 | 28,240 |
pythondev | help | Might have better luck asking in <#C3X4T24LB|databases> | 2018-01-09T02:08:06.000047 | Dominica | pythondev_help_Dominica_2018-01-09T02:08:06.000047 | 1,515,463,686.000047 | 28,241 |
pythondev | help | I don’t use MySQL much but does setting the charset in the connection have an effect on the charset MySQL uses for the column? There might be a mismatch there | 2018-01-09T02:21:06.000223 | Cecila | pythondev_help_Cecila_2018-01-09T02:21:06.000223 | 1,515,464,466.000223 | 28,242 |
pythondev | help | <@Krista> Was the table created with utf8mb4 in mind? | 2018-01-09T03:47:36.000229 | Barney | pythondev_help_Barney_2018-01-09T03:47:36.000229 | 1,515,469,656.000229 | 28,243 |
pythondev | help | not sure setting it before insert will help | 2018-01-09T03:47:52.000261 | Barney | pythondev_help_Barney_2018-01-09T03:47:52.000261 | 1,515,469,672.000261 | 28,244 |
pythondev | help | hello, does anybody have seen good walkthrough/tutorial/intro for asyncio? | 2018-01-09T03:58:50.000330 | Graham | pythondev_help_Graham_2018-01-09T03:58:50.000330 | 1,515,470,330.00033 | 28,245 |
pythondev | help | <https://hackernoon.com/asynchronous-python-45df84b82434> | 2018-01-09T03:59:32.000241 | Micki | pythondev_help_Micki_2018-01-09T03:59:32.000241 | 1,515,470,372.000241 | 28,246 |
pythondev | help | and if you have question/recommendation the author is often hanging out in <#C07G5276F|async> | 2018-01-09T04:00:09.000523 | Micki | pythondev_help_Micki_2018-01-09T04:00:09.000523 | 1,515,470,409.000523 | 28,247 |
pythondev | help | thank you! | 2018-01-09T04:01:52.000280 | Graham | pythondev_help_Graham_2018-01-09T04:01:52.000280 | 1,515,470,512.00028 | 28,248 |
pythondev | help | Hi guys, how I can get a timestamp with this format 2017-11-16T11:08:18+00:00 | 2018-01-09T04:58:18.000299 | Maya | pythondev_help_Maya_2018-01-09T04:58:18.000299 | 1,515,473,898.000299 | 28,249 |
pythondev | help | using time | 2018-01-09T04:58:22.000018 | Maya | pythondev_help_Maya_2018-01-09T04:58:22.000018 | 1,515,473,902.000018 | 28,250 |
pythondev | help | I tried time.strftime(“”) | 2018-01-09T04:58:44.000304 | Maya | pythondev_help_Maya_2018-01-09T04:58:44.000304 | 1,515,473,924.000304 | 28,251 |
pythondev | help | but I can’t find the right format | 2018-01-09T04:58:53.000011 | Maya | pythondev_help_Maya_2018-01-09T04:58:53.000011 | 1,515,473,933.000011 | 28,252 |
pythondev | help | <@Maya> this site usually helps me out with these kind of things <http://strftime.org/> | 2018-01-09T05:04:58.000251 | Milo | pythondev_help_Milo_2018-01-09T05:04:58.000251 | 1,515,474,298.000251 | 28,253 |
pythondev | help | I had problems with parsing into datetime object with the `T` you have in there before | 2018-01-09T05:05:34.000496 | Milo | pythondev_help_Milo_2018-01-09T05:05:34.000496 | 1,515,474,334.000496 | 28,254 |
pythondev | help | you can also take a look at <https://github.com/crsmithdev/arrow> | 2018-01-09T05:06:10.000195 | Micki | pythondev_help_Micki_2018-01-09T05:06:10.000195 | 1,515,474,370.000195 | 28,255 |
pythondev | help | yes I tried to get the format I need with strftime with no luck | 2018-01-09T05:07:06.000171 | Maya | pythondev_help_Maya_2018-01-09T05:07:06.000171 | 1,515,474,426.000171 | 28,256 |
pythondev | help | are you just looking to generate it? `datetime` has `.isoformat()` which is pretty close to what you are looking for | 2018-01-09T05:08:02.000154 | Zack | pythondev_help_Zack_2018-01-09T05:08:02.000154 | 1,515,474,482.000154 | 28,257 |
pythondev | help | Also this: <https://github.com/kennethreitz/maya> | 2018-01-09T05:08:56.000552 | Cecila | pythondev_help_Cecila_2018-01-09T05:08:56.000552 | 1,515,474,536.000552 | 28,258 |
pythondev | help | I think I’ve found a way: arrow.utcnow().format(‘YYY-MM-DDTHH:mm:ss ZZ’) | 2018-01-09T05:09:23.000147 | Maya | pythondev_help_Maya_2018-01-09T05:09:23.000147 | 1,515,474,563.000147 | 28,259 |
pythondev | help | what do u think? | 2018-01-09T05:09:54.000532 | Maya | pythondev_help_Maya_2018-01-09T05:09:54.000532 | 1,515,474,594.000532 | 28,260 |
pythondev | help | <@Maya> isn’t it % encoded though | 2018-01-09T05:10:29.000433 | Zack | pythondev_help_Zack_2018-01-09T05:10:29.000433 | 1,515,474,629.000433 | 28,261 |
pythondev | help | oh nm, I guess arrow doesn’t use the same formatting as the standard library | 2018-01-09T05:11:14.000343 | Zack | pythondev_help_Zack_2018-01-09T05:11:14.000343 | 1,515,474,674.000343 | 28,262 |
pythondev | help | just missing a `Y` but other than that, looks good | 2018-01-09T05:11:24.000180 | Zack | pythondev_help_Zack_2018-01-09T05:11:24.000180 | 1,515,474,684.00018 | 28,263 |
pythondev | help | yes | 2018-01-09T05:11:28.000260 | Maya | pythondev_help_Maya_2018-01-09T05:11:28.000260 | 1,515,474,688.00026 | 28,264 |
pythondev | help | arrow.utcnow().format(“YYYY-MM-DDTHH:mm:ss ZZ”)
‘2018-01-09T10:11:19 +00:00’ | 2018-01-09T05:11:29.000394 | Maya | pythondev_help_Maya_2018-01-09T05:11:29.000394 | 1,515,474,689.000394 | 28,265 |
pythondev | help | thanks a lot guys | 2018-01-09T05:12:23.000154 | Maya | pythondev_help_Maya_2018-01-09T05:12:23.000154 | 1,515,474,743.000154 | 28,266 |
pythondev | help | without the space that’s actually the default, so you could just call `format()` | 2018-01-09T05:12:48.000006 | Zack | pythondev_help_Zack_2018-01-09T05:12:48.000006 | 1,515,474,768.000006 | 28,267 |
pythondev | help | I am having a problem with mysql and flask on an ubuntu 16.04 server. I have two sites on the server that both use a db. However I keep getting an internal server error log, then when I check the apache2 error log's it shows me that there has been a mysql 2013 error, 'lost connection to MySQL server" according to the [... | 2018-01-09T05:13:26.000063 | Milo | pythondev_help_Milo_2018-01-09T05:13:26.000063 | 1,515,474,806.000063 | 28,268 |
pythondev | help | although I guess it uses a space instead of T separator. I guess explicit is better than implicit anyway. :slightly_smiling_face: | 2018-01-09T05:13:27.000354 | Zack | pythondev_help_Zack_2018-01-09T05:13:27.000354 | 1,515,474,807.000354 | 28,269 |
pythondev | help | I had an issue with a T separator before hand, I think I parsed it into a datetime object first and then into strftime. If I remember correctly or I used regex to remove it then parsed it. Can't remember which one! | 2018-01-09T05:16:37.000182 | Milo | pythondev_help_Milo_2018-01-09T05:16:37.000182 | 1,515,474,997.000182 | 28,270 |
pythondev | help | <@Zack> arrow.utcnow().format()
‘2018-01-09 10:18:00+00:00’ | 2018-01-09T05:18:25.000054 | Maya | pythondev_help_Maya_2018-01-09T05:18:25.000054 | 1,515,475,105.000054 | 28,271 |
pythondev | help | for some reason I need the T btw the date and the time | 2018-01-09T05:19:00.000530 | Maya | pythondev_help_Maya_2018-01-09T05:19:00.000530 | 1,515,475,140.00053 | 28,272 |
pythondev | help | <@Maya> alternatively, this works in the standard library:
```
>>> import datetime
>>> datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%dT%H:%M:%S %z')
'2018-01-09T10:20:46 +0000'
``` | 2018-01-09T05:21:37.000126 | Zack | pythondev_help_Zack_2018-01-09T05:21:37.000126 | 1,515,475,297.000126 | 28,273 |
pythondev | help | no third-party dependency then | 2018-01-09T05:22:12.000050 | Zack | pythondev_help_Zack_2018-01-09T05:22:12.000050 | 1,515,475,332.00005 | 28,274 |
pythondev | help | <@Zack> that’s even better. Thanks! | 2018-01-09T05:23:22.000128 | Maya | pythondev_help_Maya_2018-01-09T05:23:22.000128 | 1,515,475,402.000128 | 28,275 |
pythondev | help | np. and if you need to fiddle with it, the docs are pretty easy to follow regarding the formatting: <https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior> | 2018-01-09T05:24:03.000130 | Zack | pythondev_help_Zack_2018-01-09T05:24:03.000130 | 1,515,475,443.00013 | 28,276 |
pythondev | help | the tricky bit is the naive datetime vs one with tz information | 2018-01-09T05:24:50.000304 | Zack | pythondev_help_Zack_2018-01-09T05:24:50.000304 | 1,515,475,490.000304 | 28,277 |
pythondev | help | yeah | 2018-01-09T05:24:56.000086 | Maya | pythondev_help_Maya_2018-01-09T05:24:56.000086 | 1,515,475,496.000086 | 28,278 |
pythondev | help | because I need to format the data in that format in order to have the same format of others services | 2018-01-09T05:25:47.000588 | Maya | pythondev_help_Maya_2018-01-09T05:25:47.000588 | 1,515,475,547.000588 | 28,279 |
pythondev | help | don’t really understand why but the tz information seems to be importat | 2018-01-09T05:26:23.000365 | Maya | pythondev_help_Maya_2018-01-09T05:26:23.000365 | 1,515,475,583.000365 | 28,280 |
pythondev | help | btw, I agree with you, better to have no 3-party dependency | 2018-01-09T05:27:16.000045 | Maya | pythondev_help_Maya_2018-01-09T05:27:16.000045 | 1,515,475,636.000045 | 28,281 |
pythondev | help | well it definitely helps to be explicit about it so there’s no ambiguity on the timezone | 2018-01-09T05:27:41.000222 | Zack | pythondev_help_Zack_2018-01-09T05:27:41.000222 | 1,515,475,661.000222 | 28,282 |
pythondev | help | true. | 2018-01-09T05:29:13.000187 | Maya | pythondev_help_Maya_2018-01-09T05:29:13.000187 | 1,515,475,753.000187 | 28,283 |
pythondev | help | I got a datetime question as well! So I am reading a set of dates from a db, when I print the type of them it lists them as `<class datetime.datetime>` so I then want to change the format of the datetime object so I use `x.strftime('%d-%m-%Y')` however when I run this I get the error;
```
AttributeError: 'str' o... | 2018-01-09T06:12:11.000076 | Milo | pythondev_help_Milo_2018-01-09T06:12:11.000076 | 1,515,478,331.000076 | 28,284 |
pythondev | help | very bizaare! | 2018-01-09T06:12:29.000027 | Milo | pythondev_help_Milo_2018-01-09T06:12:29.000027 | 1,515,478,349.000027 | 28,285 |
pythondev | help | so `type(x)` is `<class datetime.datetime>`? | 2018-01-09T06:21:29.000040 | Zack | pythondev_help_Zack_2018-01-09T06:21:29.000040 | 1,515,478,889.00004 | 28,286 |
pythondev | help | yes | 2018-01-09T06:21:34.000260 | Milo | pythondev_help_Milo_2018-01-09T06:21:34.000260 | 1,515,478,894.00026 | 28,287 |
pythondev | help | can you share the code around that? there has to be something else going on to convert it to a string first? | 2018-01-09T06:22:05.000442 | Zack | pythondev_help_Zack_2018-01-09T06:22:05.000442 | 1,515,478,925.000442 | 28,288 |
pythondev | help | ```
for row in rows:
print(type(row['date']))
row['date'] = row['date'].strftime('%d-%m-%Y')
print()
print(row['date'])
print()
``` | 2018-01-09T06:23:09.000157 | Milo | pythondev_help_Milo_2018-01-09T06:23:09.000157 | 1,515,478,989.000157 | 28,289 |
pythondev | help | hmm just looking at it, would it be better for me to use list comprehension | 2018-01-09T06:24:01.000400 | Milo | pythondev_help_Milo_2018-01-09T06:24:01.000400 | 1,515,479,041.0004 | 28,290 |
pythondev | help | and the output is:
```
<class 'datetime.datetime'>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'str' object has no attribute 'strftime'
```
? | 2018-01-09T06:25:07.000223 | Zack | pythondev_help_Zack_2018-01-09T06:25:07.000223 | 1,515,479,107.000223 | 28,291 |
pythondev | help | Well, the <stdin> line wouldn’t match, I just generated that in my shell, but the other part? | 2018-01-09T06:25:23.000431 | Zack | pythondev_help_Zack_2018-01-09T06:25:23.000431 | 1,515,479,123.000431 | 28,292 |
pythondev | help | or maybe it’s best to paste your output in here? | 2018-01-09T06:25:49.000035 | Zack | pythondev_help_Zack_2018-01-09T06:25:49.000035 | 1,515,479,149.000035 | 28,293 |
pythondev | help | ah ok | 2018-01-09T06:26:58.000162 | Milo | pythondev_help_Milo_2018-01-09T06:26:58.000162 | 1,515,479,218.000162 | 28,294 |
pythondev | help | I just noticed one of the datetimes being read is class string
```<class 'datetime.datetime'>
12-12-2017
<class 'datetime.datetime'>
09-01-2018
<class 'datetime.datetime'>
09-01-2018
<class 'str'>
``` | 2018-01-09T06:27:23.000234 | Milo | pythondev_help_Milo_2018-01-09T06:27:23.000234 | 1,515,479,243.000234 | 28,295 |
pythondev | help | ah, interesting, yeah I suspected it might be something like that | 2018-01-09T06:27:56.000080 | Zack | pythondev_help_Zack_2018-01-09T06:27:56.000080 | 1,515,479,276.00008 | 28,296 |
pythondev | help | how are you reading the data out? | 2018-01-09T06:28:06.000119 | Zack | pythondev_help_Zack_2018-01-09T06:28:06.000119 | 1,515,479,286.000119 | 28,297 |
pythondev | help | this is where is breaks | 2018-01-09T06:28:13.000050 | Milo | pythondev_help_Milo_2018-01-09T06:28:13.000050 | 1,515,479,293.00005 | 28,298 |
pythondev | help | I pass the list of dictionaries from view to a function in another module | 2018-01-09T06:28:48.000314 | Milo | pythondev_help_Milo_2018-01-09T06:28:48.000314 | 1,515,479,328.000314 | 28,299 |
pythondev | help | do you think its worth converting all to a datetime object or using a conditional? | 2018-01-09T06:29:42.000271 | Milo | pythondev_help_Milo_2018-01-09T06:29:42.000271 | 1,515,479,382.000271 | 28,300 |
pythondev | help | I think it’s best to investigate why that one is a str, yeah. I mean in the event you have to deal with inconsistent external data you gotta do what you gotta do, but if it’s possible to ensure consistency upstream that’ll usually be worthwhile | 2018-01-09T06:31:19.000096 | Zack | pythondev_help_Zack_2018-01-09T06:31:19.000096 | 1,515,479,479.000096 | 28,301 |
pythondev | help | Was thinking that myself, that data being inserted into the db is from multiple other functions that are scraped from various sources. Maybe I should go check that function and see why it is inserting as a string | 2018-01-09T06:32:29.000146 | Milo | pythondev_help_Milo_2018-01-09T06:32:29.000146 | 1,515,479,549.000146 | 28,302 |
pythondev | help | my guess is perhaps the format is just different, and the driver is having trouble converting it to a datetime object then, and falling back to a str. These instances are usually worthwhile to spend time on tracking them all the way down to the root cause instead of working around the symptoms though. You learn a lot... | 2018-01-09T06:34:27.000356 | Zack | pythondev_help_Zack_2018-01-09T06:34:27.000356 | 1,515,479,667.000356 | 28,303 |
pythondev | help | cool, will check the function | 2018-01-09T06:37:33.000245 | Milo | pythondev_help_Milo_2018-01-09T06:37:33.000245 | 1,515,479,853.000245 | 28,304 |
pythondev | help | now my pip in my virtual env is not being found! | 2018-01-09T06:38:37.000134 | Milo | pythondev_help_Milo_2018-01-09T06:38:37.000134 | 1,515,479,917.000134 | 28,305 |
pythondev | help | doh. one of those days | 2018-01-09T06:38:53.000269 | Zack | pythondev_help_Zack_2018-01-09T06:38:53.000269 | 1,515,479,933.000269 | 28,306 |
pythondev | help | yup! I keep getting the server error for my two sites as well, really odd. As it runs lots of queries I may increase the `net_read_timeout` and `net_write_timeout` to 300. Is this safe? | 2018-01-09T06:40:40.000050 | Milo | pythondev_help_Milo_2018-01-09T06:40:40.000050 | 1,515,480,040.00005 | 28,307 |
pythondev | help | if it’s truly a resource contention issue from a large volume of queries you may want to look deeper into that since the timeouts are probably just masking the issue | 2018-01-09T06:46:38.000028 | Zack | pythondev_help_Zack_2018-01-09T06:46:38.000028 | 1,515,480,398.000028 | 28,308 |
pythondev | help | So at the moment what I do is I have a user clicks which articles are relevent on a checkbox, then the they click save it processes this;
```
if request.method == 'POST':
if 'SaveAll' in request.form:
saved_data = request.form
for x in range(20... | 2018-01-09T06:53:04.000328 | Milo | pythondev_help_Milo_2018-01-09T06:53:04.000328 | 1,515,480,784.000328 | 28,309 |
pythondev | help | What kind fo visibility do you have into your performance? Anything like an APM running and/or Datadog collecting machine stats? | 2018-01-09T07:01:43.000120 | Zack | pythondev_help_Zack_2018-01-09T07:01:43.000120 | 1,515,481,303.00012 | 28,310 |
pythondev | help | Sorry still a newbie! What is APM? | 2018-01-09T07:02:24.000264 | Milo | pythondev_help_Milo_2018-01-09T07:02:24.000264 | 1,515,481,344.000264 | 28,311 |
pythondev | help | I was thinking for the site that has multiple forms do you think it could be a naming convention? But I don't see how, this has what has led me to think its down to either the db or server | 2018-01-09T07:03:46.000017 | Milo | pythondev_help_Milo_2018-01-09T07:03:46.000017 | 1,515,481,426.000017 | 28,312 |
pythondev | help | APM is application performance management - it’s a tool that can help you gain insight into where your site is spending most of its time, or more specific to you some inefficiencies in what is being queried int he overall lifecycle of a request | 2018-01-09T07:05:42.000177 | Zack | pythondev_help_Zack_2018-01-09T07:05:42.000177 | 1,515,481,542.000177 | 28,313 |
pythondev | help | thanks will look into it | 2018-01-09T07:26:45.000267 | Milo | pythondev_help_Milo_2018-01-09T07:26:45.000267 | 1,515,482,805.000267 | 28,314 |
pythondev | help | Hey guys!
I'm having some issues with a bash script not running on the server, its giving me this error:
`-bash: ./bin/get_prod_staging: /bin/bash^M: bad interpreter: No such file or directory`
I cant find anything on google for it, can anyone explain whats going on? I don't understand the No such file or director... | 2018-01-09T08:04:31.000171 | Tanesha | pythondev_help_Tanesha_2018-01-09T08:04:31.000171 | 1,515,485,071.000171 | 28,315 |
pythondev | help | I literally just had the same problem with my `pip` in my virtual env, but it was due to one of the folder names having a space inbetween it, but yours doesn't look like it has that problem, maybe try renaming your folder and see what happens | 2018-01-09T08:05:58.000015 | Milo | pythondev_help_Milo_2018-01-09T08:05:58.000015 | 1,515,485,158.000015 | 28,316 |
pythondev | help | I'll give it ago, thanks :stuck_out_tongue: | 2018-01-09T08:06:21.000101 | Tanesha | pythondev_help_Tanesha_2018-01-09T08:06:21.000101 | 1,515,485,181.000101 | 28,317 |
pythondev | help | <@Tanesha> does `/bin/bash` exists ? | 2018-01-09T08:06:22.000045 | Micki | pythondev_help_Micki_2018-01-09T08:06:22.000045 | 1,515,485,182.000045 | 28,318 |
pythondev | help | ```(env) root@ubuntu:/data/sites/tsl.quiet.sh/0.5/bin# ls
collectstats daily_echo_compare.py get_assets get_prod_staging get_production_db pg_backup``` | 2018-01-09T08:06:44.000293 | Tanesha | pythondev_help_Tanesha_2018-01-09T08:06:44.000293 | 1,515,485,204.000293 | 28,319 |
pythondev | help | No | 2018-01-09T08:06:48.000128 | Tanesha | pythondev_help_Tanesha_2018-01-09T08:06:48.000128 | 1,515,485,208.000128 | 28,320 |
pythondev | help | well that's your problem | 2018-01-09T08:07:05.000046 | Micki | pythondev_help_Micki_2018-01-09T08:07:05.000046 | 1,515,485,225.000046 | 28,321 |
pythondev | help | but no idea where it could be except there | 2018-01-09T08:07:43.000097 | Micki | pythondev_help_Micki_2018-01-09T08:07:43.000097 | 1,515,485,263.000097 | 28,322 |
pythondev | help | But my other script works get_production_db and that is basically the same but with a different db name | 2018-01-09T08:07:48.000130 | Tanesha | pythondev_help_Tanesha_2018-01-09T08:07:48.000130 | 1,515,485,268.00013 | 28,323 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.