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

Issue Setting up a cache #75

Open
dsambrano opened this issue Nov 5, 2021 · 10 comments
Open

Issue Setting up a cache #75

dsambrano opened this issue Nov 5, 2021 · 10 comments

Comments

@dsambrano
Copy link

dsambrano commented Nov 5, 2021

The API works great!!! Unfortunately while setting up caching, I consistently get this error:

File "C:\Users\{USER}\anaconda3\envs\apps\lib\site-packages\beckett\clients.py", line 194, in __init__
    super(BaseClient, self).__init__(*args, **kwargs)
TypeError: object.__init__() takes exactly one argument (the instance to initialize) 

I am running python: 3.8.12 on a windows 10 machine, with Pokepy version 0.4.

Another small issue is for whatever reason everytime I get a return from the client it is in a list instead of the pokepy resource class (as shown in the documentation). Any ideas?

@Kronopt
Copy link
Member

Kronopt commented Nov 5, 2021

Hey @dsambrano,

latest version of pokepy is 0.6.2. Try using the latest version and see if your issues are addressed

@dsambrano
Copy link
Author

dsambrano commented Nov 6, 2021

Thanks you the advice. Unfortunately, I get a Resolution Error when trying to pip install that specific version (or anything about .0.6 for that matter) via pip install pokepy==0.6.2

Namely because the beckett 0.8 dependency requires verions 2.10.0 of requests and pokepy (0.6.2) requires version 2.21 of requests. I have the most updated version of pip and I believe am using the most recent version of python the module supports (3.8.12) but could be wrong about that.

ERROR: Cannot install beckett==0.8.0 and pokepy==0.6.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    pokepy 0.6.2 depends on requests==2.21.*
    beckett 0.8.0 depends on requests==2.10.0

@Kronopt
Copy link
Member

Kronopt commented Nov 6, 2021

Damn... this wasn't a problem some versions of pip ago...
Well, I guess pokepy is broken until I can manage to deprecate beckett...

You could checkout pokebase

@Naramsim
Copy link
Member

Naramsim commented Nov 6, 2021

Maybe @Kronopt you could just submit a PR over at beckett updating the requirements.

@Kronopt
Copy link
Member

Kronopt commented Nov 8, 2021

I could, but It would probably just go unmerged.
Phalt has already mentioned that he is no longer working on beckett, so I'd rather not propose any new changes

@Naramsim
Copy link
Member

Naramsim commented Nov 9, 2021

One could fork it, update the deps and push a new package. I can do it, or you can do it (if you feel maintaining the new package).

@Kronopt
Copy link
Member

Kronopt commented Nov 9, 2021

I don't feel like maintaining that new package as I'm already working on another one to replace it.
Feel free to do it if you want to, though

@GunnerStone
Copy link

Did this ever get fixed? Still running into same issue

@Kronopt
Copy link
Member

Kronopt commented Apr 2, 2022

Not yet

@Glowing0v3rlord
Copy link

Has this been fixed yet?

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

5 participants