CCIのまとめ

[まとめページに戻る](https://qiita.com/Keiji_otsubo/items/60afc2a8d211b6f7d89f)
[まとめA～M](https://qiita.com/Keiji_otsubo/items/f3ddedee6793bf1576f8)

# エラー

+ [Error: [Errno 2] No such file or directory:](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000IS1H2)

+ Python のバージョンが関係するらしい

[Install Error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000NQW7R)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/8beac5b6-2676-d275-b50c-cf175c3a1514.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/f875d04f-699e-c3d5-d5ad-f1b4d8933956.png)

:::note
 It looks like you're using a version of Python that does not offer installable binary "wheels" for the dependencies that CumulusCI requires. Please try uninstalling Python and Pipx, install Python 3.10, and then try to install again.
:::

+ [Error: 403 Although you appear to have the correct authorization credentials, the `SalesforceFoundation` organization has an IP allow list enabled, and your  IP address is not permitted to access this resource.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007cm8x5)

:::note
That error is coming from GitHub based on the settings applied by Salesforce to the SalesforceFoundation GitHub Organization.

Is there any chance you might happen to have an `@salesforce.com` email address connected to the GitHub user account you're using? I know that will trigger the SSO login for GitHub.

If not, this will need someone from Salesforce to look into it.

このエラーは、Salesforce によって SalesforceFoundation GitHub 組織に適用された設定に基づいて GitHub から発生します。

使用している GitHub ユーザー アカウントに `@ salesforce.com`電子メール アドレスが接続される可能性はありますか? GitHub の SSO ログインがトリガーされることはわかっています。

そうでない場合は、Salesforce の担当者が調査する必要があります。
:::


# Python v3.11 --> 3.10 のダウングレードでのエラー

+ [How can I tell Windows/pip/pipx that Python v3.11 is gone?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000NECEM)

```
290.9ms (run_subprocess:173): running C:\Users\Thomas\.local\pipx\venvs\cumulusci\Scripts\python.exe -m pip install cumulusci   
338.2ms (run_subprocess:189): returncode: 1   
338.2ms (subprocess_post_check_handle_pip_error:335): 'C:\\Users\\Thomas\\.local\\pipx\\venvs\\cumulusci\\Scripts\\python.exe -m pip install cumulusci' failed   
338.2ms (subprocess_post_check_handle_pip_error:352): Fatal error from pip prevented installation. Full pip output in file:    
    C:\Users\Thomas\.local\pipx\logs\cmd_2023-01-20_14.04.00_pip_errors.log
```

:::note
I also saw errors after reinstalling python/pipx. Here is what I did to resolve those. 

1. I uninstalled pipx again. (command line: pip uninstall pipx)
2. I navigated to C:\Users\[your user's folder]\.local
 + I deleted the pipx folder in \.local . I then deleted it from the recycle bin.

3\. Reinstalled pipx
4\. Installed cumulusci

The culprit for me was step 2. The pipx uninstall did not remove the pipx folder in \.local
:::

# CCI Retrieve Error - sObjectType 'SourceMember' is not supported

+ [CCI Retrieve Error - sObjectType 'SourceMember' is not supported](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgagT)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/02cddf0b-e9e8-09b1-63ff-b5bd43e1a62e.png)


:::note
Source tracking is available only in scratch orgs (native) and Developer or Developer Pro sandboxes. It's not available in Developer orgs :

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_setup_enable_source_tracking_sandboxes.htm
:::

# Error: sfdo-tooling/sfdo/cumulusci has been disabled because it is not supported upstream!

+ [Getting this error when upgrading cci](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Peyoh)

:::note
We no longer support Homebrew as it caused a lot of issues for our users. We strongly recommend that you uninstall and install with pipx instead: https://cumulusci.readthedocs.io/en/stable/get-started.html
:::

# <class 'requests.exceptions.RetryError'>: An error occurred while making a request to GitHub: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/AccountingSeedDev/*** (Caused by ResponseError('too many 401 error responses'))

+ [github_automerge_main fails](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PexOdSAJ)

#　Exception in task dependencies.update_dependencies　Error: 404 Not Found

+ [【未解決】Converted existing repo to CCI Project to declare as a dependency, but get 404 error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000078SCJP)

# 404 Error

+ [Converted existing repo to CCI Project to declare as a dependency, but get 404 error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000078SCJP)