Skip to content
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

Error during import #52

Closed
DumbMachine opened this issue Jan 16, 2020 · 1 comment
Closed

Error during import #52

DumbMachine opened this issue Jan 16, 2020 · 1 comment

Comments

@DumbMachine
Copy link

If cv2 python package is imported after importing ngtpy, it results to a free(): invalid pointer. Below is a example:

(base) ➜  search_test git:(master) ✗ ipython                 
Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import ngtpy 
   ...: import cv2 
   ...:                                                                 
free(): invalid pointer
[1]    703 abort (core dumped)  ipython

But importing cv2 before would'nt result to this issue.

(base) ➜  search_test git:(master) ✗ ipython
Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import cv2 
   ...: import ngtpy 
   ...:                                                                 

In [2]:     
@masajiro
Copy link
Member

masajiro commented Feb 4, 2020

For ubuntu, when you install opencv with pip, this problem occurs. However when you install opencv with apt, it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants