jcartledge / sublime-worksheet

An inline REPL for JavaScript, PHP, Ruby & more in Sublime Text 2 and 3
MIT License
333 stars 18 forks source link

can't access "worksheet: evaluate worksheet" #21

Closed cmpscabral closed 11 years ago

cmpscabral commented 11 years ago

Hi, I just installed this using package manager, but using ctrl+shift+P and searching for the "woksheet: evaluate worksheet" command, I can't find it.

I tried restarting sublime but the error remains.

I'm on ubuntu 11.10 (oneiric) 64bit.

Thanks

j-hernandez commented 11 years ago

Confirmed on Ubuntu 12.04. Relevant log entries from ST2 console:

Reloading plugin /home/james/.config/sublime-text-2/Packages/Worksheet/__init__.py
Reloading plugin /home/james/.config/sublime-text-2/Packages/Worksheet/worksheet.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./worksheet.py", line 3, in <module>
    import repl
  File "./repl/__init__.py", line 1, in <module>
    from repl import get_repl
  File "./repl/repl.py", line 1, in <module>
    import pexpect
  File "./repl/pexpect.py", line 85, in <module>
    support it. Pexpect is intended for UNIX-like operating systems.""")
ImportError: No module named resource

A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.
cmpscabral commented 11 years ago

yep, forgot to check the console :) I get the exact same error

toxinu commented 11 years ago

Same for me.

inactivist commented 11 years ago

Same here. Ubuntu 12.04 64 bit. Not sure if this matters, but I launched Sublime Text 2 from inside an active Virtualenv created with the --no-site-packages option.

Edit: Nope, starting Sublime Text 2 while no virtualenv active doesn't fix the problem.

inactivist commented 11 years ago

Derp... I forgot, ST2 has its own private Python interpreter rolled in.

>>> import sys
>>> sys.version
'2.6.6 (r266:84292, Jun 16 2011, 22:27:44) \n[GCC 4.4.5]'
cronco commented 11 years ago

Yup, happens to me too, Ubuntu 13.04.

jcartledge commented 11 years ago

Thanks all - I'll try to check this out today.

jcartledge commented 11 years ago

Sorry Linux people, my bad. For some reason the resource module (a pexpect dependency) isn't packaged in ST2. Luckily it's only used for one call which can be replaced by shelling out to ulimit. Fix is in 0.7.3 which should be in Package Control soon...

j-hernandez commented 11 years ago

Much appreciated, looking forward to 0.7.3!