Giter Site home page Giter Site logo

Comments (4)

robrua avatar robrua commented on September 15, 2024

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.

dantedog avatar dantedog commented on September 15, 2024

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.

robrua avatar robrua commented on September 15, 2024

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.

dantedog avatar dantedog commented on September 15, 2024

Thank you so much. One problem down, a lot of learning to go :)

I really appreciate the quick response.

from cassiopeia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.