Hi,
I've been trying to load data without any luck on and off for a couple of 
weeks now.  I first tried loading shapefiles and hit a dead end with that, 
then tried Adam's shapefile to arches convertor, still no luck with that 
arches file, and so I thought I should test using an arches file that I 
figured was formatted correctly.  I took the file from Adam Cox's sample 
and tried loading that.  I'm still hitting the same error as when I was 
loading the other files.  It appears the python script is getting hung up 
on trying to identify the file type and how to handle it.  See command and 
error below, and thank you for any help on this.
Cat

(ENV) c:\ArchProject\hp_prc>python manage.py packages -o load_resources -s 
'C:\A
rchProject\hp_prc\data\bldg_points.arches'
operation: load_resources
package: hp_prc
loading: 'C:\ArchProject\hp_prc\data\bldg_points.arches'
Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_from_command_line(sys.argv)
  File 
"c:\ArchProject\ENV\lib\site-packages\django\core\management\__init__.py"
, line 399, in execute_from_command_line
    utility.execute()
  File 
"c:\ArchProject\ENV\lib\site-packages\django\core\management\__init__.py"
, line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"c:\ArchProject\ENV\lib\site-packages\django\core\management\base.py", li
ne 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File 
"c:\ArchProject\ENV\lib\site-packages\django\core\management\base.py", li
ne 285, in execute
    output = self.handle(*args, **options)
  File 
"c:\ArchProject\ENV\lib\site-packages\arches\management\commands\packages
.py", line 91, in handle
    self.load_resources(package_name, options['source'])
  File 
"c:\ArchProject\ENV\lib\site-packages\arches\management\commands\packages
.py", line 307, in load_resources
    load(data_source)
  File "c:\ArchProject\hp_prc\hp_prc\setup.py", line 15, in load_resources
    setup.load_resources(external_file)
  File "c:\ArchProject\ENV\lib\site-packages\arches_hip\setup.py", line 82, 
in l
oad_resources
    rl.load(external_file)
  File 
"c:\ArchProject\ENV\lib\site-packages\arches\app\utils\data_management\re
sources\importer.py", line 59, in load
    resources = reader.load_file(source)
UnboundLocalError: local variable 'reader' referenced before assignment

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to