Skip to content

cant run in windows #142

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

Closed
golam71 opened this issue Nov 13, 2021 · 3 comments
Closed

cant run in windows #142

golam71 opened this issue Nov 13, 2021 · 3 comments

Comments

@golam71
Copy link

golam71 commented Nov 13, 2021

it causes a error in startup

C:\Users\pro>pyvim
Traceback (most recent call last):
  File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 2798, in get_entry_map
    ep_map = self._ep_map
  File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 2756, in __getattr__
    raise AttributeError(attr)
AttributeError: _ep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python37\Scripts\pyvim.exe\__main__.py", line 9, in <module>
  File "c:\python37\lib\site-packages\pyvim\entry_points\run_pyvim.py", line 34, in run
    editor = Editor()
  File "c:\python37\lib\site-packages\pyvim\editor.py", line 80, in __init__
    self.styles = generate_built_in_styles()
  File "c:\python37\lib\site-packages\pyvim\style.py", line 37, in generate_built_in_styles
    return dict((name, get_editor_style_by_name(name)) for name in get_all_styles())
  File "c:\python37\lib\site-packages\pyvim\style.py", line 37, in <genexpr>
    return dict((name, get_editor_style_by_name(name)) for name in get_all_styles())
  File "c:\python37\lib\site-packages\pygments\styles\__init__.py", line 88, in get_all_styles
    for name, _ in find_plugin_styles():
  File "c:\python37\lib\site-packages\pygments\plugin.py", line 63, in find_plugin_styles
    for entrypoint in iter_entry_points(STYLE_ENTRY_POINT):
  File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 656, in <genexpr>
    for entry in dist.get_entry_map(group).values()
  File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 2801, in get_entry_map
    self._get_metadata('entry_points.txt'), self
  File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 2499, in parse_map
    raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups

@jonathanslenders
Copy link
Member

I'm not sure what went wrong here. It's supposed to run fine on Windows.
(But it's some time ago that I tried running it on Windows.)

@clach04
Copy link

clach04 commented Mar 26, 2023

@golam71 I'm late to the party here but I can confirm this works for me under Windows with:

  • Python 3.10.4 64-bit
  • Windows 10
  • PyVim 3.0.3 and prompt_toolkit 3.0.38

I integrated this into my encrypted notes viewer/editor/search tool clach04/puren_tonbo#34

@golam71
Copy link
Author

golam71 commented Mar 26, 2023

I suppose it was because of python 3.7

@golam71 golam71 closed this as completed Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants