Python API install problems

Here is the command I'm issuing to install the API in Windows. Note the addition of the --trusted-host directives which are necessary behind our corp. firewall.

C:\windows\system32>python -m pip install PureCloudPlatformClientV2 --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

.
.
.
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_search_result_topic_bu_schedule_search_result_notification.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_bu_management_unit_schedule_summary.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_bu_schedule_generation_result_summary.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_bu_schedule_metadata.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_bu_schedule_notification.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_bu_short_term_forecast_reference.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_management_unit.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_user_reference.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_schedule_topic_wfm_versioned_entity_metadata.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_bu_forecast_modification.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_bu_short_term_forecast.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_bu_short_term_forecast_notification.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_forecast_source_day_pointer.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_modification_interval_offset_value.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_user_reference.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_copy_complete_topic_wfm_versioned_entity_metadata.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_generate_progress_topic_bu_forecast_modification.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_generate_progress_topic_bu_short_term_forecast.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_generate_progress_topic_forecast_source_day_pointer.py -> build\lib\PureCloudPlatformClientV2\models
    copying PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_generate_progress_topic_generate_bu_short_term_forecast_progress_notification.py -> build\lib\PureCloudPlatformClientV2\models
    error: could not create 'build\lib\PureCloudPlatformClientV2\models\wfm_bu_short_term_forecast_generate_progress_topic_generate_bu_short_term_forecast_progress_notification.py': No such file or directory
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\E354999\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u 
-c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\E354999\\AppData\\Local\\Temp\\pip-install-ea_esx_a\\purecloudplatformclientv2_81c90554c215421fa603712f4852dd06\\setup.py'"'"'; 
__file__='"'"'C:\\Users\\E354999\\AppData\\Local\\Temp\\pip-install-ea_esx_a\\purecloudplatformclientv2_81c90554c215421fa603712f4852dd06\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) 
if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' 
install --record 'C:\Users\E354999\AppData\Local\Temp\pip-record-0r9vop7x\install-record.txt' --single-version-externally-managed --user --prefix= --compile 
--install-headers 'C:\Users\E354999\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\PureCloudPlatformClientV2' 
Check the logs for full command output.

Note the error seems to refer to a missing file. What do I need to do to get the API installed on Windows.

Thanks in advance

Brian Myers
Telecomm DB developer for 1800Flowers

Hello,

I don't have a windows environment so I can't say for sure. But your problem looks similar to this one - due to path limit on windows. The proposed resolution in this post might help.

Regards,

That was it! Thanks Jerome.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.