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

an error occurred when called by lua in nginx #224

Closed
ltpao opened this issue Oct 15, 2014 · 1 comment
Closed

an error occurred when called by lua in nginx #224

ltpao opened this issue Oct 15, 2014 · 1 comment
Labels
Milestone

Comments

@ltpao
Copy link

ltpao commented Oct 15, 2014

File "/usr/bin/unoconv", line 1112, in
office_environ(of)
File "/usr/bin/unoconv", line 203, in office_environ
os.environ['PATH'] = realpath(office.basepath, 'program') + os.pathsep + os.environ['PATH']
File "/opt/libreoffice4.1/program/python-core-3.3.0/lib/os.py", line 669, in getitem
value = self._data[self.encodekey(key)]
KeyError: b'PATH'


bug resolved
source:
os.environ['PATH'] = realpath(office.basepath, 'program') + os.pathsep + os.environ['PATH']
replace:
os.environ['PATH'] = realpath(office.basepath, 'program') + os.pathsep + os.environ.get('PATH', '.')

@dagwieers
Copy link
Member

Maybe relevant also to this case is the following:
#87 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants