Larry
I just reinstalled and verified that the current code and the eugene
cached dataset on the web work fine, so let's see what might be
different with your setup compared to mine.
I installed the code from the subversion repository:
https://trondheim.cs.washington.edu/svn/opus and installed it in
c:\workspace
I downloaded and unzipped the eugene cache directory from here:
http://www.urbansim.org/opus/releases/eugene_data/eugene_1980_baseyear_cache_version_4_1.zip
and after unzipping into a standard urbansim_cache directory I have this
structure: C:\urbansim_cache\eugene_1980_baseyear_cache\1980
When I run the script run_simulation_on_baseyear_cache.py in
C:\workspace\eugene\tools, it creates a gui prompting for the input and
output cache directories, both of which I fill in with:
C:\urbansim_cache\eugene_1980_baseyear_cache
The default configuration was already eugene.configs.baseline, and I
left this alone.
And it works fine for me.
It seems that you used different directories, and I cannot verify
whether you pointed to the correct ones when running the simulation ...
so perhaps you should use the approach as above.
Paul
larryhc_at_mail.utexas.edu wrote:
> Hello all,
>
> I'm having a bit of trouble running an initial installation of Opus with the
> Eugene data set provided on the web page (I re-downloaded everything yesterday,
> and am using "start_run.py -c eugene.config.baseline" directly [after changing
> the relevant values in eugene.config.baseline.py to point to my relevant data
> and cache directories] - I found this program easier to use than using the GUI,
> but rest assured that this problem happens with the GUI version as well)
>
> The relevant error line I am receiving is
>
> File "C:\Opus\opus_core\store\old\attribute_cache.py", line 98, in
> _determine_field_names
> raise OpusError('Attribute cache "%s" does not contain dataset table "%s" at
> or before time %s' %
> opus_core.opus_error.OpusError: 'Attribute cache "None" does not contain dataset
> table "building_types" at or before time 1981'
>
> The full string of opus messages can be found below the ----- at the end of this
> message.
>
> The data directory building_types does indeed exist, in both the original data
> directory, and the copy that the program sent (properly) to the cache
> directory. My best guess is that somehow the initialization of the
> AttributeCache in localresources does not pick up the directory name stored in
> the baseline file; hence the phrase "None" in the above error message.
>
> Any help you can provide would be greatly appreciated.
>
> Thanks in advance
>
> Larry H-C
>
> ------------
> Running opus_core.store.utils.cache_flt_data.CacheFltData: started on Wed Jul 11
> 18:05:09 2007
> Caching files from 'c:\opus\eugene\data'
> to 'c:\opus\eugene\cache\2007_07_11_18_05'.
> Running opus_core.store.utils.cache_flt_data.CacheFltData: completed.....5.4 sec
> Logging to file: c:\opus\eugene\cache\2007_07_11_18_05\run_multiprocess.log
> Running simulation for years 1981 thru 1982
> Running UrbanSim for year 1981 in new process: started on Wed Jul 11 18:05:14
> 2007
> Closing log file: c:\opus\eugene\cache\2007_07_11_18_05\run_multiprocess.log
> Invoking: C:\PYTHON24\PYTHON.EXE
> C:\Opus\urbansim\model_coordinators\model_system.py -r
> c:\windows\temp\tmpkfqulv\resources.pickle
> Cache Directory set to: c:\opus\eugene\cache\2007_07_11_18_05
> Start simulation run: started on Wed Jul 11 18:05:15 2007
> random seed = (209652397,)
> Starting simulation for year 1981: started on Wed Jul 11 18:05:15 2007
> Closing log file:
> c:\opus\eugene\cache\2007_07_11_18_05\run_multiprocess.log
> Logging to file: c:\opus\eugene\cache\2007_07_11_18_05\year_1981_log.txt
> Simulate year 1981: started on Wed Jul 11 18:05:15 2007....0.0 sec,
> total 13908 KB, up 4 KB
> Closing log file:
> c:\opus\eugene\cache\2007_07_11_18_05\year_1981_log.txt
> Starting simulation for year 1981: completed...0.0 sec, total 13908 KB, up 4
> KB
> Start simulation run: completed................0.1 sec, total 13908 KB, up 12 KB
> Closing log file: c:\opus\eugene\cache\2007_07_11_18_05\run_multiprocess.log
> C:\PYTHON24\lib\site-packages\scipy\misc\__init__.py:25: DeprecationWarning:
> ScipyTest is now called NumpyTest; please update your code
> test = ScipyTest().test
> C:\PYTHON24\lib\site-packages\scipy\ndimage\__init__.py:40: DeprecationWarning:
> ScipyTest is now called NumpyTest; please update your code
> test = ScipyTest().test
> Traceback (most recent call last):
> File "C:\Opus\urbansim\model_coordinators\model_system.py", line 572, in ?
> s.run(resources)
> File "C:\Opus\urbansim\model_coordinators\model_system.py", line 137, in run
>
> write_datasets_to_cache_at_end_of_year=write_datasets_to_cache_at_end_of_year)
> File "C:\Opus\urbansim\model_coordinators\model_system.py", line 266, in
> _run_year
> SessionConfiguration().get_dataset_from_pool(dataset_name)
> File "C:\Opus\opus_core\session_configuration.py", line 113, in
> get_dataset_from_pool
> return self.get_dataset_pool().get_dataset(dataset_name)
> File "C:\Opus\opus_core\dataset_pool.py", line 56, in get_dataset
> self._load_new_dataset(dataset_name, dataset_arguments)
> File "C:\Opus\opus_core\dataset_pool.py", line 124, in _load_new_dataset
> arguments=arguments)
> File "C:\Opus\opus_core\dataset_factory.py", line 38, in get_dataset
> arguments=arguments, debug=debug)
> File "C:\Opus\opus_core\class_factory.py", line 49, in get_class
> return eval(class_name + "(**arguments)")
> File "<string>", line 0, in ?
> File "C:\Opus\urbansim\datasets\vacant_land_and_building_type_dataset.py",
> line 23, in __init__
> BuildingTypeDataset.__init__(self, *args, **kwargs)
> File "C:\Opus\urbansim\datasets\dataset.py", line 58, in __init__
> CoreDataset.__init__(self,resources = resources)
> File "C:\Opus\opus_core\datasets\dataset.py", line 89, in __init__
> debug = debug)
> File "C:\Opus\opus_core\datasets\abstract_dataset.py", line 131, in __init__
> attribute_type=AttributeType.PRIMARY)
> File "C:\Opus\opus_core\datasets\dataset.py", line 292, in
> determine_stored_attribute_names
> return local_resources["in_storage"].determine_field_names(local_resources,
> attribute_type)
> File "C:\Opus\opus_core\store\old\attribute_cache.py", line 78, in
> determine_field_names
> attributes=attributes)
> File "C:\Opus\opus_core\store\old\attribute_cache.py", line 98, in
> _determine_field_names
> raise OpusError('Attribute cache "%s" does not contain dataset table "%s" at
> or before time %s' %
> opus_core.opus_error.OpusError: 'Attribute cache "None" does not contain dataset
> table "building_types" at or before time 1981'
> Running UrbanSim for year 1981 in new process: completed.................0.9 sec
> C:\PYTHON24\lib\site-packages\scipy\misc\__init__.py:25: DeprecationWarning:
> ScipyTest is now called NumpyTest; please update your code
> test = ScipyTest().test
> C:\PYTHON24\lib\site-packages\scipy\ndimage\__init__.py:40: DeprecationWarning:
> ScipyTest is now called NumpyTest; please update your code
> test = ScipyTest().test
> Traceback (most recent call last):
> File "\opus\opus_core\tools\start_run.py", line 75, in ?
> run_manager.run_run(config)
> File "C:\Opus\opus_core\services\run_server\run_manager.py", line 160, in
> run_run
> model_system.run_multiprocess(run_resources)
> File "C:\Opus\urbansim\model_coordinators\model_system.py", line 479, in
> run_multiprocess
> ForkProcess().fork_new_process(
> File "C:\Opus\opus_core\fork_process.py", line 53, in fork_new_process
> raise StandardError("Problem with %s" % module_name)
> StandardError: Problem with urbansim.model_coordinators.model_system
>
>
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
>
Received on Wed Jul 11 2007 - 16:46:27 PDT
This archive was generated by hypermail 2.2.0 : Wed Jul 11 2007 - 16:46:29 PDT