For some reason your code did not make use of the SUMO_HOME variable
replace the code behind the try statement.

Instead of

try:
    sys.path.append(os.path.join(os.path.dirname(
        __file__), '..', '..', '..', '..', "tools"))  # tutorial in tests
    sys.path.append(os.path.join(os.environ.get("sumo-0.28.0", os.path.join(
        os.path.dirname(__file__), "..", "..", "..")), "tools"))  #
tutorial in docs
    from sumolib import checkBinary

use

try:
     sys.path.append(os.path.join(os.environ.get("SUMO_HOME"), "tools"))


2017-03-24 19:16 GMT+01:00 Vaibhav Rungta <[email protected]>:
>
>> Hello Folks,
>> This is odd because this was not happening until yesterday and I haven't
>> made any changes to the code or environment variables.
>>
>> The code has a section-
>> except ImportError:
>> sys.exit("some message which prompts and requests user to declare
>> SUMO_HOME
>> in root directory"))
>>
>> I declared the environment variable, again and logged-off the computer
>> couple of times. (screenshot attached). I am not able to figure the reason
>> for which I am getting this error because I haven't made any changes to
>> environment variable which can result in such an error.
>>
>> Kindly suggest.
>>
>> Regards,
>> Vaibhav Rungta
>> Graduate Student - Industrial and Systems Engineering
>> Graduate Assistant - Toyota Production Systems Lab
>> Research Assistant - University Transport Research Center
>> 585-754-7133
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>
>>
>
>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to