-
Notifications
You must be signed in to change notification settings - Fork 337
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
Apple M1 Monterey - Cant install Rez #1170
Comments
I also tried with Python3 from Conda and I have the exact same result from above (Same logs as python3 from HomeBrew) |
This one will take some digging. I can't give a timeline but thanks for flagging it. |
I am similarly unable to install on osx. Trying to install onto a network like:
It will create a few files for the virtual env but then get stuck forever. I've left it for over an hour and it never gets any farther.
|
I don't know why the install onto share is hanging. But wrt the homedir
install, you won't see the rez commands because they're in a /rez subdir
_within_ the venv bin dir.Try running one of those - it's not intended that
you activate on the rez installation like that.
…On Thu, Mar 24, 2022 at 8:58 AM Topher ***@***.***> wrote:
I am similarly unable to install on osx. Trying to install onto a network
like:
% python3 install.py -v /Volumes/work/Tools/Applications/Rez/osx/rez
installing rez to /Volumes/work/Tools/Applications/Rez/osx/rez...
It will create a few files for the virtual env but then get stuck forever.
I've left it for over an hour and it never gets any farther.
I sort of successfully installed to ~/Applications/rez for a test, but
then the activate script doesn't set the correct $PATH. I can source the
activate script, and my prompt correctly adds (rez) to it, but none of
the rez commands are available.
***@***.*** ~ % source /Users/hughetop/Applications/rez/bin/activate
(rez) ***@***.*** ~ % rez-env -h
zsh: command not found: rez-env
—
Reply to this email directly, view it on GitHub
<#1170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSVFCSS3S4PPN5XEI3LVBOHYVANCNFSM5JU3KAYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Oh, what is the intended way to activate rez on osx? Edit: I see what you mean. All the rez-* executables are in bin/rez, not bin itself. So should the activate script add bin/rez to $PATH instead? |
Sorry I'm a bit lost, what's calling activate.bat? The cli tools should
just be available on PATH, presumably any required activation is happening
in the tool wrappers there. I'm on linux so I'm not too familiar with
windows specifics.
Thx
A
…On Thu, Mar 24, 2022 at 9:44 AM Topher ***@***.***> wrote:
Oh, what is the intended way to activate rez on osx?
On windows it's calling the activate.bat script which works fine.
Similarly, sourcing activate from git-bash on windows works. I have not
tested the activate.ps1 script for powershell so I don't know how that
works.
—
Reply to this email directly, view it on GitHub
<#1170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSQX3JOI3J6ESGF56FLVBONF3ANCNFSM5JU3KAYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sorry, the windows stuff is a bit off topic. I'm building a pipeline with rez on windows and everything is going well so far. I'm also investigating using rez on osx, which is what prompted this. Edit: looks like the "activate" script is the virtual environment. So it's entirely possible I've been doing this wrong the whole time. |
Not Mac User, let alone M1, but activating the virtualenv is also not a good idea on windows and might come with unexpected (and hard to troublehoot issues). You also do not need to add to Maschine level PATH. You can add it to user PATH or even just within a shell for that specific shell session. |
I see now that I've been using rez on windows incorrectly. But that should be an easy thing for me to fix. Ignore my windows questions.
So something in the venv creation is failing and hanging forever. |
@hughetop The virtualenv created by rez is not made to be used as is. Also the |
I'd go for a repro of this without involving rez at all. The line that's
failing on is just calling
`venv.EnvBuilder(with_pip=True).create(dest_dir)`, that's pure venv stuff.
If that fails too, perhaps something's up with your python3 installation?
Hth
A
…On Thu, Mar 24, 2022 at 11:02 AM Topher ***@***.***> wrote:
I see now that I've been using rez on windows incorrectly. But that should
be an easy thing for me to fix. Ignore my windows questions.
Installing rez on osx to a network share, however, is still a bit of a
problem. It seems to get stuck when creating it's virtual environment. When
I cancel I get this traceback:
installing rez to /Volumes/work/Tools/Applications/Rez/osx/rez...
^CTraceback (most recent call last):
File "/Volumes/work/Tools/Applications/Rez/config/rez-src-2.104.9/install.py", line 305, in <module>
install(dest_dir, print_welcome=True)
File "/Volumes/work/Tools/Applications/Rez/config/rez-src-2.104.9/install.py", line 147, in install
create_virtual_environment(dest_dir)
File "/Volumes/work/Tools/Applications/Rez/config/rez-src-2.104.9/install.py", line 48, in create_virtual_environment
builder.create(dest_dir)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/venv/__init__.py", line 75, in create
self._setup_pip(context)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/venv/__init__.py", line 313, in _setup_pip
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 507, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1121, in communicate
stdout = self.stdout.read()
KeyboardInterrupt
So something in the venv creation is failing and hanging forever.
—
Reply to this email directly, view it on GitHub
<#1170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSQ7SRTVJ3ORQEIZ3WDVBOWK5ANCNFSM5JU3KAYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
As for the hang, I would try to create a virtualenv on your network share using Edit: Looks like Allan was faster than me. Our answers are basically the same. |
So the osx install on a network share, Now the "fun" windows thing. These lines here clean up the rez bin files that were created in the virtualenv. The |
Thanks, I've spun that into a more specific issue:
#1258
…On Fri, Mar 25, 2022 at 5:33 AM Topher ***@***.***> wrote:
So the osx install on a network share, python3 -m venv took about 5
minutes to finish but eventually did. But
venv.EnvBuilder(with_pip=True).create(dest_dir) stalled when trying to
create the files in the "lib/python3.9/site-packages" directory. That's
likely an issue with the python3.9 install, or possibly the network.
Now the "fun" windows thing. These lines here
<https://github.com/nerdvegas/rez/blob/master/install.py#L86-L90> clean
up the rez bin files that were created in the virtualenv. The specs.keys()
returns a list like ['rez', 'rezolve', '_rez-complete', '_rez_fwd',
'rez-bind', 'rez-build', ...], but on windows the files all have the
".exe" extension. Meaning the line if os.path.isfile(filepath): always
returns False, and those files never get deleted. Fast forward to me trying
to enable rez without editing $PATH because I don't have local admin. I saw
the "activate" scripts and thought "Oh, maybe you can enable rez similar to
a virtual env?" not realizing that it was the virtualenv that rez itself
uses. And because those files never got cleaned up, activating that venv
gave access to all the rez-* executables. So this entire time, rez only
worked for me by crazy coincidence because of that bug in the install
process. What a rollercoaster this has been.
—
Reply to this email directly, view it on GitHub
<#1170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSTIPYNWPOVFX6J37MLVBSYN5ANCNFSM5JU3KAYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This is working now. Specs:
|
I'm not able to install rez on my macbook pro M1 Pro (Monterey 12.0.1).
If I'm trying to install it with python2 system interpreter I get this:
I also tried with Python3 from homebrew but no success... Here are the logs:
Other than that I never had these issues on an Intel Mac.
Am I missing something?
The text was updated successfully, but these errors were encountered: