Comments (9)
Sorry for being late! I'll check this! Thanks a lot for opening this report :)
from ankipandas.
I can confirm that this is happening
from ankipandas.
This should be fixed as soon as I publish the new version!
from ankipandas.
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.
@all-contributors please add @exc4l for bug
from ankipandas.
I've put up a pull request to add @exc4l! 🎉
from ankipandas.
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.
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.
I pushed a new release which should solve this.
from ankipandas.
Related Issues (20)
- How to get the history of reviews of a card/deck? HOT 3
- Document different tables and their content
- [request] need read only access to locked database HOT 5
- How to get the creation date of a card? HOT 2
- Accessing deck settings HOT 9
- Update doesn't work ? What is the correct way of updating single notes ? HOT 11
- Future warning about `Index.__and__`
- Harden interface by marking arguments as keyword-only
- Missing database indices HOT 5
- Columns in documentation HOT 3
- Thank you and similarity scanner I made with it. HOT 4
- Writing to collection breaks synchronization and editing in Ankidroid HOT 13
- is it possible to read an anki portable base? HOT 1
- Incompatibilities with pandas 2.0 HOT 1
- sub- and superdeck support HOT 6
- Problems when adding a note HOT 2
- "Ankipandas Conversion Issue: Erroneous Update Messages in Anki Database Export"
- API docs don't show up properly
- Support opening apkg files out of the box HOT 23
- Reading all notes from a deck HOT 7
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 ankipandas.