You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that README.md says Works on Linux on, but I had a problem that it was difficult to identify the cause from the error message when running on macOS.
Our team is using a memory-tempfile with code that runs on a only Linux machine.
However, some of our team engineers are developing on macOS and when he just run the test code he got the following error:
test_x.py:8: in <module>
if not tempfile.found_mem_tempdir():
/Users/otms61/.pyenv/versions/3.7.5/lib/python3.7/site-packages/memory_tempfile/memory_tempfile.py:71: in found_mem_tempdir
return len(self.usable_paths) > 0
E AttributeError: 'MemoryTempfile' object has no attribute 'usable_paths'
Hi, thanks for making a great python module.
I understand that README.md says
Works on Linux on
, but I had a problem that it was difficult to identify the cause from the error message when running on macOS.Our team is using a memory-tempfile with code that runs on a only Linux machine.
However, some of our team engineers are developing on macOS and when he just run the test code he got the following error:
The code is like this
Although it is
Works only on Linux
, I think there are two problems with the current implementation.I think about some solutions.
Solution 1:
No matter what environment you run, initialize enable_pahts to prevent AttributeError.
Solution 2:
Raise RuntimeError when running on non-Linux.
Please let me know the opinion of the author.
Thanks.
The text was updated successfully, but these errors were encountered: