Skip to content

Commit 1be038f

Browse files
committed
Modify setup.py to handle multiple pythons
1 parent 78f0102 commit 1be038f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

autoviz/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__author__ = "Ram Seshadri"
66
__description__ = "Automatically Visualize any data set any size with a Single Line of Code"
77
__url__ = "https://github.com/AutoViML/AutoViz.git"
8-
__version__ = "0.1.901"
8+
__version__ = "0.1.902"
99
__holo_version__ = "0.0.4"
1010
__license__ = "Apache License 2.0"
1111
__copyright__ = "2020-21 Google"

updates.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Latest updates and news from AutoViz!
22

3+
### April 2024: AutoViz version 0.1.900+ series has some fixes for autoviz install issues
4+
You can always use pip install from git which uses the latest setup.py and it works well!
5+
`!pip install git+https://github.com/AutoViML/AutoViz`
6+
7+
But if you are using `pip install autoviz`, then you will get two kinds of errors. In order to know what to do, perform the following steps.
8+
9+
**First print these 3 versions of pandas, numpy and holoviews**<br>
10+
<code>
11+
import pandas as pd<br>
12+
import numpy as np<br>
13+
import holoviews as hv<br>
14+
print(pd.__version__, np.__version__,hv.__version__)
15+
</code>
16+
17+
If it prints
18+
`numpy<1.24, pandas<2.0, holoviews <= 1.14.19`
19+
20+
These are all older versions of pandas and numpy along with older versions of holoviews<=1.14.9. These three older versions work together since holoviews uses an older syntax numpy (`np.bool`) that numpy<1.24 uses. However, if you are running this in kaggle kernels, you must restart your Kaggle kernel after you install autoviz since it changes the numpy and pandas versions to an older version and requires a restart to take effect. But if you get this error: `"ValueError: ClassSelector parameter None value must be an instance of (function, tuple), not <function size at 0x7c5f3e111770>."` In that case, you must upgrade holoviews to 1.16.0.
21+
22+
But if the above statements, print newer versions of pandas and numpy, like this:<br>
23+
<code>
24+
pandas>=2.0.0 numpy>=1.24.0 holoviews>=1.16.0
25+
</code>
26+
then you need newer versions of holoviews. Although regular AutoViz works well with newer pandas and numpy the older holoviews version corrupts it. AutoViz_Holo needs newer versions such as holoviews>=1.16.0 in order to work with newer numpy and pandas. For example, if you don't upgrade holoviews to >=1.16.0 you will get this error: "ValueError: ClassSelector parameter None value must be an instance of (function, tuple), not <function size at 0x7c5f3e111770>."
27+
28+
Hope this is clear. Please let us know via the issues tab in GitHub.
29+
330
### December 2023: AutoViz now has modular dependency loading and improved support for Python versions 3.10+
431
<li>Modular Dependency Loading: AutoViz now uses a more flexible approach for importing visualization libraries starting with version `0.1.801`. This means you only need to install certain dependencies (like hvplot and holoviews) if you plan to use specific backends (e.g., bokeh). This change significantly reduces installation issues for users on newer Python versions such as 3.10 and higher.</li>
532

0 commit comments

Comments
 (0)