hickory icon indicating copy to clipboard operation
hickory copied to clipboard

Cannot run Hickory on specific ubuntu variants.

Open koaning opened this issue 4 years ago • 1 comments

I am trying to run hickory on PopOS (which I think is a variant of ubuntu) and it seems to complain about the folder structure.

hickory schedule scripts/grab_issues.py --every 2hours
Traceback (most recent call last):
  File "/home/vincent/Development/gh-dashb/venv/bin/hickory", line 8, in <module>
    sys.exit(main())
  File "/home/vincent/Development/gh-dashb/venv/lib/python3.7/site-packages/hickory/cli.py", line 83, in main
    schedule(args.script, args.every)
  File "/home/vincent/Development/gh-dashb/venv/lib/python3.7/site-packages/hickory/cli.py", line 35, in schedule
    schedule_systemd(label, working_directory, which_python, script, every)
  File "/home/vincent/Development/gh-dashb/venv/lib/python3.7/site-packages/hickory/systemd.py", line 74, in schedule_systemd
    dump_string(service, f"{SYSTEMD_PATH}/{label}.service")
  File "/home/vincent/Development/gh-dashb/venv/lib/python3.7/site-packages/hickory/systemd.py", line 66, in dump_string
    with open(path, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/vincent/.config/systemd/user/hickory.3825d9.scripts/grab_issues.py.service'

I can confirm that the /home/vincent/.config/systemd/user path exists, so maybe this is a file that didn't get created?

Environment:

> pip freeze | grep hickory
hickory==1.0.0

> cat /etc/os-release
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

koaning avatar Feb 13 '21 11:02 koaning

Do you still have that issue @koaning? Which pop!_OS version are you running?

Schokobecher avatar Oct 07 '21 20:10 Schokobecher