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

Import vipermonkey fails #40

Open
cccs-jh opened this issue Nov 17, 2021 · 0 comments · May be fixed by #39
Open

Import vipermonkey fails #40

cccs-jh opened this issue Nov 17, 2021 · 0 comments · May be fixed by #39

Comments

@cccs-jh
Copy link

cccs-jh commented Nov 17, 2021

Describe the bug
import vipermonkey gives an error in pypy

To Reproduce

$ pypy -m pip install --no-cache-dir -U https://github.com/kirk-sayre-work/ViperMonkey/archive/master.zip
$ pypy
Python 2.7.18 (a29ef73f9b32, Nov 09 2020, 18:42:06)
[PyPy 7.3.3 with GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> import vipermonkey
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "$HOME/.local/lib/pypy2.7/site-packages/vipermonkey/__init__.py", line 3, in <module>
    from vipermonkey.api import *
  File "$HOME/.local/lib/pypy2.7/site-packages/vipermonkey/api.py", line 97, in <module>
    orig_Context = Context
NameError: global name 'Context' is not defined

Expected behavior
Library should import without error

@cccs-jh cccs-jh linked a pull request Nov 17, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant