Today I was prepairing my project to start on Debian11 VPS server. I'm near level to Junior Python Developer and I don't have any ideas what to do with that. Actually, you could say that I'm just stupid, but my code is working on my Windows Laptop. And exception raises only on Debian server. Thanks for your help!
linux error statement
I tried to change active proxy in my code, but it's still doesn't work on debian and still works on Win
-_-
Related
I am trying to set up my own proxy server in python (the code, running on port 9090) but when I change the configuration on my mac it seems like those configuration are completely ignored
The configurations:
(I of curse hit save and apply)
I also checked and my VPN is not connected...
The really odd thing is that I can even change the Web Proxy Server ip to be invalid things and still hit save and apply:
And of curse these configurations are also ignored
No help from apple forums either
Turns out this is a bug in some OSX versions. Apple fixed this bug in Mojave v10.14.6 so updating to this version fixes the problem.
I'm having an issue with Visual Studio Code live share - errno 2 No such file or directory to more exact.
The error happens when my friend, who is connected to my collaboration session, tries to run the code on his side. The same happens when I connect to his session and try to run his code.
From what I understand from MS VS Code page and other websites, live share should allow us not only to work on the same code, but also run it on both machines.
We tried sharing a server but it also did not help - even though I had access to his other files, like a test HTML website which we created to check if sharing a localhost server works.
I'm kinda running out of ideas and do not really know what else we could do to fix this issue.
Could anybody help me out? Thanks in advance!
You could try having a shared terminal. Then at least you can execute things remotely on the host machine
I'm actually learning to use the Django framework with PostgreSQL with Docker and docker-compose.
Regularly, when I make a mistake (for example a syntax error in the views.py file), I cannot reach my Django app anymore trough my web browser.
Firefox tells me:
Unable to connect
Firefox can't establish a connection to the server at localhost:8000
Chrome tells me:
This site can’t be reached
localhost refused to connect.
ERR_CONNECTION_REFUSED
I had this several times and I always managed to find the error in my code, to correct it and then everything went well again.
Currently, my code is working fine. But if I encounter this again (and this happens very often), I would like to be able to find the error quickly by myself.
So here is my question:
How can I see which file at which line contains the error ?
I would like to have a correct error message telling me what went wrong instead of that annoying ERR_CONNECTION_REFUSED browser page over and over.
I hope I explained my issue well because I struggled to describe it to Google.
Thanks a lot in advance. :)
FYI:
Ubuntu 18.04.3 LTS Bionic (window manager i3wm)
Docker 19.03.4
docker-compose 1.17.1
python 3.7 (docker image)
Django 2.2.6 (inside the python 3.7 image)
PostgreSQL 12.0 (docker image)
Visual Studio Code 1.39.2
I finally found a solution.
I had the bad habit to run my docker-compose in detached mode.
When attached, the syntax errors are shown directly from the terminal when de container is stopped.
I also added a script where I run my server in a loop. This way, the server will relaunch automatically over and over until I correct the error. I don't have to restart my Django server manually.
Thank you for helping me anyway.
This is really strange behaviour. When I issue POST request to many times django suddenly starts to ignore them all. I can see then in firebug but debug server shows nothing. Restarting server doesn't help. Even more, when I try to restart server when this happens I always get:
Error: That port is already in use.
Restarting the whole machine helps.
I thought it may be related to
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
error I'm having but event after applying workaround:
import threading
threading._DummyThread._Thread__stop = lambda x: 42
described on Understand python threading bug
I'm still having the same problem.
I don't know ho to diagnose the source of the issue.
Maybe this will be helpful:
OS: ubuntu 12.04 LTS
Processor: Intel® Core™ i7-2720QM CPU # 2.20GHz × 4
Python 2.7.3
Django 1.4.1
Any help would be appreciated.
As a work around, you could use the --nothreading option to disable the use of threading in the dev server.
./manage.py runserver --nothreading
I run several python scripts as Windows Services on Windows XP. Just now they all died. They will not restart. I have no clue what is going on. I can't seem to get an error message to give me more insight. I haven't tried to reinstall any modules yet. What Modules are used by Windows Services in python?
EDIT:
When I reinstall pywin32 I do get this error:
However after clicking the 'ok' button, module does continue to install
Found the Issue. Windows Error Log was full... So the script could not even send a message to log saying that service restarted thus it would fail and not log any error messages to boot.