Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
I have a Django project with pytest as the unit testing module. Previously, everything ran smoothly but lately when running unit testing, it took a very long time, around 20 minutes (initially it only took 10-12 minutes). In addition, there is a test failure that displays the following message:
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')).
Is there any information on how to solve this?
I have tried running unit tests for my entire codebase, but I am seeing errors occur in random files. When I try to run tests for a specific file, the errors occur in random functions within that file.
I also deleted my virtual environment folder and reinstalled my dependencies, and rebooted my computer. However, I am still encountering the same issues with my unit tests. I have tried searching for solutions online, but I am not finding any helpful results with my search keywords
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I have a really weird problem, I am working on a simple flask/react app, hosted normally on localhost:5000 by flask. Everything was working fine until I closed the terminal application and for some reason the server kept on running, now everytime i go to localhost:5000 the application seems to respond and shows me the react landing page, whether or not i am purposefully running the server. Is there some way to find the source of this or just to turn off all servers? I tried rebooting my laptop but the site seems to stay up, I havent changed any of my start up settings, i have no idea why it would turn on at startup.
It's possible that your browser is caching your React landing page, so the only possible solution I can think of is to clear your cache. There are numerous tutorials for this depending on your browser.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I get the following error when I run my app.py file
127.0.0.1 - - [05/Jan/2021 15:26:32] "GET /img/chesspieces/wikipedia/wP.png HTTP/1.1" 404 -
I made a complete new path that contains my PNG's and non of my files contains the keyword wikipedia. But I still get the same error, even though non of my files has nothing to do with that keyword. All my files are installed locally on my computer.
I tried rebooting my PC multiple times, create a new virtual enviroment for my app.py, install all dependicies again, and the error still keep occuring. Im using Visual Studio Code. Any ideas how to solve this problem?
Maybe some other application is accessing the flask application. Try changing the port.
app.run(debug=True,port=5000)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am making a voice assistant in python following the tutorial on YouTube by "Code with harry". I have successfully added some more functionalities. The file is of extension .pyw so it runs in the background. The problem I am facing is that sometimes when I run the script it runs as I want it to i.e. always listening for inputs especially after executing a command but most of the time, when I run the script it stops listening after I give it a command. Let's say I asked it to open chrome and it opened it then it would stop listening until I close chrome. How do I fix this?
tutorial link - https://www.youtube.com/watch?v=Lp9Ftuq2sVI&t=1693s
Any help would be really appreciated. Just so you know I am not a pro in coding.
I got it working. The culprit was "webbrower.open()"
The code stopped once this line ran. So I found an alternative. "os.system()"
This worked perfectly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am a software architect with 23 years commercial experience in C++/C#/Python/Cython. I was forced into using VSCode rather than PyCharm becasue I had to debug some particularly tricky Django templates. I use several machines, one of which is a production test machine. I changed 1 line of code while logged on there and pushed it because it was critical. Now my Git is totally screwed. I have have worked with sourcesafe and clearcase over the years, and I do not have a problem with Git however VSCode has rendered my setup useless.
I now have to save log data on my production test box, wipe the prod folder and reinstall all the code from scratch from Git. This is about a day's work and should not be necessary.
I was warming to VSCode but I will change the way I work until VSCode/Git integration is improved enormously. I will code using VSCode but at any point I want to pull, push, fetch or merge, I will switch to the community edition of PyCharm. PyCharm handles source control like a dream but I don't want to do my day-to-day development with it.
Anybody else out there having similar problems? I simply don't have the time to write a VSCode extension to handle Git properly. I have an end-of-Septemebr deadline and I simply can't have this happen again.
Any feedback is most welcome.
/Luke
For the most part, I just use command line git integration.
However, for large projects or for particularly tricky merge conflicts or other problems, you could use third party git clients such as Source Tree (what I use) or GitKraken. These offer a host of features with nice interfaces.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have a standard-ish setup. Call it three servers - www, app and db, all fed from fabric scripts, and the whole on github.
I have a local laptop with the repo clone. I change a file locally, and push it to github then deploy using jenkins - which pulls from github and does its business. The problem here is I can put a dozen rubbish commits up till I manage to fix all my typos.
Its not so much the round trip to github that matters, but the sheer number of commits - I cannot squash them as they have been pushed. It looks ugly. It works sure but it is ugly.
I don't think I can edit on the servers directly - the file are spread out a lot, and I cannot make each directory on three servers a clone of github and hope to keep things sane.
And trying to write scripts that will synch the servers with my local repo is insane - fabric files took long enough.
I cannot easily git pull from jenkins, because I still have to commit to have jenkins pull, and we still get ugly ugly commit logs.
I cannot see a graceful way to do this - ideas anyone.
The solution is quite simple: make cleaner commits (fix typos before committing, only commit changes that belong together, not for too small edits). It's a bit odd that you don't take the time to fix typos (by running/testing locally) but wish to reduce the number of commits by some other means.
The solution is to not use github / jenkins to deploy to the servers.
The servers should be seen as part of the 'local' deployment (local being pre-commit)
So use the fab files directly, from my laptop.
That was harder because of pre processing occuring on jenkins but that is replicable.
So, I shall take Jeff Atwoods advice here
embrace the suck, in public.
Well I certainly sucked at that - but hey I learnt.
Will put brain in the right way tomorrow.