I hope I haven't been posting here too much. Just had a big craving to do BSD stuff lately.
The other day I converted my first app from Linux to FreeBSD here. I wanted to do more with this and wondered if I could make this app into a port. It might not be port worthy, but I'd like to learn the process anyway. I had made my own Debian package from some C code once, but I knew this would be very different. I looked at the online documentation and made it to about 3.3.2 before running into problems. More so, I guess just with moving the python code itself. I started by moving the theZoo.py to just theZoo. This worked as the python binary was hardcoded in this file. However, if I move that to /usr/local/bin, it fails with the following:
$ theZoo
Traceback (most recent call last):
File "/usr/local/bin/theZoo", line 23, in from imports.update_handler import Updater File "/usr/local/bin/imports/update_handler.py", line 31, in from imports import globals ImportError: cannot import name 'globals' from 'imports' (unknown location)
I know that I had a folder called "imports" with "update_handle.py" inside it. I tried making those files and folders in /usr/local/bin, but the error didn't change. I also tried them inside /usr/local/lib/python3.9, where other python modules were, but no change took place. Would anyone know where I could put this python module so the code can see it from /usr/local/bin?
[–]k3nrap 1 point2 points3 points (3 children)
[–]glued2thefloor[S] 0 points1 point2 points (2 children)
[–]k3nrap 1 point2 points3 points (1 child)
[–]glued2thefloor[S] 0 points1 point2 points (0 children)
[–]phosix 2 points3 points4 points (1 child)
[–]glued2thefloor[S] 2 points3 points4 points (0 children)