Open alexandre-blanc opened 2 years ago
Hi @alexandre-blanc,
Thanks for your interest in this library.
To be clear: issue #235 is about using KeOps with WSL2, and got closed since the issue got resolved after a reinstall of WSL. (I can confirm that KeOps 2.0 should work just fine on a fresh Windows+WSL install.) Are you using the same kind of hybrid Windows+Ubuntu system, or are you working on a straight Linux configuration?
With respect to the pickle issue: do @joanglaunes or @bcharlier have any idea? I have never seen this bug, beyond #235.
Best regards, Jean
Hi @jeanfeydy, this error pops up on a ubuntu workstation, with ubuntu being the sole OS installed. There is no link to WSL. I only referenced #235 because the exception is identical and I thought it may help.
Best, Alexandre
Hi @alexandre-blanc , @jeanfeydy
I have similar issue when import pykeops on ubuntu cluster. I only have this problem when import pykeops on multi-gpus nodes.
`----> 1 import pykeops
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/pykeops/init.py:75, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/pykeops/numpy/init.py:6, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/pykeops/numpy/operations.py:4, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/pykeops/common/keops_io/init.py:4, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/pykeops/common/keops_io/LoadKeOps_nvrtc.py:8, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/pykeops/common/keops_io/LoadKeOps.py:6, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/keopscore/get_keops_dll.py:150, in
File ~/miniconda3/envs/pyg/lib/python3.9/site-packages/keopscore/utils/Cache.py:18, in Cache.init(self, fun, use_cache_file, save_folder) 16 if os.path.isfile(self.cache_file): 17 f = open(self.cache_file, "rb") ---> 18 self.library = pickle.load(f) 19 f.close() 20 import atexit
EOFError: Ran out of input`
Hello @alexandre-blanc , I have tried to fix the issue by just checking the length of the cache file before reading it. I am not sure that it will really fix it, because I cannot reproduce your error. Could you try it (the fix is commited in the main branch) ?
try: pip uninstall pykeops pip install pykeops==1.5
I encountered precisely the same issue. I had a working conda environment with pykeops 2.1, which suddenly started throwing this error. The only thing I can think of is that since last using that environment, I created other environments with pytorch and cuda (probably with pip). Possibly this is the source of a conflict?
pip install pykeops<2.1 fixed the issue in the current environment.
我已收到邮件,会尽快处理。
I ran into this issue when keops was first trying to compile a formula but ran into a Disk out-of-space error. This seems to have left some files in the .cache/ folder corrupted and when I tried to import pykeops later I got the EOFError: Ran out of input. The solution was to remove the .cache folder manually before importing again.
我已收到邮件,会尽快处理。
Hi !
I want to use pykeops on ubuntu 18.04, with python 3.8. I get the same exception as in issue #235 https://github.com/getkeops/keops/issues/235.
Below is the output of the installation process in a fresh new virtual environment :
When downgrading to pykeops 1.5 however, the import doesn't throw any exceptions.