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

Error: NotImplementedError("This backend doesn't support absolute paths.") #2258

Closed
KipSigei opened this issue Jun 10, 2022 · 0 comments · Fixed by #2257
Closed

Error: NotImplementedError("This backend doesn't support absolute paths.") #2258

KipSigei opened this issue Jun 10, 2022 · 0 comments · Fixed by #2257
Labels

Comments

@KipSigei
Copy link
Contributor

KipSigei commented Jun 10, 2022

Environmental Information

Production, Stage

  • Onadata version:
    v3.0.3

Problem description

The following exception is being thrown when uploading a form with external choices

File "/srv/onadata/./onadata/apps/viewer/models/data_dictionary.py", line 246, in set_object_permissions
    f = sheet_to_csv(instance.xls, "external_choices")
  File "/srv/onadata/./onadata/apps/viewer/models/data_dictionary.py", line 76, in sheet_to_csv
    workbook = openpyxl.load_workbook(xls_content.path)
  File "/usr/local/lib/python3.9/dist-packages/django/db/models/fields/files.py", line 59, in path
    return self.storage.path(self.name)
  File "/usr/local/lib/python3.9/dist-packages/django/core/files/storage.py", line 128, in path
    raise NotImplementedError("This backend doesn't support absolute paths.")

Expected behavior

  • The external choices form should upload successfully

Steps to reproduce the behavior

  • Try uploading any xlsx form that has external choices

Additional Information

Logs, related issues, weird / out of place occurrences, local settings, possible approach to solving this...

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

Successfully merging a pull request may close this issue.

1 participant