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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@polyvertex

polyvertex Sep 14, 2017

Member

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?
Member

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?
@oivindhr

This comment has been minimized.

Show comment
Hide comment
@oivindhr

oivindhr 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$".

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$".

@polyvertex

This comment has been minimized.

Show comment
Hide comment
@polyvertex

polyvertex Sep 16, 2017

Member

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

Member

polyvertex commented Sep 16, 2017

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

@oivindhr

This comment has been minimized.

Show comment
Hide comment
@oivindhr

oivindhr Sep 17, 2017

Ok, I'm looking forward to next version!

oivindhr commented Sep 17, 2017

Ok, I'm looking forward to next version!

@polyvertex polyvertex removed the status/done label Oct 20, 2017

@polyvertex

This comment has been minimized.

Show comment
Hide comment
@polyvertex

polyvertex Oct 20, 2017

Member

Should now be fixed in v2.16

Member

polyvertex commented Oct 20, 2017

Should now be fixed in v2.16

@polyvertex polyvertex closed this Oct 20, 2017

@oivindhr

This comment has been minimized.

Show comment
Hide comment
@oivindhr

oivindhr Oct 20, 2017

oivindhr commented Oct 20, 2017

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