Sublime Forum

Python Builds cause LookupError

#1

Hey there,
I was using Sublime Text 2 and encountered the following problem I am about to explain. I also reproduced the same problem in Sublime Text 3 by the way.
Writing a module using the lxml Package for XML processing, I included the follwoing line of code:

from lxml import etree

Unfortunately Sublime Text 2 as well as Sublime Text 3 recently decided to throw the following LookupError everytime I execute a test script that calls functions from my module:

LookupError: no codec search functions registered: can't find encoding [Finished in 0.0s with exit code 1] [cmd: ['/usr/bin/python', '-u', '/home/fruitfly/my_new_package/utilities/test_script.py']] [dir: /home/fruitfly/my_new_package/utilities] [path: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]

When I had installed Sublime Text 3 freshly with all my packages from Sublime Text 2 and executed the script for the first time, the script had no problems and ran through without throwing any errors. Suddenly the behaviour changed and the Package Pylinter I am using started a popup window with:

[quote]Fatal pylint error:
LookupError: no codec search functions registered: can’t find encoding[/quote]

The exact same code runs perfectly fine however from a linux terminal.

I really want to use the Sublime console for debugging my scripts and functions, at the moment this is not possible though. I have absolutley no clue what causes this behaviour, what I did try so far was to deinstall Pylinter, as I though this problem might be caused by the package, but this did not lead to any progress.

Did anybody ever encounter a similar problem? I would be grateful for any advice and help,

thanks
fruitfly

oh, btw, currently I am using Sublime Text 3 and the following packages:
Package Control
Alignment
GitGutter
Pylinter
PythonBreakpoints
SublimeCodeIntel

0 Likes