Closed m040601 closed 8 months ago
That issue (#30) was only fixed on main
and is not yet released. Can you try out installing directly from git? If you're on Arch, it shouldn't be too hard to add a patch to the papis-zotero PKGBUILD or use pip (shouldn't install globally though!).
For the rest of your points: they all seem very reasonable and should be fixed in some way! Can you make separate issues for each one so they don't get lost? Just copy pasting the text from your 1 to 5 points would be great.
Hi, thanks for this very useful project! I want to leave here a nix flake I've made in case somebody using the pypi release is facing these sqlite import errors. I tested in nixpkgs-unstable and I am able to import my full Zotero library without errors.
{
description = "Build papis-zotero";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
papis-zotero-custom = pkgs.python3Packages.buildPythonPackage rec {
version = "0.1.2";
pname = "papis-zotero";
src = pkgs.fetchFromGitHub {
owner = "papis";
repo = "papis-zotero";
rev = "20a50ebbcb115fdddcbc922b4535f5c6c9f0e7b0";
sha256 = "0242mz5dvv2nj91lsc81779y8ad1xs698crgv654wws96ll8knn9";
};
doCheck = false;
propagatedBuildInputs = [
pkgs.papis
pkgs.python3Packages.papis
];
meta = {
homepage = "https://github.com/papis/papis-zotero";
description = "Zotero support for papis";
};
};
in
{
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = [
papis-zotero-custom
];
};
};
}
Then enter the environment with nix develop .#devShell.x86_64-linux
. Cheers.
Seems to be solved with 20a50ebbcb115fdddcbc922b4535f5c6c9f0e7b0
Seems to be solved with 20a50eb
Nice. I havent tested this my self yet, since I will be waiting for the release version.
I dont want to mess my system with "pip" or patches.
PS: I also tried installing "papis-zotero" with "pipx"
Not "pip", "pipx". It is a tool I like very much, because it leaves your system clean and isolated from messing around.
But it is more catering to "apps", not so much "libs". So unfortunately it doesnt work with "papis-zotero".
$ pipx install papis-zotero
No apps associated with package papis-zotero. ...
If you are attempting to install a library, pipx should not be
used. Consider using pip or a similar tool instead.
Thanks everyone for testing! I'll go ahead and close this, since the fix seems to work and it will be in the next release.
$ python --version
I'm on Archlinux
Papis installed from https://aur.archlinux.org/packages/papis
Sorry to open a new issue for this.
I've read and understood, https://github.com/papis/papis-zotero/issues/30 and https://github.com/papis/papis-zotero/pull/31 but it was closed and I'm having exactly the same problem,
Yeap, just like me. Actually the huge majority of items only have year as date. Very different kind of records from a mix of different providers. So it can't be that there is something wrong with the formatting, extraneus characters or file corruption. They were all added and display perfectly well in Zotero.
I open Zotero. I have 13 items for testing on Zotero. Check everything displays nicely. No errors, no messages. I close Zotero.
Then,
First 2 Items, Item 0 and 1 went OK
those 2 were Wikipedia pages, and the date is displayed in Zotero for item "0" as,
It ends up in the GURTUKXA folder in the papis library folder. The info.yaml contains,
There is no "date" field in that info.yaml folder.
All the others fail. They all have date as just a year. Two log entries for each item. First an [ERROR] log entry than a [INFO] log entry.
That item "2" was displayed in Zotero,
This will end up in a folder "CEKTKX3E" in my papis folder library. Inside there will be an info.yaml file with this field,
There is no "year" field.
continuing, the same error thing will happen for the other items,
Yeap. Pretty much the same error.
Let's turn on the --log DEBUG option.
It's always the same error message, "line 63, 568, 349 this and that" ...
For each item two log entries, first an [ERROR] entry then a [DEBUG] entry,
So they do end up physically as files and folders in my papis folder library. Except that they dont show up in papis
There are also some things that maybe for the developer that works with the code everyday are "obvious" or "easy", but that I find unintuitive and confusing as an end user.
This is not intended as a negative comment or critic. I very much appreciate all the work and effort being put in this tool. It might be a personal nitpick ... but here is my feedback as an end user,
Why start at "0" and not at "1" ? The first will be "0" and the last one will be "12". Instead of the first being "1" and the last being "13". I know, I am trying to import 13 items and follow up the procedure. This just makes it so unconfortable to read the debug log.
When not using the --log DEBUG option, if there is an error, you get, for each item, first a "negative" [ERROR] log entry than a "positive" [INFO] log entry.
This is also confusing. Makes mentally parsing the log difficult. At the beginning I wasnt even sure what happened. I asked my self, what does this mean ? Did things went OK or not ? Was it a "sucess" or not ? Oh ... , there is the word "ERROR" there, so things must have stopped, and nothing must have happened. But. It did. Even with the error the items were "kind of imported".
This is confusing.
Were talking about importing data here. It doesnt matter what the end result is. Either succes or failure. Or something in between.
The important thing is that the end user should be 100% sure of what happened. Be 100% sure of what is the current state of the data is on the system.
Assuming he has backups. He should decide and the be able to rollback, delete everything, start over again.
I would expect something like this sequence of log entries
or in case something "bad" happens
I find it unintuitive that if you are running the import again, and you already have those items as folders/files on your system and they are probably being written over there is no "WARNIG" or "CHOICE" about this. I'm not sure what to recommend. Maybe something like
and when using that "force",
Sometimes the imported item ends up with "date", sometimes with the "year". Also find this confusing.
I also find this totally not user friendly. At least a message stdout or stderr should be produced.
Already reported in, https://github.com/papis/papis-zotero/issues/32