[go: up one dir, main page]

New installation, `FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/cobib/version'`

Great package (and I think I'll like it more than pipas), however, after pip3 install cobib and running cobib init, I received the following error

❯ cobib
Traceback (most recent call last):
  File "$HOME/Library/Python/3.9/bin/cobib", line 8, in <module>
    sys.exit(main())
  File "$HOME/Library/Python/3.9/lib/python/site-packages/cobib/__main__.py", line 72, in main
    print_changelog(__version__, config.logging.version)
  File "$HOME/Library/Python/3.9/lib/python/site-packages/cobib/utils/logging.py", line 112, in print_changelog
    with open(RelPath(cached_version_path).path, "w", encoding="utf-8") as version_file:
FileNotFoundError: [Errno 2] No such file or directory: '$HOME/.cache/cobib/version'

As you maybe can see, I'm running on macOS with python 3.9.

After manually mkdir ~/.cache/cobib, everything worked however. So I'm guessing there is a small little bug in the installation script of cobib?

I saw that in the output of pip3 install cobib, it says Using legacy 'setup.py install' for bibtexparser, since package 'wheel' is not installed. so I pip3 uninstall cobib; pip3 install wheel; pip3 install cobib, but that didn't change anything.

Here's the output of pip3 install cobib

❯ pip3 install cobib
Defaulting to user installation because normal site-packages is not writeable
Collecting cobib
  Downloading cobib-3.5.0-py3-none-any.whl (125 kB)
     |████████████████████████████████| 125 kB 1.3 MB/s
Collecting pylatexenc
  Downloading pylatexenc-2.10.tar.gz (162 kB)
     |████████████████████████████████| 162 kB 6.7 MB/s
  Preparing metadata (setup.py) ... done
Collecting requests-oauthlib
  Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
     |████████████████████████████████| 128 kB 14.3 MB/s
Collecting bibtexparser
  Downloading bibtexparser-1.2.0.tar.gz (46 kB)
     |████████████████████████████████| 46 kB 8.2 MB/s
  Preparing metadata (setup.py) ... done
Collecting requests
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 8.6 MB/s
Collecting ruamel.yaml
  Downloading ruamel.yaml-0.17.21-py3-none-any.whl (109 kB)
     |████████████████████████████████| 109 kB 15.4 MB/s
Collecting soupsieve>1.2
  Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Collecting pyparsing>=2.0.3
  Downloading pyparsing-3.0.8-py3-none-any.whl (98 kB)
     |████████████████████████████████| 98 kB 12.8 MB/s
Collecting future>=0.16.0
  Downloading future-0.18.2.tar.gz (829 kB)
     |████████████████████████████████| 829 kB 17.2 MB/s
  Preparing metadata (setup.py) ... done
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 56.5 MB/s
Collecting idna<4,>=2.5
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 23.3 MB/s
Collecting certifi>=2017.4.17
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     |████████████████████████████████| 149 kB 38.3 MB/s
Collecting charset-normalizer~=2.0.0
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.2.0-py3-none-any.whl (151 kB)
     |████████████████████████████████| 151 kB 50.4 MB/s
Collecting ruamel.yaml.clib>=0.2.6
  Downloading ruamel.yaml.clib-0.2.6-cp39-cp39-macosx_10_9_x86_64.whl (149 kB)
     |████████████████████████████████| 149 kB 40.5 MB/s
Using legacy 'setup.py install' for bibtexparser, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pylatexenc, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Installing collected packages: urllib3, idna, charset-normalizer, certifi, soupsieve, ruamel.yaml.clib, requests, pyparsing, oauthlib, future, ruamel.yaml, requests-oauthlib, pylatexenc, bibtexparser, beautifulsoup4, cobib
    Running setup.py install for future ... done
    Running setup.py install for pylatexenc ... done
    Running setup.py install for bibtexparser ... done
Successfully installed beautifulsoup4-4.11.1 bibtexparser-1.2.0 certifi-2021.10.8 charset-normalizer-2.0.12 cobib-3.5.0 future-0.18.2 idna-3.3 oauthlib-3.2.0 pylatexenc-2.10 pyparsing-3.0.8 requests-2.27.1 requests-oauthlib-1.3.1 ruamel.yaml-0.17.21 ruamel.yaml.clib-0.2.6 soupsieve-2.3.2.post1 urllib3-1.26.9