8000 load_library cannot load libraries with extensions in the name: (Trac #801) · Issue #1399 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

load_library cannot load libraries with extensions in the name: (Trac #801) #1399

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

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 1 comment

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/801 on 2008-05-25 by @cournape, assigned to unknown.

#!python
import numpy as np
np.ctypeslib.load_library('libc.so', '/lib)

Raises an error:

---------------------------------------------------------------------------
<type 'exceptions.UnboundLocalError'>     Traceback (most recent call last)

/usr/media/misc/local/stow/<ipython console> in <module>()

/home/david/local/stow/numpy.work/lib/python2.5/site-packages/numpy/ctypeslib.py in load_library(libname, loader_path)
     46             libdir = loader_path
     47 
---> 48         for ln in libname_ext:
     49             try:
     50                 libpath = os.path.join(libdir, ln)

<type 'exceptions.UnboundLocalError'>: local variable 'libname_ext' referenced before assignment
@numpy-gitbot
Copy link
Author

@cournape wrote on 2008-05-25

Solved in r5236

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

Successfully merging a pull request may close this issue.

1 participant
0