Legacy Dev Forum Posts

 View Only

Sign Up

Python API install problems

  • 1.  Python API install problems

    Posted 06-05-2025 18:19

    Brian_Myers | 2021-07-08 22:57:06 UTC | #1

    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\wfmbuschedulesearchresulttopicbuschedulesearchresultnotification.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicbumanagementunitschedulesummary.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicbuschedulegenerationresultsummary.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicbuschedulemetadata.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicbuschedulenotification.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicbushorttermforecastreference.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicmanagementunit.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicuserreference.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbuscheduletopicwfmversionedentitymetadata.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicbuforecastmodification.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicbushorttermforecast.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicbushorttermforecastnotification.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicforecastsourcedaypointer.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicmodificationintervaloffsetvalue.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicuserreference.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastcopycompletetopicwfmversionedentitymetadata.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastgenerateprogresstopicbuforecastmodification.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastgenerateprogresstopicbushorttermforecast.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastgenerateprogresstopicforecastsourcedaypointer.py -> build\lib\PureCloudPlatformClientV2\models copying PureCloudPlatformClientV2\models\wfmbushorttermforecastgenerateprogresstopicgeneratebushorttermforecastprogressnotification.py -> build\lib\PureCloudPlatformClientV2\models error: could not create 'build\lib\PureCloudPlatformClientV2\models\wfmbushorttermforecastgenerateprogresstopicgeneratebushorttermforecastprogressnotification.py': No such file or directory


    ERROR: Command errored out with exit status 1: 'C:\Users\E354999\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\E354999\\AppData\\Local\\Temp\\pip-install-eaesxa\\purecloudplatformclientv281c90554c215421fa603712f4852dd06\\setup.py'"'"'; file='"'"'C:\\Users\\E354999\\AppData\\Local\\Temp\\pip-install-eaesxa\\purecloudplatformclientv281c90554c215421fa603712f4852dd06\\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.9qbz5n2kfra8p0\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


    Jerome.Saint-Marc | 2021-07-09 12:59:32 UTC | #2

    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,


    Brian_Myers | 2021-07-16 18:13:36 UTC | #3

    That was it! Thanks Jerome.


    system | 2021-08-16 18:13:38 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 11434