Posts by Gau • 238 points
11 posts
-
3
votes3
answers1629
viewsA: Problems trying to create a virtual environment with pipenv
I’ll leave here the solution I found, may be useful to someone else. I tried to create a direct virtual environment with the virtualenv, since the pipenv uses it under the cloths virtualenv . venv…
-
0
votes2
answers219
viewsA: How do I make some command to go from one option panel to another in python
I wrote a very simple code, just to show you an idea of implementation using functions. Notice I’m using the block while within the functions to keep asking the option and not leave the function…
-
4
votes3
answers1629
viewsQ: Problems trying to create a virtual environment with pipenv
I’m having a hard time creating a virtual environment with pipenv, I installed it without problems with the Pip, the problem happens at the time of creating the environment. I’m using Windows 10 and…
-
0
votes1
answer1162
viewsA: Python module import problem
Hello, good morning! All right? # O seu módulo interfaceBD está importando definirMercados File "/home/karont/SiteHtml/app/arquivospy/interfaceBD.py", line 2, in import definirMercados as mercados #…
-
4
votes3
answers178
viewsA: is not accumulating values in the lists
Hey, how you doing? If you want to fill two lists with 5 integer values in each, allow me to make some remarks in your code. I am not experienced, so if someone wants to correct me by talking…
-
1
votes2
answers1690
viewsA: Change Python string
Hello, all right? D I don’t know if you are studying algorithms for sorting or want a practical Python solution, but I will follow the second option. To sort your variable entree, a possibility…
-
0
votes1
answer68
viewsA: Index error as non-existent
Inside your block while you are putting the first item on the list to_crawl to make the connection, which is checked inside the Try/except block. When an error occurs and it enters the block except…
-
1
votes1
answer2356
viewsQ: How to concatenate a variable to a string containing escape character
I’m new to Python, and I’m trying to set up a server socket for message exchange (like a telnet) to communicate with a client. The problem I’m facing is that this client has its own protocol, and I…
python-3.xasked Gau 238 -
2
votes2
answers76
viewsA: How can the end of "for" be a user-defined variable?
What version of Python are you using? I’ll give you my idea on Python 3. In fact the for in Python is a little different than in C, but you can do these tasks without problems, just understand the…
-
1
votes1
answer2703
viewsA: How to make crontab run a Python script
I was able to make it work... Actually I don’t know what the problem was, but after rebooting the entire system it started working right. If I’m useful to anyone, my crontab looks like this: * * * *…
-
3
votes1
answer2703
viewsQ: How to make crontab run a Python script
I’m trying to schedule a script I wrote in Python to run on crontab, But I can’t do it. The script is simple thing, it makes a telnet connection through the terminal and sends some commands. I…