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

Does not work with 'phply' package installed #2

Open
FriedrichFroebel opened this issue Dec 5, 2018 · 0 comments
Open

Does not work with 'phply' package installed #2

FriedrichFroebel opened this issue Dec 5, 2018 · 0 comments

Comments

@FriedrichFroebel
Copy link

FriedrichFroebel commented Dec 5, 2018

If the normal phply package is installed on the system, sphinxcontrib_phpautodoc fails because the normal package is used then instead of the modified one bundled with sphinxcontrib_phpautodoc:

AttributeError: Can't get attribute 'Comment' on <module 'phply.phpast' from '/usr/local/lib/python3.6/dist-packages/phply/phpast.py'>

The easiest fix seems to be renaming the directory/package for the bundled phply package. Additionally, I already opened a feature request for comment support in the parser of phply (see viraptor/phply#41) which probably would be the cleaner solution - then sphinxcontrib_phpautodoc would not have to bundle a patched copy anymore.

An alternative would be to use relative imports, but I could not get these to work. It always resulted in an import error.

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

1 participant