Skip to content
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

Installing tixi3 in python environment within GitLab pipeline #229

Open
danieljuschus opened this issue May 29, 2024 · 1 comment
Open

Comments

@danieljuschus
Copy link

I need to run code which requires tixi in a GitLab pipeline. I would rather not use a conda environment in that pipeline. I'm installing tixi in the pipeline as described here for Ubuntu: https://software.opensuse.org/download.html?project=science:dlr&package=tixi3

However, the python env inside the container cannot find the tixi library. I have gone through a lot of iteration with ChatGPT, but nothing has worked so far. Its first suggestion was to run pip install tixi3 after having installed through apt-get. Next, it told me to build it manually within the pipeline with cmake, and then to run python3 make_tixi_python.py. None of this has worked so far. How can I achieve this?

Note that #179 would be an alternative solution to this.

@rainman110
Copy link
Collaborator

If you are on ubuntu, please use the following steps.

  1. Set up the tixi repo as described in https://software.opensuse.org/download.html?project=science:dlr&package=tixi3#manualUbuntu
  2. Install the package libtixi3-dev via: sudo apt install libtixi3-dev
  3. Copy the python package:
    cd /usr/lib/python3/dist-packages/
    sudo mkdir tixi3
    sudo touch __init__.py
    sudo cp /usr/share/tixi3/python/tixi3wrapper.py .
    

That should be it. Now you should be able to import tixi via import tixi3.tixi3wrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants