Giter Site home page Giter Site logo

Comments (9)

klieret avatar klieret commented on June 8, 2024

Sorry for being late! I'll check this! Thanks a lot for opening this report :)

from ankipandas.

klieret avatar klieret commented on June 8, 2024

I can confirm that this is happening

from ankipandas.

klieret avatar klieret commented on June 8, 2024

This should be fixed as soon as I publish the new version!

from ankipandas.

klieret avatar klieret commented on June 8, 2024

Could you try updating your AnkiPandas installation and tell me if it works now?

Thanks again for also including a MWE. This really made it easier for me to come up with a fix.

from ankipandas.

klieret avatar klieret commented on June 8, 2024

@all-contributors please add @exc4l for bug

from ankipandas.

allcontributors avatar allcontributors commented on June 8, 2024

@klieret

I've put up a pull request to add @exc4l! 🎉

from ankipandas.

CalculusAce avatar CalculusAce commented on June 8, 2024

@klieret

I was trying to test out the fix to the issue with C-long that I found on Windows and discovered the fix for this issue may have created another issue.

In the pervious version, I was able to merge the notes tables into the card table after expanding the fields in the note table with fields as columns. In the current build, I am now unable to merge the field columns into the cards table, which is critical for an app I am developing. Here is the code I was using successfully in the previous version that no longer works in the current build.

collect = Collection()
cards = collect.cards
notes = collect.notes
notes.fields_as_columns(inplace=True)
field_cols = [col for col in notes.columns if 'nfld' in col]
cards.merge_notes(inplace=True,columns=field_cols+['nmodel','ntags','nid'])

I get the following error after upgrading to the latest version of ankipandas that you released this morning:

"ankidf.py", line 459, in merge_notes
    setattr(ret, md, getattr(self, md))

AttributeError: 'NoneType' object has no attribute 'col'

from ankipandas.

klieret avatar klieret commented on June 8, 2024

Thanks a lot @CalculusAce , this is my bad! I'll try to look into this ASAP. Let's continue the discussion here: #51

from ankipandas.

klieret avatar klieret commented on June 8, 2024

I pushed a new release which should solve this.

from ankipandas.

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.