-
Notifications
You must be signed in to change notification settings - Fork 196
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
ValueError: ClassSelector parameter None value must be an instance of (function, tuple), not <function size at 0x103f249b0>. #102
Comments
Hi @icozma : Let me see whether I can upgrade AutoViz to Python 3.10 version or higher. I'll also have to check if importing hvplot and pyviz can be made within function calls so I can remove their versions from requirements.txt and setup.py files. It seems like hvplot and pyviz are changing too much for me to hold AutoViz to a consistent version. |
Hey @icozma 👍 |
I tried the Autoviz upgraded version, I stopped getting errors about seaborn (Python - 3.10.6, autoviz - 0.1.735), but the new error says:
This is similar to the original error posted |
Hi @icozma |
For the above dataframe there is something printing:
but still throws this:
|
Comments copied from #98 Here's the output of import autoviz:
For the code snippet from my previous post, here's the output:
Hope this helps. |
Hi @RNarayan73 : As I have said this before, this is a problem between hvplot.pandas and Python version 3.11. Can you instead try installing and importing hvplot.pandas separately in your Oython 3,11 environment? That should take care of this problem! As far I am concerned, this is a not a problem with AutoViz. I suggest you take it up in their forums. |
Hi all, I'm writing with respect to holoviz/hvplot#1239. This issue was fixed in holoviz/holoviews#5636 and released in HoloViews 1.16.0. It turns out this was all due to a change in Numpy itself, see numpy/numpy#23307. AutoViz is pinning hvPlot and HoloViews to older versions but has no pin on Numpy: Lines 30 to 32 in ba75e53
In my opinion your solutions include:
As far as hvPlot is concerned, there isn't much we can do. In an ideal world we could backport this kind of bug fixes to older versions, but we really don't have the bandwith to do so, i.e. packages dependents on HoloViews have to use the latest version to benefit from the bug fixes. |
@AutoViML, as suggested in the comment from the hvplot repository to the issues I posted there, this seems to be a problem with the incompatible, older versions of the dependencies used by autoviz. Hope you will be able to fix it. |
Hi @RNarayan73, @maximlt 👍 I am going to pin the older version of numpy in this case numpy < 1.25.0 I feel that the later versions cannot be guaranteed to work with the rest of AutoViz and I would need to test extensively. I hope this works for your needs. Please upgrade to the latest version of autoviz and let me know. Auto Vimal |
@AutoViML, the earlier error in issue #98 has re-emerged with version 0.1.804 on Python 3.11. Error log below:
|
Support for Python 3.11 was fixed in holoviz/holoviews#5513 and released in HoloViews 1.15.3 https://holoviews.org/releases.html#version-1-15-3. |
@RNarayan73 : I have re-opened issue #98 please provide a solution that I can implement. Better yet if you know the answer, just submit a pull request or post your changes here and I will update it. I am not able to understand all the complications happening here. |
Hi @RNarayan73 @maximlt @icozma : After much research, I have come up with a modified setup.py script that handles the different versions of python and holoviews, can you please take a look and see if this will work?
|
@AutoViML perhaps it could. The idea seems sound in principle (although, I don't build and publish packages myself). But the devil is in the specific version constraints for each python version. |
Ok I have updated the web site withthe new setup.py script. Install AutoViz package using pip + GitHub.
That is the best way for now to test the three versions. |
Hi @icozma, @maximlt , @RNarayan73 👍 Sorry for the errors. I noticed that with pandas 2.0 and numpy >1.24 and newer python versions, the entire python ecosystem has gone for a toss. I am sorry to say but it is hitting open source developers like me hard. We now have to have different versions for different python versions. I have tried my best to maintain support for AutoViz in these trying times for python ecosystem. So please try to install directly from the github if possible to get the latest updates.
For now, I have fixed your error 👍 You can check it by upgrading to autoviz version 0.1.901 as follows or Thanks |
When running the sample, on Python 3.10.9, it throws an exception as bellow:
The full exception message is:
The text was updated successfully, but these errors were encountered: