A
A
Andrei1penguin12021-05-08 18:45:14
Python
Andrei1penguin1, 2021-05-08 18:45:14

Why do I get an error when creating an instance of FileChooserIconView?

Hello, when creating a FileChooserIconView instance from kivy.uix.filechooser, I get the following error:

[ERROR ] unable to access to <\DumpStack.log.tmp>
Traceback (most recent call last):
File "C:\Python39\lib\ site-packages\kivy\uix\filechooser.py", line 180, in is_hidden
return GetFileAttributesExW(fn)[0] & FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'The process cannot access the file because this file is in use by another process.')
[ERROR ] unable to access to <\hiberfil.sys>
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\kivy\uix\filechooser.py" line 180,in is_hidden
return GetFileAttributesExW(fn)[0] & FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'The process cannot access the file because the file is in use by another process.')
[ERROR ] unable to access to <\pagefile.sys>
Traceback (most recent call last) :
File "C:\Python39\lib\site-packages\kivy\uix\filechooser.py", line 180, in is_hidden
return GetFileAttributesExW(fn)[0] & FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', ' The process cannot access the file because the file is in use by another process.')
[ERROR ] unable to access to <\swapfile.sys>
Traceback (most recent call last):
File "C:\Python39\lib\site- packages\kivy\uix\filechooser.py", line 180,in is_hidden
return GetFileAttributesExW(fn)[0] & FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'The process cannot access the file because the file is in use by another process.')
[ERROR ] [unable to access to
Traceback (most recent call last):
File "C: \Python39\lib\site-packages\kivy\uix\filechooser.py", line 180, in is_hidden
return GetFileAttributesExW(fn)[0] & FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'Process cannot access to the file because the file is in use by another process.')
[ERROR ] [unable to access to
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\kivy\uix\filechooser.py" , line 180, in is_hidden
return GetFileAttributesExW(fn)[0] &FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'The process cannot access the file because the file is in use by another process.')
[ERROR ] [unable to access to
Traceback (most recent call last):
File "C: \Python39\lib\site-packages\kivy\uix\filechooser.py", line 180, in is_hidden
return GetFileAttributesExW(fn)[0] & FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'Process cannot access to the file because the file is in use by another process.')
[ERROR ] [unable to access to
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\kivy\uix\filechooser.py" , line 180, in is_hidden
return GetFileAttributesExW(fn)[0] &FILE_ATTRIBUTE_HIDDEN
pywintypes.error: (32, 'GetFileAttributesEx', 'The process cannot access the file because the file is in use by another process.')

Strange though, since everything works in kv

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MinTnt, 2021-05-09
@Andrei1penguin1

Well, the problem is related to the fact that backup services are running in parallel.
To solve it, you can:
1) Disable this service (Google has examples)
2) Use the filters parameter for this function. So that it ignores the files that cause the error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question