Git Product home page Git Product logo

applaud's Issues

Not able to install Applaud with pip3 in Xcode Cloud

Hi! I want to interact with App Store Connect from my Xcode Cloud builds, and wrote a script using Applaud to do so. I can't successfully get Applaud installed there, though. Here's what I have:

ci_scripts/ci_pre_xcodebuild.sh

#!/bin/zsh

# This script gets run automatically by Xcode Cloud before xcodebuild is invoked. It calls the Python script

export PATH="/Users/local/Library/Python/3.8/bin:$PATH"

echo "Installing Python dependencies"
pip3 install applaud --user
pip3 install requests --user

echo "Running Python script…"
./my_script.py

my_script.py

#!/usr/bin/env python3

import requests

from applaud.connection import Connection
from applaud.schemas.requests import *
from applaud.schemas.responses import AppScreenshotSetsResponse

When running pip3 install applaud --user I get these errors (full output further below):

ERROR: Could not find a version that satisfies the requirement applaud (from versions: none)
ERROR: No matching distribution found for applaud

Installing Requests works fine (pip3 install requests --user).

Full output

source /Volumes/Task/ci_build.env && source /Volumes/Task/ci_plan.env && cd /Volumes/workspace/repository/ci_scripts && bash /Volumes/workspace/repository/ci_scripts/ci_pre_xcodebuild.sh
Installing Python dependencies
ERROR: Could not find a version that satisfies the requirement applaud (from versions: none)
ERROR: No matching distribution found for applaud
WARNING: You are using pip version 20.2.3; however, version 22.0.4 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip' command.
Collecting requests
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting idna<4,>=2.5; python_version >= "3"
  Downloading idna-3.3-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Collecting charset-normalizer~=2.0.0; python_version >= "3"
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Installing collected packages: idna, urllib3, charset-normalizer, certifi, requests
Successfully installed certifi-2021.10.8 charset-normalizer-2.0.12 idna-3.3 requests-2.27.1 urllib3-1.26.8
WARNING: You are using pip version 20.2.3; however, version 22.0.4 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip' command.
Running Python script…
Traceback (most recent call last):
  File "./my_script.py", line 5, in <module>
    from applaud.connection import Connection
ModuleNotFoundError: No module named 'applaud'

I have tried many different ways of upgrading pip, and even installing pyenv (which I've ruled out because the Python installation for pyenv uses Homebrew which is incredibly slow in Xcode Cloud, and didn't work besides). What am I doing wrong, and how is installing Applaud different from installing Requests?

Questions about scope

I see scope in JWT, but in your code there is nothing about it.
I've use swagger to generate the client code, but I cannot invoke POST /v1/devices, while I can invoke GET /v1/devices

swagger_client.rest.ApiException: (405)
Reason: Not Allowed
HTTP response headers: HTTPHeaderDict({'Server': 'daiquiri/3.0.0', 'Date': 'Tue, 24 May 2022 07:57:30 GMT', 'Content-Type': 'application/json', 'Content-Length': '266', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Apple-Jingle-Correlation-Key': 'xxx', 'x-daiquiri-instance': 'daiquiri::pv50p00it-hyhk12043901:7987:22RELEASE62:daiquiri-amp-all-shared-ext-001-pv'})
HTTP response body: b'{\n\t"errors": [{\n\t\t"status": "405",\n\t\t"code": "METHOD_NOT_ALLOWED",\n\t\t"title": "The request method is not valid for the resource path.",\n\t\t"detail": "The request method used for this request is not valid for the resource path. Please consult the documentation."\n\t}]\n}'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.