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

Fix for import bug #39

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Fix for import bug #39

wants to merge 8 commits into from

Conversation

cccs-jh
Copy link

@cccs-jh cccs-jh commented Nov 17, 2021

Fixes #40
Importing vipermonkey fails because Context is not defined in vipermonkey.api.
I assume it used to be imported by one of the wildcard imports, this bug doesn't happen with the upstream decalage2 ViperMonkey.
importing Context explicitly from vba_context fixes the issue.
Using "import vba_context" rather than "from vba_context import Context" to avoid namespace overlap.

@gdesmar
Copy link

gdesmar commented Jul 22, 2022

Hello @kirk-sayre-work,

Are there any plans to merge pull requests for python2 before the python3 version is finished?

I am asking because it is starting to become a little complicated to manage the multiple forks. Yesterday I fixed one situation where multiple ADODB.Stream would be used, and their content not cleared between re-opening. It is now in PR#43 along with other fixes by the PR opener. I could make my own PR for my fix only, but he needed it anyway. I am now debating doing a PR in @cccs-jh's fork to have both the api.py fix plus the Stream fix, and maybe check what the random and int_convert fixes are doing from PR#43.

I see that you are doing plenty of work to move this project toward python3, and this is excellent news. I don't know how close you are to being done, and I understand that modifying the python2 code base while trying to migrate it may cause headaches, so I would be happy to know what your plans are.

If pull requests for python2 are planned to be accepted it would really help if this PR and PR#43 could be merged so that all the fixes could be in one place. If python2 is essentially fixed until the python3 version is finished I can do pull requests on a fork and avoid the trouble of maintaining multiple pull requests with the same fixes on different versions.

I believe the fixes to the ADODB.Stream and other fixes in PR#43 would need to be applied to your python3/pyuno_elimination branches as well. Would having a PR into one of those branch make it easier to merge these PRs into the base master branch? I could also make changes in this PR if there is something keeping it from being merged. If the python2 version is fixed, would you be interested into having PR#43 merged into a python3 branch?

Now is a python datetime object that when converted to string is not
valid python. Changing to_python to use repr for non-string non-VBAObject
native python objects so that they can be evaluated correctly.
Adding "import datetime" to the boilerplate to support datetime literals
@cccs-kevin
Copy link

@kirk-sayre-work thoughts on this?

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 this pull request may close these issues.

Import vipermonkey fails
4 participants