Sublime Forum

[SOLVED] Unable to run package setup

#1

SB2 was running fine tell today, I am running Arch Linux…this is what I get when I try to start SB2 2138 & 2139

Unable to run package setup:

Traceback (most recent call last):
File “./PackageSetup.py”, line 155, in upgrade
upgradePackage(pkg, pristinedir, datadir, backupdir)
File “./PackageSetup.py”, line 148, in upgradePackage
os.path.join(backupdir, base), inhibitOverwrite)
File “./PackageSetup.py”, line 64, in upgradeArchive
fname = os.path.join(pkgdir, f)
File “.\posixpath.py”, line 70, in join
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 49: ordinal not in range(128)

0 Likes

#2

So PackageSetup.py comes bundled with Sublime Text and provides basic package handling, primarily aimed at upgrading the packages that ship with Sublime. It does also automatically install .sublime-package files that are placed in the Installed Packages directory.

From the stack trace you posted, there is either a .sublime-package file in your Installed Packages directory, or the Pristine Packages folder that is a sibling to the sublime_text binary, that contains a non-ascii file name.

I’ve actually seen a number of errors related to PackageSetup.py preventing ST2 from starting. I’ve been meaning to see if I can work up a patch to send Jon that will help.

0 Likes

#3

Thanks Will that was a big help.

0 Likes