Thank you, Adam. That indeed was my mistake. 

Darcy W. Christ
Digital Generalist
@1000camels

To send me a secure message: http://bit.ly/SecureMsg


> On 25 Feb 2016, at 11:40 AM, Adam Cox <[email protected]> wrote:
> 
> Hi Darcy, it's probably just because you've got the wrong command.  For 
> authority files (which is what I believe you are trying to load), you should 
> use the load_concept_scheme argument.  Here's the documentation on that: 
> http://arches-hip.readthedocs.org/en/latest/loading-data/#create-or-modify-an-authority-file
>  
> <http://arches-hip.readthedocs.org/en/latest/loading-data/#create-or-modify-an-authority-file>
> 
> Hopefully that will solve the issue.
> 
> On Wed, Feb 24, 2016 at 9:35 PM, Darcy Christ <[email protected] 
> <mailto:[email protected]>> wrote:
> 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 [email protected] 
> <mailto:[email protected]>. To unsubscribe, send email to 
> [email protected] 
> <mailto:archesproject%[email protected]>. For more information, 
> visit https://groups.google.com/d/forum/archesproject?hl=en 
> <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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 

-- 
-- 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