Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Issue in Starting Django project with Docker
Post: Issue in Starting Django project with Docker
Hello Python Geeks,
Looking for geeks' insight for django-docker related issues. I'm not able to run the command "docker-compose run --rm app sh -c "django-admin startproject app ."
Error:Traceback ... |
|
Prabakaran141 |
General Coding Help |
0 |
830 |
Sep-26-2022, 12:15 PM |
|
|
Thread: Python package as installable
Post: Python package as installable
Hi All,
Have developed a package.. So planning to prepare a build which can be used for deployment.
Also tried generating build using distutils and pyinstaller. But not sure on what exactly it produ... |
|
Prabakaran141 |
General Coding Help |
0 |
1,501 |
Mar-10-2020, 10:07 AM |
|
|
Thread: Design pattern in python
Post: Design pattern in python
Hi,
What is the use of design patterns in python? Why people go for it? |
|
Prabakaran141 |
News and Discussions |
3 |
3,057 |
Nov-13-2018, 10:19 AM |
|
|
Thread: Base class variables are not accessible
Post: RE: Base class variables are not accessible
Hi Wooee,
Thanks for replying back. I thought __init__() is similar to a constructor in other programming language(c++) and so it will be called once we create a derived class object. |
|
Prabakaran141 |
General Coding Help |
3 |
2,816 |
Oct-31-2018, 05:17 AM |
|
|
Thread: Base class variables are not accessible
Post: Base class variables are not accessible
Hi,
I just want to understand, why I'm getting below error in inheritance?
Error:Traceback (most recent call last):
File "inheritance.py", line 13, in <module>
main()
File "inheritance.... |
|
Prabakaran141 |
General Coding Help |
3 |
2,816 |
Oct-31-2018, 01:35 AM |
|
|
Thread: Newbie Ubuntu script problem
Post: RE: Newbie Ubuntu script problem
yes, there was no proper closing brace')'.
Thanks for replying snippsat. |
|
Prabakaran141 |
General Coding Help |
6 |
3,539 |
Sep-24-2018, 10:31 AM |
|
|
Thread: Newbie Ubuntu script problem
Post: RE: Newbie Ubuntu script problem
Hi,
Can you remove all trailing extra lines in the code and check once? |
|
Prabakaran141 |
General Coding Help |
6 |
3,539 |
Sep-24-2018, 05:55 AM |
|
|
Thread: Openpyxl -Coming up with a single column from a multi column data set
Post: RE: Coming up with a unit single column from a mul...
Try out with below documentation,
https://openpyxl.readthedocs.io/en/stable/
People will help, when you come up with issues. Forum is not a place to ask for coding to your requirement. |
|
Prabakaran141 |
General Coding Help |
1 |
2,728 |
Sep-07-2018, 04:29 AM |
|
|
Thread: How many variables/values are limited to single assignment operator?
Post: How many variables/values are limited to single as...
How many variables/values are limited to single assignment operator?
Example:
1) a = 10
2) a,b = 10,20Similar to above example, do python has any limitations over assignment operator(=)? |
|
Prabakaran141 |
General Coding Help |
1 |
2,046 |
Sep-06-2018, 02:42 PM |
|
|
Thread: program automatization
Post: RE: program automatization
Hi
In your case replace the variable file instead of string 'file'.
import os
import subprocess
import sys
for file in os.listdir('.'):
if file.endswith('pdb'):
cmd = '/usr/share/apps/f... |
|
Prabakaran141 |
General Coding Help |
3 |
2,783 |
Aug-23-2018, 12:30 PM |
|
|
Thread: How do I print a returned variable calculated in another function?
Post: RE: How do I print a returned variable calculated ...
you can also declare the variable "yearAt100" globally and access it anywhere in the program,
#!/usr/bin/env python3
#PracticePythonExercise01.py
#Create a program that asks the user to enter their... |
|
Prabakaran141 |
General Coding Help |
3 |
3,540 |
Jul-10-2018, 11:26 AM |
|
|
Thread: hope to know a rank, if it has. if not, just show 0.
Post: RE: hope to know a rank, if it has. if not, just s...
Hi Tyyi,
The findall will return all the matched pattern in the line, from there you need to parse and print accordingly.
For reference read the doc,
https://docs.python.org/2/library/re.htm...ll-ad... |
|
Prabakaran141 |
General Coding Help |
5 |
3,411 |
Jul-10-2018, 10:02 AM |
|
|
Thread: pxssh timeout issue
Post: RE: pxssh timeout issue
I have added the entire code.
This code is for removing some configurations in Switch, Please go through this and the error which I attached already and Give some view on it.
from pexpect import pxs... |
|
Prabakaran141 |
General Coding Help |
4 |
6,766 |
Aug-01-2017, 08:56 AM |
|
|
Thread: pxssh timeout issue
Post: RE: pxssh timeout issue
Hi Larz60+,
Already I have the try...except block
The error I added is a captured one |
|
Prabakaran141 |
General Coding Help |
4 |
6,766 |
Aug-01-2017, 05:13 AM |
|
|
Thread: pxssh timeout issue
Post: pxssh timeout issue
At some situation I'm facing this error, I have added the error details below. Can somebody help me in fixing this issue?
...
s = pxssh.pxssh(timeout=5, maxread=2000000)
switch_ip = r... |
|
Prabakaran141 |
General Coding Help |
4 |
6,766 |
Jul-31-2017, 10:54 AM |
|
|
Thread: Message not supported for all requests in python
Post: RE: Message not supported for all requests in pyth...
It means it will not completely work for my request. In future it might be available. |
|
Prabakaran141 |
General Coding Help |
9 |
8,886 |
Jul-20-2017, 07:01 AM |
|
|
Thread: Message not supported for all requests in python
Post: RE: Message not supported for all requests in pyth...
Hi Larz60+,
I get the 501 - message not supported, as per the document its a web server issue (not implemented).
If that is a web server issue "why request.post(...) working with python3 in ubuntu?... |
|
Prabakaran141 |
General Coding Help |
9 |
8,886 |
Jul-20-2017, 05:46 AM |
|
|
Thread: Message not supported for all requests in python
Post: RE: Message not supported for all requests in pyth...
Yes In browser its working fine and I'm getting the response as 200.
Also when I installed ubuntu16.04 in one of my VM and in terminal I did "import request" in the python3 (which is python 3.5) ter... |
|
Prabakaran141 |
General Coding Help |
9 |
8,886 |
Jul-20-2017, 04:59 AM |
|
|
Thread: Message not supported for all requests in python
Post: RE: Message not supported for all requests in pyth...
yes its method not supported
Actually I tried with POST and GET,
For POST its message not supported and response code is 501
For GET its method not supported and response code is 405
I need to use ... |
|
Prabakaran141 |
General Coding Help |
9 |
8,886 |
Jul-19-2017, 03:30 PM |
|
|
Thread: Message not supported for all requests in python
Post: Message not supported for all requests in python
why I'm getting "message not supported" for all request made through python request module?
"<Response [405]>"
...
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth... |
|
Prabakaran141 |
General Coding Help |
9 |
8,886 |
Jul-19-2017, 02:05 PM |