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
Error: 'PathShellFilter' has no attribute 'name' #275
Comments
At first glance there does not seem to be something wrong with your config |
Hey. my Python knowledge is a bit rusty, but perhaps there should be |
Capital letters in Profile name seems to be the problem |
This should be fixed in v2.19, please check it out! |
Whenever I edit my FilesCatalog config file (e.g. add or remove a line in the
With the following test
|
Yeah, I have a same issue too @eugenesvk which is very waird. [main]
debug = yes
[profile/DocumentedDefaults]
activate = yes
include_dirs = yes
paths =
C:\Users\Galliver\Google ドライブ\**
C:\Users\Galliver\*dev
G:\共有ドライブ\**
filters =
- *\firefox_profile\*
ext: .pdf .gdoc .gsheet .gslides .txt .exe .docx .xlsx .pptx .doc .text
[profile/evernote]
activate = yes
paths =
C:\Program Files (x86)\Evernote\Evernote\ENScript.exe
[profile/CdriveRoot]
activate = yes
include_dirs = yes
include_hidden = yes
max_depth = 0
paths =
C:\** then the console was show: 19:37:29.308 FilesCatalog.FilesCatalog: Activated profiles (3):
** Profile "CdriveRoot":
internal_name "cdriveroot"
include_hidden yes
include_dirs yes
include_files yes
max_depth 0
trim_extensions ('.lnk')
file_item_label "{clean_name}"
file_item_desc <none>
dir_item_label "{clean_name}"
dir_item_desc <none>
callback default_scan_callback
paths C:\**
filters <none>
** Profile "DocumentedDefaults":
internal_name "documenteddefaults"
include_hidden no
include_dirs yes
include_files yes
max_depth -1
trim_extensions ('.lnk')
file_item_label "{clean_name}"
file_item_desc <none>
dir_item_label "{clean_name}"
dir_item_desc <none>
callback default_scan_callback
paths C:\Users\Galliver\Google ドライブ\**
C:\Users\Galliver\*dev
G:\共有ドライブ\**
filters - *\firefox_profile\*
+ ext: .docx .pdf .pptx .gdoc .exe .doc .gsheet .gslides .xlsx .text .txt
** Profile "evernote":
internal_name "evernote"
include_hidden no
include_dirs no
include_files yes
max_depth -1
trim_extensions ('.lnk')
file_item_label "{clean_name}"
file_item_desc <none>
dir_item_label "{clean_name}"
dir_item_desc <none>
callback default_scan_callback
paths C:\Program Files (x86)\Evernote\Evernote\ENScript.exe
filters <none>
19:37:29.310 ** ERROR: Error from FilesCatalog.FilesCatalog.on_events: <class 'AttributeError'>: type object 'PathShellFilter' has no attribute 'name'
Traceback (most recent call last):
File "C:\ProgramData\chocolatey\lib\keypirinha\tools\Keypirinha\default\Packages\FilesCatalog.keypirinha-package\filescatalog.py", line 355, in on_events
File "C:\ProgramData\chocolatey\lib\keypirinha\tools\Keypirinha\default\Packages\FilesCatalog.keypirinha-package\filescatalog.py", line 660, in _read_config
File "C:\ProgramData\chocolatey\lib\keypirinha\tools\Keypirinha\python\site\filefilter.py", line 106, in __eq__
return hash(self) == hash(other)
File "C:\ProgramData\chocolatey\lib\keypirinha\tools\Keypirinha\python\site\filefilter.py", line 250, in __hash__
self.hash_cache = hash((self.__class__.name, I used @polyvertex Do you have any idea that I made some mistake? or is it a bug? |
So sorry for the inconvenience and for the lag. Definitely reopening this! |
FYI if you wish to check it out and confirm it is fixed, download a copy of the fixed filefilter.py file and move it to Please report after that! |
@polyvertex I've replaced the filefilter.py file and refreshed the FilesCatalog config after a couple of edits and didn't get any errors, so this seems to fix the issue |
Should be fixed in v2.25. |
Everything scanned, it works just fine. But, what caused this error?
The text was updated successfully, but these errors were encountered: