jungmannlab / picasso

A collection of tools for painting super-resolution images

Home Page:https://picassosr.readthedocs.io/en/latest/?badge=latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hdf2csv throws error that it is missing pytables

lilbutsa opened this issue · comments

  • Picasso version: 0.6.8
  • Python version: Windows install
  • Operating System: Windows 10

Description

Hi,
I was trying to run the hdf2csv function through command line in windows but it throws an error that it is missing the pytables dependency. What is the best way to overcome this? Should I try and add it manually to the Picasso program folder?

Thanks for your help and for developing such great software!

James

What I Did

picasso hdf2csv Test.hdf5
0%| | 0/1 [00:00<?, ?it/s]Converting Test.hdf5
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "pandas\compat_optional.py", line 132, in import_optional_dependency
File "importlib_init_.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tables'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "picasso_pyinstaller.py", line 9, in
File "picasso_main_.py", line 1747, in main
File "picasso_main_.py", line 174, in _hdf2csv
File "pandas\io\pytables.py", line 426, in read_hdf
File "pandas\io\pytables.py", line 566, in init
File "pandas\compat_optional.py", line 135, in import_optional_dependency
ImportError: Missing optional dependency 'pytables'. Use pip or conda to install pytables.
[29040] Failed to execute script 'picasso_pyinstaller' due to unhandled exception!

Hi,

Thanks for raising the issue. I am not sure what may be causing it, maybe it'd be possible to use the PyPI release of picasso? https://pypi.org/project/picassosr/

Simply follow the instructions on our github page under that "Via PyPI" section: https://github.com/jungmannlab/picasso?tab=readme-ov-file#via-pypi

I hope this helps, please let me know if the issue persists.

Bests,
Rafal

Hello again,

I looked at the problem again, the solution is to install the package called "pytables", either from pip or conda.

I changed the code such that this is no longer required and in the next version (0.6.10) it should work without problems.

Bests,
Rafal

Hey Rafal,

Thanks for fixing that and keep up the great work!

James