paulbricman / dual-obsidian-client

A skilled virtual assistant for Obsidian.
https://paulbricman.com/thoughtware/dual
Mozilla Public License 2.0
242 stars 7 forks source link

Server fail to start #56

Closed mastercyb closed 3 years ago

mastercyb commented 3 years ago

Console output:

/Users/user/.obsidian/plugins/dual/skeleton/(master)> python3 server.py --path ~/.obsidian/plugins/Dual/skeleton/
Loading skeleton...
Cache file doesn't exist, creating a new one...
Traceback (most recent call last):
  File "server.py", line 12, in <module>
    cw = ConversationalWrapper(args.path)
  File "/Users/user/.obsidian/plugins/Dual/skeleton/conversational_wrapper.py", line 7, in __init__
    self.core = Core(root_dir)
  File "/Users/user/.obsidian/plugins/Dual/skeleton/core.py", line 25, in __init__
    self.create_cache()
  File "/Users/user/.obsidian/plugins/Dual/skeleton/core.py", line 141, in create_cache
    pickle.dump(self.entries, open(self.cache_address, 'wb'))
FileNotFoundError: [Errno 2] No such file or directory: '/Users/user/.obsidian/plugins/Dual/skeleton/.obsidian/plugins/Dual/skeleton/cache.pickle'
Doom666 commented 3 years ago

Pretty much the same here

paulbricman commented 3 years ago

Closing this because the new Rust backend makes issues related to the old Python backend irrelevant.

stanrails commented 3 years ago

Do I need to redo the install process to use the new Rust backend? I'm confused about how to fix the error with the new backend

paulbricman commented 3 years ago

@stanrails now that the binaries for dual-server get built automatically (see release on the dual-server repo), I'm now working on configuring the obsidian plugin to fetch and run the server itself, so the install process should eventually consist of getting the latest plugin and clicking somewhere. Note the plugin will know how to run the binaries as child processes in a certain way, which might not correspond to simply running the binaries in a terminal. Next thing after the one-click plugin install: docs!