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 when using requirements.txt #635

Open
kv9898 opened this issue Feb 10, 2025 · 0 comments
Open

Error when using requirements.txt #635

kv9898 opened this issue Feb 10, 2025 · 0 comments
Assignees

Comments

@kv9898
Copy link

kv9898 commented Feb 10, 2025

I got the following error when deploying with requirements.txt, which does not appear without requirements.txt:

PS D:\OneDrive\Desktop\belbin> rsconnect deploy shiny "D:\OneDrive\Desktop\belbin"  --python "D:\OneDrive\Desktop\belbin\.venv\Scripts\python.exe"
Traceback (most recent call last):
  File "D:\OneDrive\Desktop\belbin\.venv\Lib\site-packages\rsconnect\main.py", line 116, in wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "D:\OneDrive\Desktop\belbin\.venv\Lib\site-packages\click\decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\OneDrive\Desktop\belbin\.venv\Lib\site-packages\rsconnect\main.py", line 1655, in deploy_app
    environment = create_python_environment(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\OneDrive\Desktop\belbin\.venv\Lib\site-packages\rsconnect\bundle.py", line 2261, in create_python_environment
    _, environment = get_python_env_info(module_file, python, force_generate, override_python_version)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\OneDrive\Desktop\belbin\.venv\Lib\site-packages\rsconnect\bundle.py", line 1750, in get_python_env_info
    environment = inspect_environment(python, dirname(file_name), force_generate=force_generate)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\OneDrive\Desktop\belbin\.venv\Lib\site-packages\rsconnect\bundle.py", line 1728, in inspect_environment
    return MakeEnvironment(**json.loads(environment_json))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: MakeEnvironment() missing 7 required positional arguments: 'contents', 'filename', 'locale', 'package_manager', 'pip', 'python', and 'source'
Internal error: MakeEnvironment() missing 7 required positional arguments: 'contents', 'filename', 'locale', 'package_manager', 'pip', 'python', and 'source'

Note: I'm using uv for project management.
OS: Windows 11
rsconnect-python: 1.25.1

@tdstein tdstein self-assigned this Feb 11, 2025
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