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

Conversion of normalised data to JSON failure #138

Open
madwort opened this issue May 20, 2022 · 0 comments
Open

Conversion of normalised data to JSON failure #138

madwort opened this issue May 20, 2022 · 0 comments

Comments

@madwort
Copy link
Contributor

madwort commented May 20, 2022

this error was received by email:

Traceback (most recent call last):
  File "./manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/var/www/eutrialstracker_live/euctr-tracker-code/euctr/euctr/management/commands/update_trials_json.py", line 403, in handle
    all_sponsors = make_sponsors_json(trials_and_sponsors)
  File "/var/www/eutrialstracker_live/euctr-tracker-code/euctr/euctr/management/commands/update_trials_json.py", line 271, in make_sponsors_json
    sponsor_counts = sponsor_grouped.apply(do_counts)
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/pandas/core/groupby.py", line 694, in apply
    return self._python_apply_general(f)
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/pandas/core/groupby.py", line 698, in _python_apply_general
    self.axis)
  File "/var/www/eutrialstracker_live/venv/lib/python3.6/site-packages/pandas/core/groupby.py", line 1611, in apply
    res = f(group)
  File "/var/www/eutrialstracker_live/euctr-tracker-code/euctr/euctr/management/commands/update_trials_json.py", line 257, in do_counts
    parent_names.remove(sponsor_name)
ValueError: list.remove(x): x not in list
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

1 participant