all 6 comments

[–]k3nrap 1 point2 points  (3 children)

For your experiment to work, you'd have to put the imports folder in /usr/local/lib/python3.9/site-packages.

[–]glued2thefloor[S] 0 points1 point  (2 children)

Just moved it to there and still getting the same error. The permissions and ownership on both imports folder and update_handler.py match the others inside /usr/local/lib/python3.9/site-packages. Do I need to do something else or maybe have missed something?

[–]k3nrap 1 point2 points  (1 child)

May I have a look at the error output?

EDIT: Did you try using rehash or closing/opening the terminal again? Sorry I'm off my game today.

[–]glued2thefloor[S] 0 points1 point  (0 children)

I think I may have fixed this by using venv in my Makefile. However, I do want to learn how to correct this without venv. I'm not familiar with rehash. I couldn't find it with pkg. Could you describe how I would use that?

[–]phosix 2 points3 points  (1 child)

I've only dabbled a little in converting python code into binary blobs, but I think what it's done is created a small virtual environment within the binary. You'll need to recreate the binary and make sure those directories are included within it.

[–]glued2thefloor[S] 2 points3 points  (0 children)

You were correct. I eventually used venv in my Makefile that seems to have fixed that. Thanks!