question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

multiple issues with numpy.f2py.compile() function

See original GitHub issue

I’ve encountered multiple problems when using numpy.f2py.compile() function on Windows and Ubuntu. For now, the issues are with Python 3.5.1, Numpy 1.11.0 on Windows 7 x64 and Ubuntu 14.04 x64.

  1. docstring of compile() is completely missing the help for parameter source_fn. This is certainly platform independent issue…
  2. when running compile() the following messages show up:

On Windows:

Could not locate executable C:ProgramsPython35python.exe Executable C:ProgramsPython35python.exe does not exist

C:\Programs\Python35\lib\site-packages\numpy\distutils\misc_util.py:6: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses import imp

On Ubuntu:

/home/…/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py:6: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses import imp

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
HaoZekecommented, Aug 25, 2021

Closing as fixed.

1reaction
bertrand-lcommented, Jun 15, 2016

@mbdevpl are you working on this? looked into this as i was curious about the “dark corners”, and i might have a fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using F2PY — NumPy v1.24 Manual
This page contains a reference to all command-line options for the f2py command, as well as a reference to internal functions of the...
Read more >
Issues when using f2py module in python code - Stack Overflow
I compiled the same using f2py module in python from numpy import f2py f2py.compile(open('interp.f').read(),modulename='interp' ...
Read more >
F2PY compilation study - HackMD
How does compiling both - the fortran source file and C/API module works. I thought compilers are language specific. A compiler reads one...
Read more >
Using F2PY — NumPy v1.17 Manual
Create Fortran subroutine wrappers to Fortran functions. --wrap-functions is default because it ensures maximum portability and compiler ...
Read more >
Using Dask Distributed with numpy.f2py function in module
Hi, I'm trying to use dask distributed to distribute a custom module across multiple workers. The module uses numpy.f2py, and I'm getting errors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found