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

How to import VxAPI as a package? #51

Open
barismutan opened this issue Dec 2, 2022 · 3 comments
Open

How to import VxAPI as a package? #51

barismutan opened this issue Dec 2, 2022 · 3 comments

Comments

@barismutan
Copy link

Hello again, previously I have been using the API with subprocess.run and the relevant parameters. But now I am trying to import it as a package and create an object of the ApiCaller class to make API calls. I have tried adding init.py files in all the directories and whatnot; however I am either getting AttributeError: module 'VxAPI' has no attribute 'api'. What would you recoomend me to do?

@barismutan
Copy link
Author

either AttributeError: module 'VxAPI' has no attribute 'api' or ImportError: No package named 'exceptions' *

@kkochanski
Copy link
Collaborator

Howdy! Unfortunately I'm not that into that language to be able to provide an answer. I can only assume that to achieve that, that project should be pushed to pip and become importable. Or maybe there's some other way to make it importable.

As mentioned, I won't be able to help, though when you will know how to do that, please let me know. In that case you can try to push Pull-Request with changes or I will.

@barismutan
Copy link
Author

Thank you for your response. Sure, I kind of got something working (it is not that stable as of now) but I will let you know if I get it to fully work.

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

2 participants