Comments (3)
I ran into this as well—it seems you can get around this by wrapping your supplied vault path in pathlib.Path
so that it isn't a raw string.
from obsidiantools.
Seeing the same issue when running vault.get_note_metadata
with the vault object.
Output exceeds the size limit. Open the full output data in a text editor
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-16-5147b4bd015c> in <module>
1 vault.connect()
----> 2 print(vault.get_note_metadata())
~/opt/miniconda3/envs/jupyter/lib/python3.9/site-packages/obsidiantools/api.py in get_note_metadata(self)
1154 .rename(columns={'file_exists': 'note_exists'})
1155 .rename_axis('note'))
-> 1156 df = (df.pipe(self._create_note_metadata_columns)
1157 .pipe(self._clean_up_note_metadata_dtypes)
1158 )
~/opt/miniconda3/envs/jupyter/lib/python3.9/site-packages/pandas/core/generic.py in pipe(self, func, *args, **kwargs)
5510 ... ) # doctest: +SKIP
5511 """
-> 5512 return com.pipe(self, func, *args, **kwargs)
5513
5514 # ----------------------------------------------------------------------
~/opt/miniconda3/envs/jupyter/lib/python3.9/site-packages/pandas/core/common.py in pipe(obj, func, *args, **kwargs)
495 return func(*args, **kwargs)
496 else:
--> 497 return func(obj, *args, **kwargs)
498
...
-> 1167 [self._dirpath / str(f)
1168 for f in df['rel_filepath'].tolist()],
1169 np.NaN)
TypeError: unsupported operand type(s) for /: 'str' and 'str'
I love the idea of getting a data frame back so thank you for thinking about that.
from obsidiantools.
@hursh-desai @macdrifter was this issue from the vault's dirpath not being a pathlib.Path object? (like with @daneah comment)
If that's the case, this wouldn't be a bug as the library is set up to use pathlib paths rather than strings for directory arguments (dirpath (pathlib Path)
in the docstring).
Pandas pipe functions are neat but maybe not as straightforward for debugging, so I might explore moving some logic away from those.
from obsidiantools.
Related Issues (20)
- Markdown parser cannot run on v0.8.0 (for one environment) HOT 2
- performance - file opens & reads HOT 6
- regex improvements (tags) HOT 2
- error on malformed frontmatter HOT 4
- Crash on _get_wikilinks_index HOT 1
- Text goes missing even though the HTML is OK (html2text parsing issues) HOT 2
- [FR] Options : choose to use file name / frontmatter title for graph HOT 20
- Incremental refresh HOT 3
- Tags in code blocks are taken HOT 3
- Reference to non-md files HOT 4
- Handle .md inside wikilinks to reflect Obsidian graph HOT 2
- ValueError: Length of values (...) does not match length of index (...)
- UnicodeDecodeError doesn't provide file details HOT 2
- Parse dataview metadata HOT 1
- Detecting tabs and returns
- [FR] support python3.8
- Handing of Self-Referencial Links like TOC
- Tags from frontmatter aren't read as tags
- Can't build an exe with pyinstaller
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 obsidiantools.