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

Module 'gd' has no 'memory' member #30

Closed
CattoDev opened this issue Aug 24, 2020 · 4 comments
Closed

Module 'gd' has no 'memory' member #30

CattoDev opened this issue Aug 24, 2020 · 4 comments

Comments

@CattoDev
Copy link

I was trying to run some example code from the repository, but it seems like gd doesn't contain the "memory" member? Please tell me how to fix this, I'm not that new to python but I still don't know how to fix this issue.

Also "Module 'gd.api' has no 'LevelType' member"

image

@nekitdev
Copy link
Owner

Hello! This is due to gd.memory being a part of unstable API, which has not yet been released to PyPI.
You can install latest development version via:

python -m pip install --upgrade https://github.com/NeKitDS/gd.py/archive/master.zip

I am currently working on the rewrite that should stabilize everything. Expect 1.0.0 release on PyPI in foreseeable future.

@CattoDev
Copy link
Author

Ok I have installed it, but now im getting this error :/

image

@nekitdev
Copy link
Owner

Interesting. PyLint does not seem to understand what happens under the hood. Memory is an empty class that returns other dedicated classes, like WindowsMemory. Your linter thinks there are no such members, while in fact they are there.

@CattoDev
Copy link
Author

Oh so that was the problem... Well anyways turns out it works, thanks a lot!

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