Comments (4)
Based on this code block store.__sa_bound = True
is almost certainly your problem. The sqlalchemy bindings aren't getting set up because you're telling it that's already been done when it hasn't yet. If you remove that it'll hopefully work properly.
In general in Python you should treat attributes that begin with underscores as "for internal use", and never change them from outside the defining class/module without knowing exactly how they work (and having a good reason). You can read more about this in PEP 8.
from cassiopeia.
Ah, right. I had tried toggling that in order to get around
/home/devin/.virtualenvs/lol/bin/python /home/devin/PycharmProjects/lol/store_test.py
Traceback (most recent call last):
File "/home/devin/PycharmProjects/lol/store_test.py", line 12, in <module>
password="password")
File "/home/devin/.virtualenvs/lol/lib/python3.4/site-packages/cassiopeia/type/api/store.py", line 211, in __init__
_sa_bind_typesystem()
File "/home/devin/.virtualenvs/lol/lib/python3.4/site-packages/cassiopeia/type/api/store.py", line 301, in _sa_bind_typesystem
cassiopeia.type.dto.championmastery._sa_bind_all()
File "/home/devin/.virtualenvs/lol/lib/python3.4/site-packages/cassiopeia/type/dto/championmastery.py", line 56, in _sa_bind_all
_sa_bind_champion_mastery()
File "/home/devin/.virtualenvs/lol/lib/python3.4/site-packages/cassiopeia/type/dto/championmastery.py", line 42, in _sa_bind_champion_mastery
class ChampionMastery(ChampionMastery, cassiopeia.type.dto.common.BaseDB):
File "/home/devin/.virtualenvs/lol/lib/python3.4/site-packages/cassiopeia/type/dto/championmastery.py", line 52, in ChampionMastery
playerId = sqlalchemy.Column(sqlalchemy.sqlalchemy.Integer, primary_key=True)
AttributeError: 'module' object has no attribute 'sqlalchemy'
Process finished with exit code 1
Is there something specific required to have it import sqlalchemy?
from cassiopeia.
Ah, you have a version of the code w/a typo in it (the sqlalchemy.sqlalchemy.Integer
). This has been fixed and if you pull the latest version off this repo it should work. The change will also be in the next release.
from cassiopeia.
Thank you so much. One problem down, a lot of learning to go :)
I really appreciate the quick response.
from cassiopeia.
Related Issues (20)
- Unknown patch name 12.12 HOT 1
- 'Match' object has no attribute '_lazy__timeline' HOT 1
- keeps throwing 403 error while my api key works elsewhere HOT 2
- Get champions owned (summoner) HOT 1
- AttributeError: 'Match' object has no attribute '_lazy__timeline'
- AttributeError: 'Match' object has no attribute '_lazy__timeline' HOT 1
- Add SEA region for OC1 HOT 1
- TypeError: '<' not supported between instances of 'Position' and 'Position' HOT 1
- IndexError: list index out of range when requesting the position too early in the game HOT 4
- Lane information
- Type-hinting of Match.participants is wrong? HOT 3
- How to get positions more than once every minute?
- Method __str__ of class SummonerSpell doesn't work as intended HOT 8
- CumulativeTimeline object doesn't have all the info available in the API HOT 2
- Missing platforms in Region Enum HOT 1
- Add `getByRiotId`, Add riot ID to summoner data HOT 10
- New release HOT 1
- New queue types need to be added to cassiopeia HOT 1
- Need update HOT 1
- Spectator-V4 API not available since Apr 8, 2024 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassiopeia.