Re: [UrbanSim-Users] MySql configuration

From: Mark Kryvobokov <k_mark_at_ukr.net>
Date: Fri, 14 Sep 2007 12:32:37 +0300
('binary' encoding is not supported, stored as-is)

          Hi,
  
When we run simulation with the Eugene data, everything was OK. Then we started to change the Eugene baseyear dataset in order to transform it to the dataset for the city of Lyon. The intention is to change the Eugene dataset step by step. Thus, in Zones table we changed the travel time and added data for additional zones. In Gridcells table we remained only one gridcell for each zone (for the beginning). We remain only these gridcells in other tables. After running simulation for the same sequence of models as for Eugene data, the only problem is with { 'employment_location_choice_model' : { 'group_members' : '_all_' }} . When we run simulation without that model, it is OK. When we run simulation with that model, the problems are as follows:
  
  

    WARNING: weight array dosen't have enough non-zero counts, use sample with replacement
  

    Traceback (most recent call last):

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py", line 521, in ?

    s.run(resources)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py", line 132, in run

    resources=resources, flt_directory=flt_directory)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py", line 358, in run_year

    self.vardict[outputvar] = self.do_process(locals())

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py", line 424, in do_process

    return eval(ev)

    File "<string>", line 0, in ?

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\model.py", line 45, in logged_run_method

    results = run_method(*req_args, **opt_args)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\configurable.py", line 39, in config_run_method

    results = run_method(*req_args, **opt_args)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\agent_location_choice_model_member.py", line 44, in run

    agents_index=agents_index[new_agents_index], **kwargs)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\agent_location_choice_model.py", line 68, in run

    agents_index[unplaced], chunk_specification, data_objects, run_config, debuglevel)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\location_choice_model.py", line 123, in run

    debuglevel=debuglevel)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\choice_model.py", line 134, in run

    data_objects=data_objects)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\chunk_model.py", line 74, in run

    dataset, **kwargs)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\agent_location_choice_model.py", line 83, in run_chunk

    data_objects)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\location_choice_model.py", line 140, in run_chunk

    choices = ChoiceModel.run_chunk(self,agents_index, agent_set, specification, coefficients, data_objects)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\choice_model.py", line 147, in run_chunk

    index = self.get_choice_index(nchoices, agent_set, agents_index, agentsubset, data_objects)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\location_choice_model.py", line 283, in get_choice_index

    weight=self.weights, resources=self.run_config)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\configurable.py", line 39, in config_run_method

    results = run_method(*req_args, **opt_args)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\samplers\weighted_sampler.py", line 103, in run

    replace=replace, return_indices=True )

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\sampling_toolbox.py", line 273, in prob2dsample

    cum_prob = ncumsum(p_array)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\misc.py", line 401, in ncumsum

    raise ValueError, "The probability array must sum up to 1. It is " + \

    ValueError: The probability array must sum up to 1. It is -1.#IND

    C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.py:3: UserWarning: Module _mysql was already imported from C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.pyc, but c:\python24\lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg is being added to sys.path

    C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.py:3: UserWarning: Module MySQLdb was already imported from C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\MySQLdb\__init__.pyc, but c:\python24\lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg is being added to sys.path

    C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.py:3: UserWarning: Module opus_core was already imported from C:\MyNew\projects\OPUS\opus-4.0\opus_core\__init__.pyc, but c:\mynew\projects\opus\opus-4.0 is being added to sys.path

    Traceback (most recent call last):

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\tools\start_run.py", line 73, in ?

    run_manager.run_run(config)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\services\run_server\run_manager.py", line 162, in run_run

    model_system.run_multiprocess(run_resources)

                  File "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py", line 457, in run_multiprocess

    ForkProcess().fork_new_process(

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\fork_process.py", line 47, in fork_new_process

    raise StandardError("Problem with %s" % module_name)

    StandardError: Problem with urbansim.model_coordinators.model_system

    Traceback (most recent call last):

                  File "C:\MyNew\projects\OPUS\opus-4.0\eugene\tools\letsim_run.py", line 54, in ?

    ForkProcess().fork_new_process('opus_core.tools.start_run', resources=config)

                  File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\fork_process.py", line 47, in fork_new_process

    raise StandardError("Problem with %s" % module_name)

    StandardError: Problem with opus_core.tools.start_run
>From employment_sectors table we deleted those sector_id values, which are not used in our data in jobs table, we did the same for other tables (race_id for race_names etc.), but after running simulation we have the same errors. What is the reason of the problem?
  
Mark
Received on Fri Sep 14 2007 - 02:32:40 PDT

This archive was generated by hypermail 2.2.0 : Fri Sep 14 2007 - 02:32:42 PDT