Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Libsumo for python

Hi,

 

I’ve compiled v1.0.1 and when trying to use the python libsumo I get this error:

 

$ python

Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import libsumo

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Program Files (x86)\DLR\sumo-1.0.1\tools\libsumo\__init__.py", line 15, in <module>

    from .libsumo import *  # noqa

  File "C:\Program Files (x86)\DLR\sumo-1.0.1\tools\libsumo\libsumo.py", line 5896, in <module>

    vehicle.addLegacy = wrapAsClassMethod(_vehicle.VehicleDomain.addLegacy, vehicle)

AttributeError: type object 'VehicleDomain' has no attribute 'addLegacy'

 

I’ve added both the tools and tools/libsumo in the PYTHONPATH env variable.

 

However, if I run it from the tools folder, libsumo loads correctly.

 

Am I missing something?

 

Thanks,

 

               Didac

 

Immense Simulations Limited

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

Twitterhttps://s3.amazonaws.com/htmlsig-assets/spacer.gifFacebookhttps://s3.amazonaws.com/htmlsig-assets/spacer.gifLinkedInhttps://s3.amazonaws.com/htmlsig-assets/spacer.gif

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

Didac Busquets / Co-Founder and Chief Scientist
didac.busquets@xxxxxxxxxx / +44 (0) 7919 076 981

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

Immense Simulations Limited
Studio J2, Witan Studios, 279 Witan Gate, Central Milton Keynes, MK9 1EJ
w3w: ourselves.depend.backpack
www.immense.ai

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

https://s3.amazonaws.com/htmlsig-assets/spacer.gif

This e-mail including any attachments is intended for the addressee only. It is private, confidential and may be covered by legal professional privilege. If you have received this message in error please notify us immediately and remove it from your system. Immense Simulations Limited is a Company registered in England and Wales No. 09782647. Registered offices: International House, 24 Holborn Viaduct, City Of London, London, England, EC1A 2BN.

 


Back to the top