View previous topic :: View next topic |
Author |
Message |
cuibug n00b
Joined: 14 Sep 2011 Posts: 30
|
Posted: Wed Sep 21, 2011 5:34 am Post subject: [solved]can't install pyclewn |
|
|
gentoo amd64
gvim 7.3
python 2.7
vimdir=$HOME/.vim python setup.py install --home=$HOME
Traceback (most recent call last): File "setup.py", line 200, in <module> 'Programming Language :: Python :: 2' File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 81, in run pyclewn_install.vim_features() File "/root/Downloads/pyclewn-1.7.py2/pyclewn_install.py", line 27, in vim_features output = vim.exec_vimcmd(['version']) File "/root/Downloads/pyclewn-1.7.py2/clewn/vim.py", line 121, in exec_vimcmd % ' '.join(args))clewn.ClewnError: Error trying to start Vim with the following command:'/bin/nano -u NONE -esX -c set cpo&vim -c redir! >/tmp/runvimcmd9YLOp1.clewn -c version -c quit'
Last edited by cuibug on Thu Sep 22, 2011 6:44 pm; edited 1 time in total |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Wed Sep 21, 2011 5:40 am Post subject: |
|
|
i would imagine this is not a great way to try and start vim
Code: |
Error trying to start Vim with the following command:'/bin/nano....<snip>
|
run:
id reckon it shows /bin/nano
seems a bit screwy for them to assume the default editor is vi
but that's my guess as to what theyre doing (?) _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
cuibug n00b
Joined: 14 Sep 2011 Posts: 30
|
Posted: Wed Sep 21, 2011 6:05 am Post subject: |
|
|
cach0rr0 wrote: | i would imagine this is not a great way to try and start vim
Code: |
Error trying to start Vim with the following command:'/bin/nano....<snip>
|
run:
id reckon it shows /bin/nano
seems a bit screwy for them to assume the default editor is vi
but that's my guess as to what theyre doing (?) |
eselect editor set /usr/bin/gvim then the problem has been solved,THANK YOU!
but a new problem occured
netbeans support in vim is required.... |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Wed Sep 21, 2011 6:21 am Post subject: |
|
|
what in the blue hell...netbeans support in vim?
i have zero ideas for that. cant help there unfortunately!
unless....there's no 'netbeans' USE for 'vim', but there is for 'gvim'
Code: |
* app-editors/gvim
Available versions: 7.2.442 7.3.135 7.3.189 (~)7.3.219 (~)7.3.244 (~)7.3.266 {acl aqua bash-completion cscope debug gnome gpm gtk motif neXt netbeans nls perl python ruby}
Homepage: http://www.vim.org/
Description: GUI version of the Vim text editor
|
so, assuming you dont already have a package.use setup (if you do, then you dont need these instructions anyway!)
Code: |
mkdir -p /etc/portage/package.use
echo "app-editors/gvim netbeans" >> /etc/portage/package.use/gvim
emerge -v gvim
|
then retry whatever you were doing that insisted vim needs netbeans support _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
cuibug n00b
Joined: 14 Sep 2011 Posts: 30
|
Posted: Wed Sep 21, 2011 8:46 am Post subject: |
|
|
cach0rr0 wrote: | what in the blue hell...netbeans support in vim?
i have zero ideas for that. cant help there unfortunately!
unless....there's no 'netbeans' USE for 'vim', but there is for 'gvim'
Code: |
* app-editors/gvim
Available versions: 7.2.442 7.3.135 7.3.189 (~)7.3.219 (~)7.3.244 (~)7.3.266 {acl aqua bash-completion cscope debug gnome gpm gtk motif neXt netbeans nls perl python ruby}
Homepage: http://www.vim.org/
Description: GUI version of the Vim text editor
|
so, assuming you dont already have a package.use setup (if you do, then you dont need these instructions anyway!)
Code: |
mkdir -p /etc/portage/package.use
echo "app-editors/gvim netbeans" >> /etc/portage/package.use/gvim
emerge -v gvim
|
then retry whatever you were doing that insisted vim needs netbeans support |
I followed your instructions,and install the pyclewn successfully.But when I run :Pyclewn in gvim, it still warn netbeans support in vim is required |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
|
Back to top |
|
|
cuibug n00b
Joined: 14 Sep 2011 Posts: 30
|
Posted: Wed Sep 21, 2011 8:53 am Post subject: |
|
|
* Found these USE flags for app-editors/gvim-7.3.189:
U I
+ + acl : Adds support for Access Control Lists
- - bash-completion : Enable bash-completion support
- - cscope : Enables cscope interface -- in vim for example
- - debug : Enable extra debug codepaths, like asserts and extra
output. If you want to get meaningful backtraces see
http://www.gentoo.org/proj/en/qa/backtraces.xml
+ + gnome : Adds GNOME support
+ + gpm : Adds support for sys-libs/gpm (Console-based mouse
driver)
+ + gtk : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
- - motif : Adds support for the Motif toolkit
- - neXt : Enable neXt toolkit
+ + netbeans : Include netbeans externaleditor integration support
+ + nls : Adds Native Language Support (using gettext - GNU locale
utilities)
+ + perl : Adds support/bindings for the Perl language
+ + python : Adds support/bindings for the Python language
- - ruby : Adds support/bindings for the Ruby language |
|
Back to top |
|
|
cuibug n00b
Joined: 14 Sep 2011 Posts: 30
|
Posted: Wed Sep 21, 2011 9:10 am Post subject: |
|
|
I'm sorry, it's my mistake....now the warnning disappear
but when I run :Pyclewn in gvim
The "Pyclewn" command has been aborted.
Error: 'pyclewn' cannot be found or is not an executable |
|
Back to top |
|
|
cuibug n00b
Joined: 14 Sep 2011 Posts: 30
|
Posted: Wed Sep 21, 2011 9:48 am Post subject: |
|
|
cach0rr0 wrote: | what in the blue hell...netbeans support in vim?
i have zero ideas for that. cant help there unfortunately!
unless....there's no 'netbeans' USE for 'vim', but there is for 'gvim'
Code: |
* app-editors/gvim
Available versions: 7.2.442 7.3.135 7.3.189 (~)7.3.219 (~)7.3.244 (~)7.3.266 {acl aqua bash-completion cscope debug gnome gpm gtk motif neXt netbeans nls perl python ruby}
Homepage: http://www.vim.org/
Description: GUI version of the Vim text editor
|
so, assuming you dont already have a package.use setup (if you do, then you dont need these instructions anyway!)
Code: |
mkdir -p /etc/portage/package.use
echo "app-editors/gvim netbeans" >> /etc/portage/package.use/gvim
emerge -v gvim
|
then retry whatever you were doing that insisted vim needs netbeans support |
Problem solved ,Thank you so much |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Fri Feb 15, 2013 4:22 am Post subject: |
|
|
If "netbeans" is applicable to gvim, but not vim, does that mean I won't be able to use pyclewn with vim?
__
sol |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Sat Feb 16, 2013 1:35 am Post subject: |
|
|
I'm not sure how "netbeans" affects vim, but at least pyclewn seems to work with vim. Perhaps netbeans is a built-in option. Here is what I did.
1) Download pyclewn, untar it, and install it. I'm installing it to my home directory, so if you are installing it to the system, you don't need "--home=$HOME/usr"
Code: | vimdir=$HOME/.vim python setup.py install --force --home=$HOME/usr |
2) Create a link to python, because pyclewn is looking for python in a different place.
Code: | $ ls /usr/local/bin/python3 -l
lrwxrwxrwx 1 root root 15 Feb 14 19:04 /usr/local/bin/python3 -> /usr/bin/python
|
3) Start vim.
4) Start pyclewn with a python file.
Code: | :Pyclewn pdb hello.py |
5) At this point, I can use the usual debug commands, such as
Code: | :Cnext Step Over.
:Cstep Step Into.
:Cp VAR Show value of VAR. |
I miss the nice key-mapping of Eclipse, such as F5 for Step Into, F6 for Step Over, F8 for Resume, etc. It's time for me to start looking into vim's key-mapping (or just stick with Eclipse and PyDev for now).
__
sol |
|
Back to top |
|
|
|