Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing TagLab #131

Open
hopeeliwilson opened this issue Feb 15, 2024 · 2 comments
Open

Problem installing TagLab #131

hopeeliwilson opened this issue Feb 15, 2024 · 2 comments

Comments

@hopeeliwilson
Copy link

Hello, I have completed all of the steps to download TagLab. I have tried the final step in the process. Run "python.exe taglab.py" on Windows PowerShell. Then, I get this error message. Any help would be appreciated. Thanks for your help!

TagLab 2023.5.17
Traceback (most recent call last):
File "Q:\Hope\Taglab\TagLab-2023.5.17\taglab.py", line 4709, in
tool = TagLab()
File "Q:\Hope\Taglab\TagLab-2023.5.17\taglab.py", line 436, in init
self.project.loadDictionary(os.path.join(self.taglab_dir, self.default_dictionary))
File "Q:\Hope\Taglab\TagLab-2023.5.17\source\Project.py", line 277, in loadDictionary
self.dictionary_name = dictionary['Name']
KeyError: 'Name'

@Jordan-Pierce
Copy link

It looks like it's trying to load in a JSON file representing the default label dictionary, which is in the TagLab folder dictionaries, called scripps.json.

Based on your error, it looks like your directory setup is causing the error. Running the following command has expectations:

python TagLab.py

Such that TagLab.py has access to the folder dictionaries, but your paths look slightly different:

Q:\Hope\Taglab\TagLab-2023.5.17\taglab.py

You should look at changing how you structure you folders; maybe have each TagLab version you use be it's own folder, which contains TagLab.py and dictionaries:

TagLab_version_A\
   TagLab.py
   dictionaries
   .... (everything else)

TagLab_version_B\
   TagLab.py
   dictionaries
   .... (everything else)

TagLab_version_C\
   TagLab.py
   dictionaries
   .... (everything else)

Instead of doing this:

TagLab\

   TagLab_version_A\
   TagLab.py
   dictionaries
   .... (everything else)

   TagLab_version_B\
   TagLab.py
   dictionaries
   .... (everything else)

   TagLab_version_C\
   TagLab.py
   dictionaries
   .... (everything else)

That may be the issue, but it's hard to tell. If that's not the issue, please report back!

@hopeeliwilson
Copy link
Author

Hi Jordan,

Thanks for the quick response. I changed by directory and it is still giving me the same error message.

TagLab 2023.5.17
Traceback (most recent call last):
File "Q:\Hope\TagLab_version_A\taglab.py", line 4709, in
tool = TagLab()
File "Q:\Hope\TagLab_version_A\taglab.py", line 436, in init
self.project.loadDictionary(os.path.join(self.taglab_dir, self.default_dictionary))
File "Q:\Hope\TagLab_version_A\source\Project.py", line 277, in loadDictionary
self.dictionary_name = dictionary['Name']
KeyError: 'Name'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants