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

Running into this error with the setup dashboard #102

Open
nonprofittechy opened this issue Sep 22, 2023 · 0 comments
Open

Running into this error with the setup dashboard #102

nonprofittechy opened this issue Sep 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nonprofittechy
Copy link
Member

TypeError: install_pip_package() missing 1 required positional argument: 'limitation': ['  File "/usr/share/docassemble/local3.10/lib/python3.10/site-packages/docassemble/webapp/worker_tasks.py", line 1089, in background_action\n    interview.assemble(user_dict, interview_status)\n', '  File "/usr/share/docassemble/local3.10/lib/python3.10/site-packages/docassemble/base/parse.py", line 8799, in assemble\n    raise the_error\n', '  File "/usr/share/docassemble/local3.10/lib/python3.10/site-packages/docassemble/base/parse.py", line 8586, in assemble\n    question_result = self.askfor(missingVariable, user_dict, old_user_dict, interview_status, seeking=interview_status.seeking, follow_mc=follow_mc, seeking_question=seeking_question)\n', '  File "/usr/share/docassemble/local3.10/lib/python3.10/site-packages/docassemble/base/parse.py", line 9294, in askfor\n    exec_with_trap(question, user_dict)\n', '  File "/usr/share/docassemble/local3.10/lib/python3.10/site-packages/docassemble/base/parse.py", line 9935, in exec_with_trap\n    exec(the_question.compute, the_dict)\n', '  File "<code block>", line 8, in <module>\n', '  File "/usr/share/docassemble/local3.10/lib/python3.10/site-packages/docassemble/ALDashboard/aldashboard.py", line 67, in install_from_pypi\n    return install_pip_package(packagename)\n']

Looks like this is a new required parameter.

    elif package.type == 'pip':
        if package.limitation is None:
            limit = ""
        else:
            limit = str(package.limitation)
        commands = ['pip', 'install']
        if disable_pip_cache:
            commands.append('--no-cache-dir')
        commands.extend(['--quiet', '--prefix=' + PACKAGE_DIRECTORY, '--src=' + temp_dir, '--upgrade', '--log-file=' + pip_log.name, package.name + limit])

Looks like limit is related to being able to install sub packages via pip.

@nonprofittechy nonprofittechy added the bug Something isn't working label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant