First time here? Checkout the FAQ!
x
0 votes
ago by (140 points)

Dear all, 

I've installed all components and in particular have

pkuegler@DESKTOP-PQF7A0H:~$ openCARP -buildinfo

*** GIT tag:            v18.1
*** GIT hash:           6eaa147d18b69a6037d05a90b841e23301048a59
*** GIT repo:           https://gitlab-ci-token:glcbt-64_W3Tng2n5yJP-sAsajXYz@git.opencarp.org/openCARP/openCARP.git
*** dependency commits:

and

pkuegler@DESKTOP-PQF7A0H:~$ python3 -c "import carputils; print(carputils)"
<module 'carputils' (namespace) from ['/home/pkuegler/carputils']>

Hoever, I  now have troubles with the first tutorial Basic single cell EP | openCARP

Calling ./run.py --help

I obtain the error

pkuegler@DESKTOP-PQF7A0H:~/experiments/tutorials/01_EP_single_cell/01_basic_bench$ ./run.py --help
/home/pkuegler/experiments/tutorials/01_EP_single_cell/01_basic_bench/./run.py:3: SyntaxWarning: invalid escape sequence '\%'
  """
Traceback (most recent call last):
  File "/home/pkuegler/experiments/tutorials/01_EP_single_cell/01_basic_bench/./run.py", line 269, in <module>
    from carputils import settings
ModuleNotFoundError: No module named 'carputils'

==========================

Maybe that error is related to a failure of running

cusettings $HOME/.config/carputils/settings.yaml due to cusettings: command not found


Best, Philipp

1 Answer

0 votes
ago by (1.5k points)

Hey Philipp,

which installation path for carputils did you choose? Via pip or the developer route?

If you chose the developer route, you have to add the following to your .bashrc:

export PATH=$PATH:$HOME/openCARP/external/carputils/bin export PYTHONPATH=$PYTHONPATH:$HOME/openCARP/external/carputils

cusettings should than be found, since it is located in carputils/bin. That is mainly important to tell carputils scripts which openCARP executable to use and other useful things for the installation.

The PYTHONPATH is what's needed for python to import carputils as a module.

If your problem should persist, pleases give more information about which installation path you followed and your python version.

Best,

Tobias

Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...