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

Pandas-access not working on Windows #188

Open
NicolasGensollen opened this issue Sep 21, 2018 · 3 comments
Open

Pandas-access not working on Windows #188

NicolasGensollen opened this issue Sep 21, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@NicolasGensollen
Copy link
Member

NicolasGensollen commented Sep 21, 2018

Looks like reading MDB databases on a Windows machine through pandas-access is not working. So using the Synergi reader on Windows is raising a FileNotFoundError...

In other words, doing the following on Windows seems to crash:

$ pip install pandas_access
>>> import pandas_access as mdb
>>> mdb.list_tables(path_to_mdb_database)
FileNotFoundError: [Errno 2] No such file or directory: 'mdb-tables': 'mdb-tables'

A quick and dirty fix for the Synergi reader could be to have to db_parser.py, one for windows using previous code from @AadilLatif and one for Mac OS and redirect the right one in the reader.
@kdheepak did you see this issue before?

@kdheepak
Copy link
Member

kdheepak commented Oct 2, 2018

mdb-tables is a command line tool that needs to exist in order to perform this function. See here.

@NicolasGensollen
Copy link
Member Author

I believe @tarekelgindy was able to get this working on his Windows. I believe he had to install mdb-tools manually. Could you confirm this @tarekelgindy? If so, we should probably add that to the dependencies in some way (or at least write some documentation on what to do).

@tarekelgindy
Copy link
Contributor

tarekelgindy commented Oct 2, 2018

The way that i got this working on windows was to use some pre-compiled files located on this repository:
https://github.com/lsgunth/mdbtools-win

I cloned this repo, added the location to the PATH environment variable and then mbd-tables was able to be run.

The mdbtools repository is located here:
https://github.com/brianb/mdbtools/

and @NicolasGensollen used homebrew to install it on mac. I think you could use linuxbrew or an direct install to run it on linux.

This isn't an ideal situation, but seems to be an ok workaround for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants