Skip to content
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

"Failed to init PythonIni object" error #235

Closed
oivindhr opened this issue Sep 14, 2017 · 6 comments
Closed

"Failed to init PythonIni object" error #235

oivindhr opened this issue Sep 14, 2017 · 6 comments

Comments

@oivindhr
Copy link

@oivindhr oivindhr commented Sep 14, 2017

Hi, I get this error when I start KeyPirihna for all the packages:
Traceback (most recent call last):
File "lib\configparser.py", line 751, in read_dict
File "lib\configparser.py", line 891, in set
File "lib\configparser.py", line 462, in before_set
WARNING: Failed to init PythonIni object for package [e.g FileBrowser, FileZilla, Calc etc.] . Error: <class 'ValueError'>: invalid interpolation syntax in '\\oslfil01\OIVRAS$' at position 17

I see that %HOMESHARE% is defined as "\oslfil01\OIVRAS$" and %HOMEDRIVE% is defined as H: which is also set to be "\oslfil01\OIVRAS$".

I don't have admin rights on my computer so I can't change the environment variables. Is there a way to get around or fix this problem?

@polyvertex
Copy link
Member

@polyvertex polyvertex commented Sep 14, 2017

Hey, I cannot reproduce the issue only by adding an env var with a $ character so I would need more info:

  1. Version of Keypirinha
  2. Version of the OS
  3. Do you actually use the %HOMESHARE% or any other env var in your config files?

Loading

@oivindhr
Copy link
Author

@oivindhr oivindhr commented Sep 15, 2017

I'm using version 2.15.4, Windows 10 Enterprise (version 1703, OS-build 15063.540). I have not used %HOMESHARE% or any other env var in the config files. I just thought the env var could be the reason for the errors. But I guess it also might be something in the registry. I found that "Personal" in "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" and "{F42EE2D3-909F-4907-8871-4C22FC0BF756}" and "Personal" in "User Shell Folders" is set to "\oslfil01\OIVRAS$".

Loading

@polyvertex
Copy link
Member

@polyvertex polyvertex commented Sep 16, 2017

Ah. Corner case it seems. Next version will be fixed, thanks for your feedback.

Loading

@oivindhr
Copy link
Author

@oivindhr oivindhr commented Sep 17, 2017

Ok, I'm looking forward to next version!

Loading

@polyvertex
Copy link
Member

@polyvertex polyvertex commented Oct 20, 2017

Should now be fixed in v2.16

Loading

@polyvertex polyvertex closed this Oct 20, 2017
@oivindhr
Copy link
Author

@oivindhr oivindhr commented Oct 20, 2017

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants