Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python/dyn instead of python #24

Closed
giper45 opened this issue May 31, 2017 · 8 comments
Closed

python/dyn instead of python #24

giper45 opened this issue May 31, 2017 · 8 comments
Labels

Comments

@giper45
Copy link

giper45 commented May 31, 2017

Hello, in my default vim installed Mac Version there's the following python support:

 +python/dyn
-python3 

It seems that there is dynamic python library support, but when I run with enabled plugin vim error still happens:

vim-live-preview: Python initialization failed.

Is there any way to use dynamic python without compiling vim for the static python library ? Thanks in advance!

@xuhdev
Copy link
Owner

xuhdev commented May 31, 2017

The plugin only calls has('python') to see whether python APIs are accessible. You can try the following and see the output:

 :echo has('python')

@giper45
Copy link
Author

giper45 commented Jun 1, 2017

It gives 1... but the error appears anyway...strange doesn't?

@ranguli
Copy link
Contributor

ranguli commented Jul 25, 2017

@giper45 Was this ever resolved?

@giper45
Copy link
Author

giper45 commented Jul 25, 2017

Hi @ranguli unfortunately I wasn't able to use latex preview with python/dyn , even by editing the plugin and by supporting the python/dyn library it didn't work. I don't know if it's a Mac problem, anyway a solution could be to download vim source code and compile it by enabling the python support and by replacing the native mac vim with the compiled vim. I didn't try this, and I'm using a mix of texshop (mac native latex editor) to update the pdf preview with ctrl+R and mac native vim to edit latex files more quickly. If you try to compile vim let me now if the plugin works!

@ranguli
Copy link
Contributor

ranguli commented Jul 25, 2017

@giper45 My solution (documented in issue #12 ) is the same as yours, I had to re-compile Vim with python3 support in order to remove python/dyn and change the calls to python to python3 in the code in order for it to work. Based on this I think it's safe to assume that there's no support python/dyn right now. I'll make a pull request on the README and add it as a known issue.

badouralix pushed a commit that referenced this issue Jul 25, 2017
* Update README.md

Added more commonly known Issues, referencing Issue #12 and #24

* Fixed mistakes in Known Issues section.
@badouralix
Copy link
Collaborator

badouralix commented Jul 25, 2017

Fun fact: here is my working config:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun  8 2017 20:53:45)
Included patches: 1-628
Compiled by Arch Linux
Huge version without GUI.  Features included (+) or not (-):
+python/dyn      +python3/dyn

So, I'm not totally sure it is entirely related to +python vs +python/dyn

@ranguli
Copy link
Contributor

ranguli commented Jul 25, 2017

@badouralix Funky. So both of your Vim installations support +python/dyn, the only differences in your environments being macOS vs Arch and consequently macOS's supplied version of Vim vs a compiled one.

But if they both support +python/dyn, that shouldn't matter.. right? I might need to remove this as a known issue depending on what we find out.

@stale
Copy link

stale bot commented Oct 23, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
Thanks for contributing to vim-llp!

@stale stale bot added the stale label Oct 23, 2017
@stale stale bot closed this as completed Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants