Hi,
*First I use the command: python setup.py install --force to install, but
have some errors:*
Failed to run 'gvim' as Vim.
Please set the EDITOR environment variable or run 'pyclewn
--editor=/path/to/(g)vim'.
Traceback (most recent call last):
File "setup.py", line 48, in <module>
vimdir = pyclewn_install.vimdir()
File "/home/free/pyclewn-1.10.py2/clewn/misc.py", line 85, in _dec
ret = f(*args)
File "/home/free/pyclewn-1.10.py2/pyclewn_install.py", line 49, in vimdir
path = vim.exec_vimcmd(['echon $VIM'])
File "/home/free/pyclewn-1.10.py2/clewn/vim.py", line 96, in exec_vimcmd
subprocess.Popen(args).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
so I set the environment variable EDITOR,
EDITOR=/usr/bin/vim
export EDITOR
after that I execute command again:
running install
Vim user data files location: "/usr/share/vim/vimfiles"
checking netbeans support in vim: yes
checking auto commands support in vim: yes
running build
running build_py
running build_ext
building '_bdb' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
pdb_clone/_bdbmodule.c -o build/temp.linux-x86_64-2.7/pdb_clone/_bdbmodule.o
pdb_clone/_bdbmodule.c:3:20: fatal error: Python.h: No such file or
directory
compilation terminated.
warning: build_ext:
*** Building the _bdb extension failed. ***
running build_scripts
running install_lib
creating /usr/local/lib/python2.7/dist-packages/pdb_clone
error: could not create '/usr/local/lib/python2.7/dist-packages/pdb_clone':
Permission denied
I stumped..
*when I use the following command to install pyclewn:*
*vimdir=$HOME/.vim python setup.py install --force --home=$HOME*
It gives following messages:
running install
Vim user data files location: "/home/free/.vim"
checking netbeans support in vim: yes
checking auto commands support in vim: yes
running build
running build_py
running build_ext
building '_bdb' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
pdb_clone/_bdbmodule.c -o build/temp.linux-x86_64-2.7/pdb_clone/_bdbmodule.o
pdb_clone/_bdbmodule.c:3:20: fatal error: Python.h: No such file or
directory
compilation terminated.
warning: build_ext:
*** Building the _bdb extension failed. ***
running build_scripts
running install_lib
creating /home/free/lib
creating /home/free/lib/python
creating /home/free/lib/python/pdb_clone
copying build/lib.linux-x86_64-2.7/pdb_clone/bdb.py ->
/home/free/lib/python/pdb_clone
copying build/lib.linux-x86_64-2.7/pdb_clone/__init__.py ->
/home/free/lib/python/pdb_clone
copying build/lib.linux-x86_64-2.7/pdb_clone/pdb.py ->
/home/free/lib/python/pdb_clone
creating /home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/gdb.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/pydb.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/evtloop.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/nt.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/debugger.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/tty.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/simple.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/vim.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/misc.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/__init__.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/gdbmi.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/buffer.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/asyncproc.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/__version__.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/posix.py ->
/home/free/lib/python/clewn
copying build/lib.linux-x86_64-2.7/clewn/netbeans.py ->
/home/free/lib/python/clewn
byte-compiling /home/free/lib/python/pdb_clone/bdb.py to bdb.pyc
byte-compiling /home/free/lib/python/pdb_clone/__init__.py to __init__.pyc
byte-compiling /home/free/lib/python/pdb_clone/pdb.py to pdb.pyc
byte-compiling /home/free/lib/python/clewn/gdb.py to gdb.pyc
byte-compiling /home/free/lib/python/clewn/pydb.py to pydb.pyc
byte-compiling /home/free/lib/python/clewn/evtloop.py to evtloop.pyc
byte-compiling /home/free/lib/python/clewn/nt.py to nt.pyc
byte-compiling /home/free/lib/python/clewn/debugger.py to debugger.pyc
byte-compiling /home/free/lib/python/clewn/tty.py to tty.pyc
byte-compiling /home/free/lib/python/clewn/simple.py to simple.pyc
byte-compiling /home/free/lib/python/clewn/vim.py to vim.pyc
byte-compiling /home/free/lib/python/clewn/misc.py to misc.pyc
byte-compiling /home/free/lib/python/clewn/__init__.py to __init__.pyc
byte-compiling /home/free/lib/python/clewn/gdbmi.py to gdbmi.pyc
byte-compiling /home/free/lib/python/clewn/buffer.py to buffer.pyc
byte-compiling /home/free/lib/python/clewn/asyncproc.py to asyncproc.pyc
byte-compiling /home/free/lib/python/clewn/__version__.py to __version__.pyc
byte-compiling /home/free/lib/python/clewn/posix.py to posix.pyc
byte-compiling /home/free/lib/python/clewn/netbeans.py to netbeans.pyc
running install_scripts
creating /home/free/bin
copying build/scripts-2.7/pdb-clone -> /home/free/bin
copying build/scripts-2.7/pyclewn -> /home/free/bin
copying build/scripts-2.7/inferior_tty.py -> /home/free/bin
changing mode of /home/free/bin/pdb-clone to 775
changing mode of /home/free/bin/pyclewn to 775
changing mode of /home/free/bin/inferior_tty.py to 775
running install_data
copying runtime/plugin/pyclewn.vim -> /home/free/.vim/plugin
copying runtime/autoload/pyclewn.vim -> /home/free/.vim/autoload
copying runtime/doc/pyclewn.txt -> /home/free/.vim/doc
copying runtime/.pyclewn_keys.simple -> /home/free/.vim/macros
copying runtime/.pyclewn_keys.gdb -> /home/free/.vim/macros
copying runtime/.pyclewn_keys.pdb -> /home/free/.vim/macros
copying runtime/syntax/dbgvar.vim -> /home/free/.vim/syntax
running install_egg_info
Writing /home/free/lib/python/pyclewn-1.10.py2.egg-info
running Vim help tags file generation in /home/free/.vim/doc
It seems that install completed? although has an error.
Then I tried to start pyclewn .when I input pyclewn in terminal, it tells
me command not found,
so I just execute ./pyclewn --editor=/usr/bin/vim in source code folder
pyclewn-1.10.py2 ,however, it opened a vim window, then I use :Cfile
exename but gdb tells me no such file or directory.
what happened? I confused. and the important problem is how to start
pyclewn use "pyclewn" only in anywhere?
However I tried another way : use vi to start a main.c file first,then
input :Pyclewn, it gives some errors:
The 'Pyclewn' command has been aborted
Error: 'pyclewn' cannot be found or is not an executable.
Thank you for your help for advance. Any help is greatly appreciated!
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general