"Error installing dependencies from requirements.txt'" when installing Virtual Analyst
search cancel

"Error installing dependencies from requirements.txt'" when installing Virtual Analyst

book

Article ID: 390874

calendar_today

Updated On: 03-14-2025

Products

CA Service Management - Service Desk Manager CA Service Desk Manager ServiceDesk

Issue/Introduction

When trying to update the virtual Analyst installation after installed the roll-up 17.4.3.0, after extracting the \WIN_17_4_3_0\filestore\Virtual_Analyst\casmBot.zip to the target server folder C:\casm-bot and running the installer.bat, the following error appear:

Running setup.py install for fire ... error
error: subprocess-exited-with-error

* Running setup.py install for fire did not run successfully
| exit code: 1
+-> [44 lines of output]
    C:\casm-bot\botenv\lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
      warnings.warn(msg)
    running install
  C:\casm-bot\botenv\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.
            
            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!
      self.initialize_options()
    Traceback (most recent call last):
      File "<string>", line 2 in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\<userid>\AppData\Local\Temp\pip-install-<######>\fire_<######>\setup.py", line 46, in <module>
        setup(
      File "C:\casm-bot\botenv\lib\site-packages\setuptools\__init__.py", line 117, in setup  
        return distutils.core.setup(**attrs)
      File "C:\casm-bot\botenv\lib\site-packages\setuptools\_distutils\core.py", line 183, in setup
        return run_commands(dist)
      File "C:\casm-bot\botenv\lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands
      ...


    TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
    [end of output]
    
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

x Encountered error while trying to install package.
+-> fire

note: This is an issue with the pacage mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip is available: 23.0.1 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Error installing dependencies from requirements.txt

C:\casm-bot>

 

Environment

Service Desk 17.4 RU3

Cause

The problem is with the frequent changes that have been done specific to python nested dependencies.

Resolution

These are the steps that needs to be performed to make it work.

  1. After unzipping casm-bot, open the requirements.txt file and copy below dependent components at end of the requirements.txt file.
       setuptools==69.2.0
       pip==23.0.1
       wheel==0.43.0

  2. Save the file and run the installer.bat.

Additional Information

The updated casm-bot zip is available in 17.4 RU4