Gen6D icon indicating copy to clipboard operation
Gen6D copied to clipboard

PermissionError: [WinError 5] Access is denied

Open kooshyarkosari opened this issue 2 years ago • 5 comments

Dear Author

Thank you very much for your great and amazing work:

I have got the following error when I run this line of code:

python prepare.py --action sfm --database_name custom/Drill2 --colmap C:\Users\User\Desktop\colmap\COLMAP-3.7-windows-no-cuda\bin

Screenshot (57)

and I also have tried on cuda version but I have same issue

please help me in this case . Thanks in advanced

kooshyarkosari avatar Oct 21 '22 08:10 kooshyarkosari

This problem seems to be related to the 'subprocess' of your python library. Maybe, you can run your cmd with administrator permission.

liuyuan-pal avatar Oct 21 '22 11:10 liuyuan-pal

Thanks for your reply but unfortunately, I have tried several times even though I uninstalled and reinstalled the python but again it did not work ( same error). can you show me another solution, please?

kooshyarkosari avatar Oct 26 '22 12:10 kooshyarkosari

I found that the colmap path was a bin directory in your command line. It should be an executable bin/colmap file. According to https://stackoverflow.com/questions/59777157/permissionerror-winerror-5-access-denied , you will get this error when you execute a directory.

liuyuan-pal avatar Oct 27 '22 03:10 liuyuan-pal

Hi, The problem still remains, even though I have tried it on different devices with windows OS but the same error, Is there another way to run the colmap without using python script and get the same results ?
Thanks

kooshyarkosari avatar Nov 04 '22 07:11 kooshyarkosari

python prepare.py --action sfm --database_name custom/Drill2 --colmap C:\Users\User\Desktop\colmap\COLMAP-3.7-windows-no-cuda\bin 改为 python prepare.py --action sfm --database_name custom/Drill2 --colmap C:\Users\User\Desktop\colmap\COLMAP-3.7-windows-no-cuda\colmap.bat

yxyxinyu1 avatar Apr 05 '24 08:04 yxyxinyu1