sam81 / pybdf

Python module to read Biosemi BDF files
GNU General Public License v3.0
9 stars 4 forks source link

problem installation the lib on Windows 7 #2

Open ITankoyeu opened 8 years ago

ITankoyeu commented 8 years ago

Hello Samuele, First of all, thank you for a great work on the lib!

I am trying to install the lib on Windows and face the following issue: Here is the log:

building 'libforbdf' extension error: extension 'libforbdf' has Fortran sources but no Fortran compiler found

I attached full stack trace.

log.txt

sam81 commented 8 years ago

Hi Ivan,

I've never tried installing on Windows. The error log says that you don't have (or python can't find) a Fortran compiler. You need one to build pybdf. Unfortunately I have no experience setting up a Fortran compiler to build python extensions on Windows, so I can't be of much help there.

I also have to say that I haven't developed pybdf in a while, and don't plan further development. I've moved all my EEG data processing routines from Python to Julia. I have a module to read BDF files in Julia https://github.com/sam81/BDF.jl and some basic EEG processing routines https://github.com/sam81/BrainWave.jl . The Julia modules are much easier to install on Windows and Mac than the python modules, and I've found Julia much faster than python for EEG data processing. Python functions and modules can also be easily called from Julia when needed. I love Python, and Julia is not perfect, but overall I've found Julia a better platform for EEG data analysis, just my 2 cents...

ITankoyeu commented 8 years ago

Hi Samuele,

Thank you for answering! I installed different Fortran compilers, however it did not help me. For some reason I can not use Linux right now. So I ended up using R and the edfReader library for reading BDF files and converting required data to Python data frames.

sam81 commented 8 years ago

you may also want to look at MNE http://martinos.org/mne/dev/manual/io.html#biosemi-data-format-bdf I haven't used it myself but it seems to have functionality to read BDF files directly in Python. Good luck!

sayeedahmed commented 6 years ago

I did install a fortran compiler ( from here ) and got that issue fixed. However, it now runs into the ImportError. "ImportError: DLL load failed: The specified module could not be found." It is unable to find "libforbdf" that is being imported in "pybdf.py"

sam81 commented 6 years ago

I'm afraid I can't be of much help, as I mentioned before I've never compiled pybdf on Windows, and don't have plans to support pybdf on Windows in the future. If you're committed on making it work on Windows I suggest looking at Python docs/tutorials on how to build/install modules with Fortran code on Windows. If the module builds fine without errors it may be the issue is with the installation, e.g. libforbdf has been built but the Python interpreter can't find it from where you're calling it, so there may be an easy fix for that, I don't know. Otherwise you may want to look at other Python modules to read BDF files such as MNE https://martinos.org/mne/stable/index.html, and Biosig http://biosig.sourceforge.net/index.html