-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unable to import cellrank. Install Petsc Troubles #450
Comments
Hi @mhulke , |
I am not able to use conda. After additional environment resets, I now can no longer install mpi4py, though the Petsc install code does make a bit more progress than previously. I've attached files with the error output for cellrank when using 'pip install 'cellrank[krylov]'', ' pip install mpi4py', and 'pip install petsc' |
The cellrank and petsc logs are "fine", as building the which mpicc I also had a look at the CI of mpi4py, maybe you're just missing some dependencies or they are in some directories not in PATH. I hope this helps a bit. |
It seems like not having a MPI system installed may be the problem. When I run 'which mpicc', I now get the output '/usr/bin/mpicc', which I didn't get before. After an environment restart, I was able to successfully install mpi4py. Unfortunately, I now get the following error when trying to install cellrank or cellrank[krylov]. I am also no longer able to successfully install petsc. |
This seems related: pypa/pip#8438
|
I am still getting the same error |
That's a really bummer, thought the above might solve it. Looking once again at the log, the issue happens with installing
However, if I do
it also failed with: ERROR: Exception:
Traceback (most recent call last):
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
status = self.run(options, args)
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
return func(self, options, args)
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 406, in run
pycompile=options.compile,
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 90, in install_given_reqs
pycompile=pycompile,
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 785, in install
prefix=prefix,
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/locations.py", line 186, in get_scheme
dist_name, user, home, root, isolated, prefix
File "/home/michal/.miniconda3/envs/cr3.7/lib/python3.7/site-packages/pip/_internal/locations.py", line 118, in distutils_scheme
assert not (home and prefix), "home={} prefix={}".format(home, prefix)
AssertionError: home=/tmp/pip-target-xmpxmfgr prefix=foo |
Ok, so maybe this is where the problem lies. I am able to successfully install setuptools, setuptools_scm, and wheel, BUT I get the following ouput (pip install setuptools --use-feature=2020-resolver --upgrade): Collecting setuptools When I try to modify google-resumable-media, I get the following output (pip install 'google-resumable-media!=0.4.0,<0.6.0dev,>=0.3.1' --use-feature=2020-resolver --upgrade): Collecting google-resumable-media!=0.4.0,<0.6.0dev,>=0.3.1 If I update google-resumable-media to >=1.0.0, I get the first message again. When I look in my packages folder, I have google_resumable_media-0.5.1.dist-info and google_resumable_media-1.1.0.dist-info. Could this be causing problems? In response to your previous suggestions, env | grep PIP gives this: Trying to set PIP_TARGET or unset PIP_TARGET says ERROR: No such key - PIP_TARGET. I don't see PIP_PREFIX, and trying to unset it also throws ERROR: No such key - PIP_PREFIX |
The google related stuff shouldn't cause any problem, at least not in this case (it's not a dependency of setuptools or of cellrank).
That should override the environment variable for just this command. |
I'm sorry to be such a challenge. I am still getting the same error. Collecting cellrank[krylov]
|
No worries, I'm happy to help. |
I tried to uninstall enum34, but keep being block due to permissions. It seems like I can't touch it. Another comment in the discussion you linked suggested I download enum34==1.1.8, but that didn't help. Is there any way to get around permission issues other than chmod, or silence the package in some way? |
You can try manually (re)moving the files that belong to this package, though I think the permissions will still be an issue. |
Hi @mhulke, any progress on this? |
Yes and no. I wasn't able to create a virtual environment in Terra, and couldn't remove the enum34 files manually. Ultimately got fed up and downloaded cellrank on a local server. Download was painless and everything seems to be working. Thank you for all the help with this. I'm sorry it was so painful fighting with my setup. |
Great, thanks for the update! Closing this. |
I am working in python3 on Terra (current environment Python: python 3.7.9). I was able to successfully install cellrank with pip install cellrank. When I go to import cellrank, however, the notebook cell gets stuck on running and never successfully loads the package. I do not have this problem when importing any other packages. Restarting the kernel and the environment does not help. I tried installing cellrank[krylov], but always received the fail building wheel error for Petsc and the packages that follow. I followed the Dependencies instructions, but always receive the following error when trying to install Petsc:
RuntimeError: 256
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4ne7q01k/petsc/setup.py'"'"'; file='"'"'/tmp/pip-install-4ne7q01k/petsc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j294rpcq/install-record.txt --single-version-externally-managed --home /tmp/pip-target-2x0__hm2 --compile --install-headers /tmp/pip-target-2x0__hm2/include/python/petsc Check the logs for full command output.
Any input on what might be causing the problem and how to successfully get cellrank running would be greatly appreciated.
The text was updated successfully, but these errors were encountered: