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

Vaex with Pyinstaller #2395

Open
fqking opened this issue Sep 29, 2023 · 0 comments
Open

Vaex with Pyinstaller #2395

fqking opened this issue Sep 29, 2023 · 0 comments

Comments

@fqking
Copy link

fqking commented Sep 29, 2023

Software information

  • Vaex version 4.17.0:
  • Vaex was installed via: pip install vaex
  • OS: Windows 11

Description
My Python App is working fine with using Vaex package when application is launched with Python shell. However there are a lot errors when .exe created by Pyinstaller is running.

Additional information
when the following function is called, I got error:
2023-09-29 15:20:26,093 | ThreadPoolExecutor-1_1 33812 | ERROR | Traceback (most recent call last):
File "analysis_service\client_session.py", line 41, in execute_operation
File "analysis_service\client_session.py", line 191, in _execute_query
File "data_plot\vaex_plot.py", line 39, in vaexplot
File "data_plot\vaex_plot.py", line 129, in vaexplot_histogram
File "vaex\dataframe.py", line 288, in getattr
AttributeError: 'DataFrameLocal' object has no attribute 'viz'
'DataFrameLocal' object has no attribute 'viz'

def vaexplot_histogram(df:vaex, param:HistogramPlotParam) ->np.ndarray:
extra_label = "(log)" if param.IsLog else ""
heatmap = df.viz.histogram(np.log10(df[param.Measure1]) if param.IsLog else df[param.Measure1],
xlabel=param.Measure1+extra_label, limits=f'{param.Limits*100}%')

I tried hidden-import 'vaex'. The results are same. Did I miss anything? Thank you for your help!
pyinstaller -D -y ......\Python\main.py -p ......\Python\ --distpath .\dist --hidden-import imagecodecs._imcd --hidden-import imagecodecs._shared --hidden-import imagecodecs._png --hidden-import imagecodecs._jpeg8 --hidden-import sklearn.metrics --hidden-import sklearn.metrics._pairwise_distances_reduction --hidden-import sklearn.metrics._pairwise_distances_reduction._datasets_pair --hidden-import sklearn.metrics._pairwise_distances_reduction._middle_term_computer --hidden-import skimage.feature --hidden-import skimage.data._fetchers --hidden-import=vaex --name CX.Analysis --icon=Analysis.ico --clean

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

No branches or pull requests

1 participant