I've created all my resource documents and when I try to import them, I am 
getting this error. Any idea how to debug this? Clearly there is something 
wrong in my environment.

(hkarches) [root@UMAG-VM hongkong]# python manage.py packages -o 
load_resources -s 
'/home/hkarches/hongkong/hongkong/source_data/concepts/authority_files/'

operation: load_resources

package: hongkong

loading: 
/home/hkarches/hongkong/hongkong/source_data/concepts/authority_files/

Traceback (most recent call last):

  File "manage.py", line 28, in <module>

    execute_from_command_line(sys.argv)

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 399, in execute_from_command_line

    utility.execute()

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 392, in execute

    self.fetch_command(subcommand).run_from_argv(self.argv)

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
line 242, in run_from_argv

    self.execute(*args, **options.__dict__)

  File 
"/home/hkarches/lib/python2.7/site-packages/django/core/management/base.py", 
line 285, in execute

    output = self.handle(*args, **options)

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 91, in handle

    self.load_resources(package_name, options['source'])

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/management/commands/packages.py",
 
line 307, in load_resources

    load(data_source) 

  File "/home/hkarches/hongkong/hongkong/setup.py", line 15, in 
load_resources

    setup.load_resources(external_file)

  File "/home/hkarches/lib/python2.7/site-packages/arches_hip/setup.py", 
line 82, in load_resources

    rl.load(external_file)

  File 
"/home/hkarches/lib/python2.7/site-packages/arches/app/utils/data_management/resources/importer.py",
 
line 59, in load

    resources = reader.load_file(source)

UnboundLocalError: local variable 'reader' referenced before assignment

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. 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 archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to