-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add macos-arm64.yml
for setup
#1121
Draft
BrianHenryIE
wants to merge
8
commits into
autorope:tf_2_9
Choose a base branch
from
BrianHenryIE:m1-env-yml
base: tf_2_9
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
20a38d3
Create macm1.yml
BrianHenryIE ed475f1
Update controller.py
BrianHenryIE 9a81b54
Add `pytorch-nightly` note
BrianHenryIE 52058d8
Merge branch 'main' into m1-env-yml
BrianHenryIE b81161e
Update macm1.yml
BrianHenryIE e03637f
Merge remote-tracking branch 'upstream/tf_2_9' into m1-env-yml
BrianHenryIE 90a9489
rebase to `tf_2_9` branch
BrianHenryIE b46875b
Rename to `mac-arm64.yml`
BrianHenryIE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# As posted by @cfox570 on Discord: | ||
# @see https://discord.com/channels/662098530411741184/671604367706554388/926561747983294544 | ||
|
||
# `tensorflow-macos` requires the following environmental variables set before install: | ||
# `export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1` | ||
# `export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1` | ||
# @see https://github.com/grpc/grpc/issues/25082#issuecomment-988464912 | ||
|
||
name: donkey | ||
|
||
channels: | ||
- defaults | ||
- conda-forge | ||
- pytorch | ||
- fastai | ||
|
||
dependencies: | ||
- python=3.9 # 3.9.15 | ||
- numpy # 1.23.5 | ||
- h5py # 3.7.0 | ||
- pillow # 9.4.0 | ||
- opencv # 4.6.0 | ||
- matplotlib # 3.7.1 | ||
- tornado # 6.2 | ||
- docopt # 0.6.2 | ||
- pandas # 1.5.3 | ||
- pylint # 2.16.2 | ||
- pytest # 7.1.2 | ||
- pytest-cov # 4.0.0 | ||
- codecov # 2.1.11 | ||
- pip # 23.0.1 | ||
- progress # 1.5 | ||
- paho-mqtt # 1.6.1 | ||
- PrettyTable # 3.5.0 | ||
- pyfiglet # 0.8.post1 | ||
- mypy # 0.981 | ||
- pytorch # 1.12.1 | ||
- torchvision=0.12 # 0.12.0 | ||
- torchaudio # 0.12.1 | ||
- pytorch-lightning>=1.9,<2.0 # 1.9.3 | ||
- psutil # 5.9.0 | ||
- plotly # 5.9.0 | ||
- pyyaml # 6.0 | ||
- fastai # 2.7.11 | ||
- pynmea2 # 1.19.0 | ||
- pyserial # 3.5 | ||
- utm # 0.7.0 | ||
- albumentations # 1.3.0 | ||
# - imgaug # 0.4.0 # This _was_ in mac.yml for an older Donkey version | ||
- pip: | ||
- kivy==2.1.0 # 2.1.0 # Moved from macos.yml dependencies section. | ||
- tensorflow-macos==2.9 # 2.9.0 | ||
- tensorflow-metal==0.5.0 # 0.5.0 | ||
- git+https://github.com/autorope/keras-vis.git # 0.5.0 | ||
- simple-pid # 1.0.1 | ||
- moviepy # 1.0.3 | ||
# - pygame # 2.3.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would kivy fail in the conda install, do you know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried moving it back but got
ResolvePackageNotFound
:$ conda env create -f mac-arm64.yml Collecting package metadata (repodata.json): done Solving environment: failed ResolvePackageNotFound: - kivy=2.1.0
With verbose output:
With no version specified:
$ conda env create -f mac-arm64.yml Collecting package metadata (repodata.json): done Solving environment: failed ResolvePackageNotFound: - kivy
I moved it back under the
pip
section and it worked again:Then after activating:
$ conda list | grep kivy kivy 2.1.0 pypi_0 pypi kivy-garden 0.1.5 pypi_0 pypi
Regardless, should it be removed since it looks like it will be installed during
pip install -e .[pc]
in setup.py:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BrianHenryIE - it seems that for apple silicon the conda install of kivy is not working for whatever reasons, so what you suggest makes sense (to install it w/ pip). In general, the pip install using setup.py is mimicking the conda install, all packages are listed there too. It means you could (theoretically) install DC w/ pip only, but we don't recommend doing that. If you do the conda install first, then the
pip install -e .[pc]
will not do anything, except setting the entry point. All packages are already found by pip and nothing should be installed at that step any more.To give you a quick heads-up, we are currently working on retiring the conda install and will be going w/ pip only very soon (I hope by this month otherwise next). So merging what you have done here, would be short lived. Once we are on pip only, it would be good to have apple silicon support too. It would be great if you could help testing that, as it looks like the only changes are the tf packages as you outlined in your yaml file.