Sublime Forum

Cause of AttributeError: 'NoneType' replR Windows

#1

Getting this message Cause of AttributeError: ‘NoneType’ object has no attribute ‘encode’
Trying to run replR in Sublime 3. I am getting this when I try to open replR. I set the path variable to R 3.2.2, I am on W8 64bit, and latest build of Sublime 3.

{

“default_extend_env”: {“PATH”: “{PATH};C:\Program Files\R\R-3.2.2\bin\x64”},
“show_transferred_text”: true
}

What is the meaning of this error message and what is encode?

0 Likes

#2

Does anybody have any clue? It shouldn’t be difficult to run repl on windows.

0 Likes

#3

This is obviously a bug in the plugin code, but I can not find a package named “replR” as you indicated in the title and text. Please provide a link to the package you used and maybe I or others might be able to help.

Also, when posting an exception, ALWAYS include the entire traceback and not only the exception text.

0 Likes

#4

Thanks for the reply, the plug-in is called repl and has many sub the plug-ins.

This is the repository github.com/wuub/SublimeREPL/

How do I create the trace back?

0 Likes

#5

any help? I just want to run this plugin in windows

0 Likes

#6

A traceback should be in the console and look similar to this: (probably shorter)

Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 304, in on_activated callback.on_activated(v) File "scope_hunter in C:\Users\Fichte\AppData\Roaming\Sublime Text 3\Installed Packages\ScopeHunter.sublime-package", line 644, in on_activated File "scope_hunter in C:\Users\Fichte\AppData\Roaming\Sublime Text 3\Installed Packages\ScopeHunter.sublime-package", line 727, in reinit_plugin File "scope_hunter in C:\Users\Fichte\AppData\Roaming\Sublime Text 3\Installed Packages\ScopeHunter.sublime-package", line 721, in init_color_scheme File "./traceback.py", line 270, in format_exc def line(self): File "./traceback.py", line 187, in format_exception def format_stack(f=None, limit=None): File "./traceback.py", line 75, in format_tb "\nThe above exception was the direct cause " File "./traceback.py", line 100, in extract_tb type(value), value, tb, limit=limit).format(chain=chain): File "./linecache.py", line 15, in getline def getline(filename, lineno, module_globals=None): File "./linecache.py", line 41, in getlines if filename in cache: File "./linecache.py", line 103, in updatecache data = cache[filename][0]() AttributeError: 'tuple' object has no attribute 'splitlines'

Without the traceback, this problem is almost undebuggable.

You might find similar problems (and solutions) here: github.com/wuub/SublimeREPL/iss … ibuteerror

0 Likes