-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] "One instance of dooit is already running!" error #49
Comments
Seems like this commit introduced the error e1d08b1 |
hey @gilbh, can you update and re-check if it's working now? |
@kraanzu I still have the same issue after updating (on Windows 10 machine). I did some debugging and it looks like I think a simple fix would just be to check if you come across multiple dooit/dooit.exe processes. As long as there is only one (i.e. the one currently executing), it can run. Any more than one means there is already a dooit instance executing somewhere else on that machine. Changing
Gets it past that routine, but this is followed by a number of other errors. I'll submit a separate issue and/or pull request. |
Thanks. Is there a new build to re-install and check? (I am novice in github etc ...) ... I tried running the source but I get:
|
Yes!
No you are not supposed to do that...It won't work that way python3 -m pip install git+https://github.com/kraanzu/dooit.git |
Thank you! I ran
-- and still got the same error. I then tried:
-- and still got the error. Please advise, with thanks. |
I went now and check the code in
I think this is the correct version, right? ( Still, when I run |
This is strange... It means that you have yet another |
@kraanzu I think he is having the same issue I describe. It's not that there are multiple dooit instances, it's that the PID you are comparing against is for python.exe not dooit.exe. |
Hey @TyBalduf,
Hmm, that seems strange. Since we are comparing both name and the pid, It shouldn't be the case ig. Idk how windows does this but when I made a seperate test file to run dooit i get this:
So the function should have returned |
Hey @gilbh , from os import getpid
import psutil
PID = getpid()
for process in psutil.process_iter():
if process.name() in ["dooit", "dooit.exe"] and process.pid != PID:
print(process) |
If I add these print statements to
So the if statement gets entered because it found I'm not sure how to ensure that |
Here's the output for the above code, when I run
|
Sorry for the late reply, I am currently dealing with my semester final exams :(
Yes this is much better. I'll push an update :) |
Hey @gilbh , It should work as expected now :) |
Sync implemented in v.1.0 |
Hi,
This happens when I am try to run
dooit.exe
from the command line. Here's what I am getting:Steps to reproduce the behavior:
cmd
dooit
I ran the
pip install
from inside my envs (which is calledUtils
Thanks!!
The text was updated successfully, but these errors were encountered: