smousavi05 / EQTransformer

EQTransformer, a python package for earthquake signal detection and phase picking using AI.
https://rebrand.ly/EQT-documentations
MIT License
305 stars 148 forks source link

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: #102

Closed mariontan closed 2 years ago

mariontan commented 2 years ago

Good Day Thank you for this library it is of great help to us.

I have a question. I keep getting this error when I run the predictor from this library from EQTransformer.core.predictor import predictor. I have attached a screen shot of the error. I was just following the tutoial section from your documentation.

Below are some system details of my machine: OS: Windows 11 GPU: NVIDIA GeForce RTX 3060 Laptop GPU image

smousavi05 commented 2 years ago

@mariontan currently EqT does not run on Windows. Can you try it on another mac or linux machine?

mariontan commented 2 years ago

Thank you very much @smousavi05. Have you tried using this on Windows Subsystem on Linux?

smousavi05 commented 2 years ago

@mariontan No, I haven't. The core of the code does not have any issue for running on Windows though. The issue is on the auxiliary part of the code creating new folders and arranging the outputs. There is a "/" vs "\" discrepancy between path names in windows and Os. So if you know Python or anyone coding Python on Windows, these issues could be easily solved by following the errors messages and doing some simple modifications to the code. I just do not have any Windows machine to do so or test the code.

mariontan commented 2 years ago

Thank you very much @smousavi05.

XuXiaoZh commented 4 months ago

Hello, have you solved your problem? I still don't understand your conversation above. Can you tell me how to solve the problem of "The process cannot access the file because it is being used by another process"?Thanks so much!

mengzhu555 commented 4 months ago

Hello, have you solved your problem? I still don't understand your conversation above. Can you tell me how to solve the problem of "The process cannot access the file because it is being used by another process"?Thanks so much!

me too

smousavi05 commented 4 months ago

Another potential solution would be to just use other implementations of EQTransformer like SeisBench or BlockyEQTransformer.

On Sat, Apr 27, 2024 at 5:45 AM mengzhu555 @.***> wrote:

Hello, have you solved your problem? I still don't understand your conversation above. Can you tell me how to solve the problem of "The process cannot access the file because it is being used by another process"?Thanks so much!

me too

— Reply to this email directly, view it on GitHub https://github.com/smousavi05/EQTransformer/issues/102#issuecomment-2080572212, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHWAPHK63PTXVDX5KKTJKDY7OMVRAVCNFSM5H2LM6SKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBYGA2TOMRSGEZA . You are receiving this because you were mentioned.Message ID: @.***>