diplib: DIPlib test fails with larger number of threads.

I’ve successfully installed PyDIP using pip3, but I’m having trouble importing in python3. I saw the previous discussions of this issue but First I encountered this: import PyDIP as dip Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'PyDIP' Then made sure to library path: export PYTHONPATH="${PYTHONPATH}:/Users/Assaf/Library/Python/3.7/bin" as well as restart terminal and uninstall/install again. Finally I ran >>> import pydip as dip which worked without error with the import, but then failed in reading an image: >>> image = dip.ImageRead('example.png') Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'pydip' has no attribute 'ImageRead'

Following a previous discussion here, I tried cloning the DIPlib repo and execute make but it fails:

make[2]: *** [dipimage/Contents.m] Error 1
make[1]: *** [dipimage/CMakeFiles/contents.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 79%] Linking CXX shared library libDIP.dylib
[ 79%] Built target DIP
make: *** [all] Error 2

Any advice on how to resolve this? Thanks

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (20 by maintainers)

Commits related to this issue

Most upvoted comments

@asmagen I don’t see anything strange about your setup. There is no reason for this one test to fail that I can see.

The only possible cause can be a bug in your compiler (you have Apple clang 11.0.3.11030032, I have Apple clang 11.0.0, so this is very unlikely), or an error creeped in when copying files (which is slightly less unlikely).

Since all other tests passed, I would guess that whatever the problem is, it is only with dip::ShiftFT(), and not with more important functions. I would just go ahead and install the package and use it.

Let me know if you run into any type of strange results using the package!