Error initializing plugin with Vim 8 from source + pyenv 3.6.4
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 284
- Forks
- 27
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Having just re-installed Vim from source in OS X:
Vim version: 8.0.1848
OS X version: 10.13.4
Python version: 3.6.4 (via pyenv)
Vim package management: Vim >= 8 internal
Other plugins are loading fine. When I try to load the vdebug plugin, either by placing in a `~/.vim/pack/*/start` folder or via `:packadd vdebug`, I get the following error:
```
Error detected while processing /Users/leons/.vim/pack/plugins/opt/vdebug/plugin/vdebug.vim:
line 39:
Traceback (most recent call last):
File "", line 1, in
File "/Users/leons/.vim/pack/plugins/opt/vdebug/pythonx/start_vdebug.py", line 8, in
import vdebug.debugger_interface
File "/Users/leons/.vim/pack/plugins/opt/vdebug/pythonx/vdebug/debugger_interface.py", line 3, in
from . import breakpoint
File "/Users/leons/.vim/pack/plugins/opt/vdebug/pythonx/vdebug/breakpoint.py", line 1, in
import base64
File "/Users/leons/.pyenv/versions/3.6.4/lib/python3.6/base64.py", line 10, in
import struct
File "/Users/leons/.pyenv/versions/3.6.4/lib/python3.6/struct.py", line 13, in
from _struct import *
ImportError: dlopen(/Users/leons/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so, 2): Symbol not found: _PyByteArray_Type
Referenced from: /Users/leons/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/leons/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
line 114:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'vdebug' is not defined
Error detected while processing function Vdebug_load_options:
line 8:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'debugger' is not defined
Error detected while processing function Vdebug_load_keymaps:
line 22:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'debugger' is not defined
Press ENTER or type command to continue
```
Of note, `:python3` commands work fine in Vim, though `:python` commands do not. Does vdebug require both to be working?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el fallo al cargar plugin/vdebug.vim, comenzando en la línea 39, y luego inspecciona pythonx/start_vdebug.py y las importaciones en pythonx/vdebug/debugger_interface.py y breakpoint.py. Compara el entorno :python3 que funciona con el Python embebido que falla y determina qué se requiere para que la inicialización se complete sin el traceback ni los mensajes posteriores de NameError.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python, vim
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100