Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

openmodelica +python install broken on OSX?

openmodelica +python install broken on OSX?

I think the openmodelica +python port is broken. I execute:

> sudo port install openmodelica +python

and eventually I get


--->  Computing dependencies for openmodelica
--->  Staging openmodelica into destroot
Error: org.macports.destroot for port openmodelica returned: command execution failed
Please see the log file for port openmodelica for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openmodelica failed

-------------------------------------
The end of the log file reads:


:info:destroot (time /usr/bin/make -C PythonInterface -f Makefile)
:info:destroot make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_14071/PythonInterface'
:info:destroot omniidl -bpython -Wbglobal=_OMCIDL -Wbpackage=OMPythonIDL ..//Compiler/runtime/omc_communication.idl
:info:destroot omniidl: Could not import back-end 'python'
:info:destroot omniidl: Maybe you need to use the -p option?
:info:destroot omniidl: (The error was 'No module named python')
:info:destroot make[1]: *** [OMPythonIDL/omc_communication_idl.py] Error 1
:info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_14071/PythonInterface'
:info:destroot
:info:destroot real    0m0.474s
:info:destroot user    0m0.070s
:info:destroot sys    0m0.030s
:info:destroot make: *** [install-python] Error 2
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_14071'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/openmodelica_14071" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/work/destroot
:info:destroot Exit code: 2
:error:destroot org.macports.destroot for port openmodelica returned: command execution failed
:debug:destroot Error code: CHILDSTATUS 36007 2
:debug:destroot Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"$procedure $targetname"
:info:destroot Warning: targets not executed for openmodelica: org.macports.activate org.macports.destroot org.macports.install
:notice:destroot Please see the log file for port openmodelica for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica/openmodelica/main.log

Re: openmodelica +python install broken on OSX?

NB that manually executing:

> cd /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_14280/PythonInterface
> sudo omniidl -p/opt/local/lib/python2.7/site-packages/omniidl_be -bpython -Wbglobal=_OMCIDL -Wbpackage=OMPythonIDL ..//Compiler/runtime/omc_communication.idl
> sudo port install openmodelica-devel +python

appears to allow the install to proceed. However, adding /opt/local/lib/python2.7/site-packages/omniidl_be to my PYTHONPATH in ~/.profile does not work.

There are 0 guests and 0 other users also viewing this topic
You are here: