Hi Valentin,

it depends where /usr/bin/python points to.

If /usr/bin/python is a link to python3, libsumo is installed in the python3.x.y directories.

You have to run cmake ../.. and the make commands again.

Regards, Harald

Am 05.02.20 um 22:43 schrieb Valentin Düe:
Hey Harald,
Thank you for the answer! Does this mean that libsumo is only usable with python 2.7 and not with 3.6?

Harald Schaefer <fechs...@gmail.com <mailto:fechs...@gmail.com>> schrieb am Mi., 5. Feb. 2020, 14:39:

    Hi Valentin,

    when you build sumo and install it under Linux , you should see at
    the end lines like

    ...

    creating build/lib.linux-x86_64-2.7/libsumo
    copying
    /dosd/src/opensource/Sumo/sumo-git-co/sumo/tools/libsumo/libsumo.py
    -> build/lib.linux-x86_64-2.7/libsumo
    copying
    /dosd/src/opensource/Sumo/sumo-git-co/sumo/tools/libsumo/__init__.py
    -> build/lib.linux-x86_64-2.7/libsumo
    copying
    /dosd/src/opensource/Sumo/sumo-git-co/sumo/tools/libsumo/liblibsumoc.so
    -> build/lib.linux-x86_64-2.7/libsumo
    copying
    /dosd/src/opensource/Sumo/sumo-git-co/sumo/tools/libsumo/libsumoc.so
    -> build/lib.linux-x86_64-2.7/libsumo
    copying
    /dosd/src/opensource/Sumo/sumo-git-co/sumo/tools/libsumo/_libsumo.so
    -> build/lib.linux-x86_64-2.7/libsumo
    running install_lib
    copying build/lib.linux-x86_64-2.7/libsumo/libsumoc.so ->
    /usr/local/lib/python2.7/dist-packages/libsumo
    copying build/lib.linux-x86_64-2.7/libsumo/_libsumo.so ->
    /usr/local/lib/python2.7/dist-packages/libsumo
    ...

    This means libsumo is now in the packages for python2.7.

    You can use libsumo now.

    Regards, Harald

    Am 05.02.20 um 11:51 schrieb Valentin Düe:
    Hi Michael,

    thanks for your answer. That clarified it a little. I installed
    sumo and built the setup-libsumo.py file.
    in https://sumo.dlr.de/docs/Libsumo.html it sais, that I get a
    libsumo.py and a_libsumo.so but I can not find those files.
    What do I need to do?

    Thanks in advance!
    BR,
    Valentin

    Am Mi., 22. Jan. 2020 um 22:14 Uhr schrieb Michael Behrisch
    <o...@behrisch.de <mailto:o...@behrisch.de>>:

        Hi Valentin,
        when using libsumo you need to build sumo yourself using the
        linux build
        instructions:
        https://sumo.dlr.de/docs/Installing/Linux_Build.html. I
        also adapted the docs to make this explicit.

        Best regards,
        Michael

        Am 22.01.20 um 15:52 schrieb Valentin Düe:
        > Hey guys,
        >
        > I was looking into libsumo and apart from the libsumo page
        from sumo
        > (https://sumo.dlr.de/docs/Libsumo.html) I did not find any
        information.
        > My current goal is, to just install libsumo and make it
        run. If I
        > currently try to import libsumo, I get following error:
        >
        > /usr/local/lib/python3.6/dist-packages/libsumo/__init__.py
        in <module>
        >      13 # @version $Id$
        >      14
        > ---> 15 from .libsumo import *  # noqa
        >
        > ModuleNotFoundError: No module named 'libsumo.libsumo'
        >
        > where should .libsumo be defined?
        >
        > If I look into the link from above, there is just explained
        "under Linux it is probably just a matter of calling cmake and
        > make", which is not very descriptive to me.
        >
        > I appreciate your help.
        >
        > Best regards,
        >
        > Valentin
        >
        >
        > _______________________________________________
        > sumo-user mailing list
        > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
        > To change your delivery options, retrieve your password, or
        unsubscribe from this list, visit
        > https://www.eclipse.org/mailman/listinfo/sumo-user
        >


        _______________________________________________
        sumo-user mailing list
        sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
        To change your delivery options, retrieve your password, or
        unsubscribe from this list, visit
        https://www.eclipse.org/mailman/listinfo/sumo-user


    _______________________________________________
    sumo-user mailing list
    sumo-user@eclipse.org  <mailto:sumo-user@eclipse.org>
    To change your delivery options, retrieve your password, or unsubscribe 
from this list, visit
    https://www.eclipse.org/mailman/listinfo/sumo-user
    _______________________________________________
    sumo-user mailing list
    sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
    To change your delivery options, retrieve your password, or
    unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to