-
Notifications
You must be signed in to change notification settings - Fork 16
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
Inference problem: permission error #40
Comments
That's odd. The model appears to load fine, and since the output dir is created earlier in the process this code should not have been called. Could you sent me your
|
The temporary folder has since been deleted, but if I repeat the process and run the command on the new folder I get these results: tomas@tomas-MacBookAir6-2:~/loghi$ ls -la /tmp/tmp.f1rCsLqVyL/ I can't upload the .sh file here, but in inference-pipeline.sh I have changed the following lines (and these lines only): LAYPABASELINEMODEL=/home/tomas/Downloads/general/baseline/config.yaml HTRLOGHIMODEL=/home/tomas/Downloads/generic-2023-02-15 GPU=-1 |
Are you running on OSX? It is known that there might be issues and we don't officially support it, but let's try anyway. That might work as the directory won't exist when the erroring code is called, and the directory should be created automatically. It's entirely a guess though. If it doesn't work I'll dive deeper into the code. Just to make sure: earlier when everything was running fine was that the same machine and code? |
Thanks, unfortunately the workaround didn't work and produced the same error. I installed Ubuntu 24.04.1LS on an old intel macbook. Initially this worked fine and I managed to create some .xml files with text included on the same machine and with the same code. Maybe some security/authorization issue is causing the error? I just noticed in system > Users that my account locks down and requires authentication randomly (see screenshot, 'some settings are locked'). I now suspect that my setup or something else on my end is causing the error, not the Loghi script. |
If it's linux on intel it should just work. The fact that some settings are locked is normal. It might be something in your install, but I have some doubts. We could try a teams meeting on Friday to make it a bit easier to track down the cause. |
one final thing to try: could you try with the latest version? 2.2.0 was released this morning. You only need to download inference-pipeline.sh and change the same things as earlier. I don't think it will provide a fix, but it is worth a shot. |
I've tried 2.2.0, but unfortunately I encountered the same problem (see log attached). It would be wonderful if you could have a look at it over a teams meeting on Friday or some other day, just let me know what time suits you. |
After some investigation we found the cause: the default inference-pipeline.sh script does not work correctly if used in conjunction with docker installed via snap. Some extra file system isolation is caused by snap. If Docker is installed via regular methods (e.g.: apt / rpm /yum) there is no problem.
We will look into changing the inference script separately so later versions do work out of the box with docker installs via snap. |
Although Loghi worked fine a couple of days ago, I now run into a problem when I run inference-pipeline.sh. The .xml file only contains the lines, not any text. It appears that the HTR models doesn't work because of a permission error, as I get this feedback:
PermissionError: [Errno 13] Permission denied: '/tmp/tmp.gMb7lKokXj/output/'
Any idea how to fix this?
My apologies if I overlook something obvious, I'm completely new to this.
log.txt
The text was updated successfully, but these errors were encountered: