Skip to content

ioc binary hard-codes python3.6 #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
igalic opened this issue Jan 14, 2020 · 2 comments
Open

ioc binary hard-codes python3.6 #46

igalic opened this issue Jan 14, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@igalic
Copy link
Collaborator

igalic commented Jan 14, 2020

when installing ioc on FreeBSD-12.1-RELEASE, trying to run it will yield:

ioc: Command not found.
root@freebsd:~ # /usr/local/bin/ioc
/usr/local/bin/ioc: Command not found.
root@freebsd:~ # 

the reason is that the python version is hard-coded, and with 12.1 it's wrong:

#!/usr/local/bin/python3.6
import sys
import os.path

LIB_DIR = "/usr/local/lib/ioc"

if LIB_DIR.startswith("/") is False:
    __dirname = os.path.dirname(os.path.abspath(__file__))
    LIB_DIR = "/usr/local/lib/ioc"

# etc…
@karpa13a
Copy link

@igalic even if you change head to use python3.7 - binary package stays unusable:

root@host01:~ # ioc help
Traceback (most recent call last):
  File "/usr/local/bin/ioc", line 13, in <module>
    from ioc_cli import cli
  File "/usr/local/lib/ioc/ioc_cli/__init__.py", line 43, in <module>
    from libioc.Datasets import Datasets
  File "/usr/local/lib/python3.7/site-packages/libioc/Datasets.py", line 31, in <module>
    import libioc.helpers
  File "/usr/local/lib/python3.7/site-packages/libioc/helpers.py", line 37, in <module>
    import jail as libjail
ModuleNotFoundError: No module named 'jail'

or package rebuild is needed?

@gronke
Copy link
Member

gronke commented Mar 10, 2020

Will repackage all those dependencies with dynamic Python versions.

@gronke gronke added the bug Something isn't working label Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants