Questions tagged as 'python'

0
answers

because some commands do not show the output?

I'm making a server and client. Everything is fine, but in the shell when I have the client.py running and when I insert some commands like rm -r , shred -u ... it executes correctly in the shell of the other computer, but in my cli...
asked by 02.01.2019 / 20:09
1
answer

Generated output in doc .txt

I'm still struggling with my work on text correction. It turns out that I have to store the output of my code in different text files that I also have to create. my code is this: cadena = "Bienvenido/a" print(cadena.center(50, "=")) entra...
asked by 04.01.2019 / 15:08
0
answers

Communicate Python with Java

Greetings I have a class in Java which was not developed by me, I use this class to sign an xml document (xades-bes with p12) this class works well, now the problem is for the time to consume from Python to Java takes a lot, in JAVA native this...
asked by 04.01.2019 / 17:46
1
answer

Doubt nested list

usuario = line_conten[1].split(":")[1] ip = IP puerto = line_conten[1].split(":")[-1] fecha = time.strftime("%Y%m%d%H%M%S", time.localt...
asked by 04.01.2019 / 19:01
2
answers

As I see if my script runs correctly

This is my script That connects by ssh to a mikrotik and executes a command I just want you to go telling me all the steps as it is fulfilled. import paramiko client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPo...
asked by 03.01.2019 / 19:34
0
answers

Django Migrate ORA-00955 error

I'm doing a project in django 1.8.7 using Linux Ubuntu 16 and connected to an Oracle 11g database, at the moment of wanting to migrate the project using the python manage.py migrate it throws the following error, does anyone know how to s...
asked by 31.12.2018 / 04:45
1
answer

Django - templates do not read files in the "STATIC" folder

I have tried all the solutions that have commented, but I can not solve it. I downloaded the template ONETECH in colorlib . Copy the files of css , js e img in the folder STATIC located in the same dire...
asked by 31.12.2018 / 05:12
0
answers

Error in the output of some commands with subprocess PIPE Popen

I'm doing a server client with sockets, and I'd like to run a command from the client to the server (where it runs), save the output, and then send it (python 2.7.15) Server Code: #!/usr/bin/env python #-*- coding:utf-8 -*- #Se importa el m...
asked by 31.12.2018 / 13:02
1
answer

Error ORA-00933 when using oracle query in python

I'm putting together a script in python: #!/usr/bin/python2.6 import os import cx_Oracle import csv SQL="SELECT count(status) status FROM v'$'session GROUP BY status" # You can set these in system variables but just in case you didnt os.pu...
asked by 14.04.2016 / 21:56
0
answers

Modules and packages in python

Given my inexperience with languages and my lack of deepening on topics such as modules and packages in Python I came across a problem that is:    Traceback (most recent call last):     File "Main.py", line 1, in       from Menu.Menu import *...
asked by 29.12.2018 / 12:18