Installing the python weka wrapper

101 views
Skip to first unread message

Bob Matthews

unread,
Oct 11, 2024, 2:26:32 AM10/11/24
to python-weka-wrapper
Hi

first attempt:-

trying to install javabridge
trying to install pyhton-weka-wrapper....as per instrunctions for windows using Anaconda

Using cached javabridge-1.0.19.tar.gz (1.3 MB)
  ERROR: Error [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software while executing command python setup.py egg_info
  Preparing metadata (setup.py) ... error
ERROR: Could not install packages due to an OSError: [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software

How do I correct this?

Peter Reutemann

unread,
Oct 11, 2024, 2:29:36 AM10/11/24
to python-we...@googlegroups.com
python-weka-wrapper is the old Python 2.7 based version which is no longer supported.

Please use pyrhon-weka-wrapper3, which recently got migrated from javabridge to jpype under the hood.

Here are instructions for Win/anaconda:

https://fracpete.github.io/python-weka-wrapper3/install.html#windows-using-anaconda

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

11/10/2024 08:26:32 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/7d339726-436d-4554-b064-f3340dac7cdfn%40googlegroups.com.

Bob Matthews

unread,
Oct 11, 2024, 4:51:30 AM10/11/24
to python-weka-wrapper
Great...am making progress.........BUT
C:\Users\rgmat>conda create --name pww3 python-3.12
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python-3.12

Current channels:

  - defaults

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Something I have missed in the setting up ?

Peter Reutemann

unread,
Oct 11, 2024, 10:36:51 AM10/11/24
to python-we...@googlegroups.com
Try a different Python version, e.g., 3.11, 3.10 or 3.9.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

11/10/2024 10:51:33 Bob Matthews <svsa...@gmail.com>:

Bob Matthews

unread,
Oct 11, 2024, 7:20:38 PM10/11/24
to python-we...@googlegroups.com
have gone back to python 10 but I am back to

C:\Users\rgmat>conda create --name forex python-3.10

Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python-3.10


Current channels:

  - defaults

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

Bob Matthews

unread,
Oct 11, 2024, 7:25:31 PM10/11/24
to python-we...@googlegroups.com
do I need to download anaconda3 for python 3.10 specifically ?

On Sat, 12 Oct 2024 at 03:36, Peter Reutemann <frac...@gmail.com> wrote:

Peter Reutemann

unread,
Oct 12, 2024, 12:59:30 AM10/12/24
to python-we...@googlegroups.com
You shouldn't need to, anaconda offers different python versions through its channels.

I'm not a windows user (running Linux) and not a fan of anaconda (too bloated). The instructions for anaconda that I put together worked at the time of writing on a Windows 10 virtual machine.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

12/10/2024 01:25:32 Bob Matthews <svsa...@gmail.com>:

Bob Matthews

unread,
Oct 12, 2024, 4:40:25 AM10/12/24
to python-we...@googlegroups.com
Thanks for your patience.....................

now at this stage

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for jpype1
Failed to build jpype1
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (jpype1)

and goggling the error is doing my head in..........so I will leave this just now
so close but so far away :)
Bob M

p.s. I did make progress by forgetting about anaconda :)

Peter Reutemann

unread,
Oct 12, 2024, 4:52:31 AM10/12/24
to python-we...@googlegroups.com
No worries.

Did you follow the instructions here?
https://fracpete.github.io/python-weka-wrapper3/install.html#windows

It lists the prerequisites for the installation without anaconda.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

12/10/2024 10:40:26 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/496af17f-5523-4af7-bc70-636c2efa73adn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/9e5dae6f-8a15-448d-a9ee-382787621464%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxM7u1VRKRn8R%3DNwQbqCo1BmK%3DsWd6u-aNqFpcw7z-OMCg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/0bfeabcc-98e8-42d0-9528-6a014a08293b%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Bob Matthews

unread,
Oct 13, 2024, 2:04:16 AM10/13/24
to python-we...@googlegroups.com
Hi Peter

Followed the instructions to a tee :)

Here is the whole episode.................

Microsoft Windows [Version 10.0.19045.5011]
(c) Microsoft Corporation. All rights reserved.

C:\Users\rgmat>pww3\Scripts\activate

(pww3) C:\Users\rgmat>pip install setuptools wheel
Requirement already satisfied: setuptools in c:\users\rgmat\pww3\lib\site-packages (75.1.0)
Requirement already satisfied: wheel in c:\users\rgmat\pww3\lib\site-packages (0.44.0)

(pww3) C:\Users\rgmat>pip install -U --no-cache-dir --config-settings="--global-option=build_ext" --config-settings="--global-option=-IC:\\Program Files\\Graphviz\\include" --config-settings="--global-option=-LC:\\Program Files\\Graphviz\\lib" pygraphviz
Collecting pygraphviz
  Downloading pygraphviz-1.14.tar.gz (106 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      running build_ext
      building 'pygraphviz._graphviz' extension

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.


note: This error originates from a subprocess, and is likely not a problem with pip.

(pww3) C:\Users\rgmat>pip install python-weka-wrapper3[plots,graphs]
Collecting python-weka-wrapper3[graphs,plots]
  Using cached python_weka_wrapper3-0.3.2-py3-none-any.whl
Collecting jpype1 (from python-weka-wrapper3[graphs,plots])
  Using cached JPype1-1.5.0.tar.gz (819 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.20.1 (from python-weka-wrapper3[graphs,plots])
  Using cached numpy-2.1.2-cp313-cp313-win_amd64.whl.metadata (59 kB)
Collecting packaging (from python-weka-wrapper3[graphs,plots])
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting configurable-objects (from python-weka-wrapper3[graphs,plots])
  Using cached configurable_objects-0.0.1-py3-none-any.whl
Collecting simple-data-flow (from python-weka-wrapper3[graphs,plots])
  Using cached simple_data_flow-0.0.1-py3-none-any.whl
Collecting simple-range (from python-weka-wrapper3[graphs,plots])
  Using cached simple_range-0.0.3-py3-none-any.whl
Collecting pygraphviz (from python-weka-wrapper3[graphs,plots])
  Using cached pygraphviz-1.14.tar.gz (106 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pillow (from python-weka-wrapper3[graphs,plots])
  Using cached pillow-10.4.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting lxml (from python-weka-wrapper3[graphs,plots])
  Using cached lxml-5.3.0-cp313-cp313-win_amd64.whl.metadata (3.9 kB)
Collecting matplotlib (from python-weka-wrapper3[graphs,plots])
  Using cached matplotlib-3.9.2-cp313-cp313-win_amd64.whl.metadata (11 kB)
Collecting contourpy>=1.0.1 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached contourpy-1.3.0-cp313-cp313-win_amd64.whl.metadata (5.4 kB)
Collecting cycler>=0.10 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached fonttools-4.54.1-cp313-cp313-win_amd64.whl.metadata (167 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached kiwisolver-1.4.7-cp313-cp313-win_amd64.whl.metadata (6.4 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached pyparsing-3.1.4-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached numpy-2.1.2-cp313-cp313-win_amd64.whl (12.6 MB)
Using cached lxml-5.3.0-cp313-cp313-win_amd64.whl (3.8 MB)
Using cached matplotlib-3.9.2-cp313-cp313-win_amd64.whl (7.8 MB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached pillow-10.4.0-cp313-cp313-win_amd64.whl (2.6 MB)
Using cached contourpy-1.3.0-cp313-cp313-win_amd64.whl (218 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.54.1-cp313-cp313-win_amd64.whl (2.2 MB)
Using cached kiwisolver-1.4.7-cp313-cp313-win_amd64.whl (55 kB)
Using cached pyparsing-3.1.4-py3-none-any.whl (104 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: jpype1, pygraphviz
  Building wheel for jpype1 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for jpype1 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      C:\Users\rgmat\AppData\Local\Temp\pip-install-4u79zl6a\jpype1_e41064df3def4daab06aa9cb6750acbc\setupext\pytester.py:20: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!

              ********************************************************************************
              Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

              By 2024-Nov-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
              ********************************************************************************

      !!
        from setuptools.command.test import test as TestCommand
      C:\Users\rgmat\AppData\Local\Temp\pip-build-env-hm0z91y6\overlay\Lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\jpype
      copying jpype\beans.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\config.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\dbapi2.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\imports.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\nio.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\pickle.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\protocol.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\types.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_classpath.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_core.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_gui.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jarray.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jclass.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jcollection.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jcustomizer.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jexception.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jinit.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jio.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jmethod.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jobject.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jpackage.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jproxy.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jstring.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jthread.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jvmfinder.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_pykeywords.py -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\__init__.py -> build\lib.win-amd64-cpython-313\jpype
      creating build\lib.win-amd64-cpython-313\jpype\_pyinstaller
      copying jpype\_pyinstaller\entry_points.py -> build\lib.win-amd64-cpython-313\jpype\_pyinstaller
      copying jpype\_pyinstaller\example.py -> build\lib.win-amd64-cpython-313\jpype\_pyinstaller
      copying jpype\_pyinstaller\hook-jpype.py -> build\lib.win-amd64-cpython-313\jpype\_pyinstaller
      copying jpype\_pyinstaller\test_jpype_pyinstaller.py -> build\lib.win-amd64-cpython-313\jpype\_pyinstaller
      copying jpype\_jcollection.pyi -> build\lib.win-amd64-cpython-313\jpype
      copying jpype\_jio.pyi -> build\lib.win-amd64-cpython-313\jpype
      running build_ext
      Call build extensions
      Using Jar cache
      copying native\jars\org.jpype.jar -> build\lib.win-amd64-cpython-313
      Call build ext
      building '_jpype' extension

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for jpype1
  Building wheel for pygraphviz (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pygraphviz (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\pygraphviz
      copying pygraphviz\agraph.py -> build\lib.win-amd64-cpython-313\pygraphviz
      copying pygraphviz\graphviz.py -> build\lib.win-amd64-cpython-313\pygraphviz
      copying pygraphviz\scraper.py -> build\lib.win-amd64-cpython-313\pygraphviz
      copying pygraphviz\testing.py -> build\lib.win-amd64-cpython-313\pygraphviz
      copying pygraphviz\__init__.py -> build\lib.win-amd64-cpython-313\pygraphviz
      creating build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_attribute_defaults.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_clear.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_close.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_drawing.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_edge_attributes.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_graph.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_html.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_layout.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_node_attributes.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_readwrite.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_repr_mimebundle.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_scraper.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_string.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_subgraph.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\test_unicode.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      copying pygraphviz\tests\__init__.py -> build\lib.win-amd64-cpython-313\pygraphviz\tests
      running egg_info
      writing pygraphviz.egg-info\PKG-INFO
      writing dependency_links to pygraphviz.egg-info\dependency_links.txt
      writing top-level names to pygraphviz.egg-info\top_level.txt
      reading manifest file 'pygraphviz.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.swg'
      warning: no files found matching '*.png' under directory 'doc'
      warning: no files found matching '*.html' under directory 'doc'
      warning: no files found matching '*.txt' under directory 'doc'
      warning: no files found matching '*.css' under directory 'doc'
      warning: no previously-included files matching '*~' found anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '.svn' found anywhere in distribution
      no previously-included directories found matching 'doc\build'
      adding license file 'LICENSE'
      writing manifest file 'pygraphviz.egg-info\SOURCES.txt'
      copying pygraphviz\graphviz.i -> build\lib.win-amd64-cpython-313\pygraphviz
      copying pygraphviz\graphviz_wrap.c -> build\lib.win-amd64-cpython-313\pygraphviz
      running build_ext
      building 'pygraphviz._graphviz' extension

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pygraphviz
Failed to build jpype1 pygraphviz
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (jpype1, pygraphviz)

(pww3) C:\Users\rgmat>

Peter Reutemann

unread,
Oct 13, 2024, 2:30:26 AM10/13/24
to python-we...@googlegroups.com
Your virtual environment seems to be using Python 3.13. Try recreating an environment with 3.12 or lower since 3.13 changes a few things and not all libraries may support it yet.
Also, the visual c++build tools don't seem to be available.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 08:04:17 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxM7u1VRKRn8R%3DNwQbqCo1BmK%3DsWd6u-aNqFpcw7z-OMCg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/0bfeabcc-98e8-42d0-9528-6a014a08293b%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxONKZWgRsNQk%3DV6SPU8AVFocQ7WM6PjCtvSf6GjC9pDUg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/dfeafd73-58dd-4433-b1ac-8a9603f210f7%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Bob Matthews

unread,
Oct 13, 2024, 1:33:23 PM10/13/24
to python-we...@googlegroups.com
Hi Peter

Installing the Build Tools is my problem

Very confused as to finding the correct package - "select the Desktop development with C++ option in the installer" - please show me where this is

Bob M

Peter Reutemann

unread,
Oct 13, 2024, 1:39:58 PM10/13/24
to python-we...@googlegroups.com
Screenshot under item 4 lists that option:

https://github.com/bycloudai/InstallVSBuildToolsWindows

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 19:33:24 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxONKZWgRsNQk%3DV6SPU8AVFocQ7WM6PjCtvSf6GjC9pDUg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/dfeafd73-58dd-4433-b1ac-8a9603f210f7%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxOmK9tGQp-oCxAPALpKHYcS730wwzFbj6b801kCmvvRnw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/75cf75d4-d071-40b2-975a-0a984f55f428%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Bob Matthews

unread,
Oct 13, 2024, 2:00:26 PM10/13/24
to python-we...@googlegroups.com
making progress...............

Microsoft Windows [Version 10.0.19045.5011]
(c) Microsoft Corporation. All rights reserved.

C:\Users\rgmat>pww3\Scripts\activate

(pww3) C:\Users\rgmat>pip install setuptools wheel
Requirement already satisfied: setuptools in c:\users\rgmat\pww3\lib\site-packages (75.1.0)
Requirement already satisfied: wheel in c:\users\rgmat\pww3\lib\site-packages (0.44.0)

(pww3) C:\Users\rgmat>pip install -U --no-cache-dir --config-settings="--global-option=build_ext" --config-settings="--global-option=-IC:\\Program Files\\Graphviz\\include" --config-settings="--global-option=-LC:\\Program Files\\Graphviz\\lib" pygraphviz
Collecting pygraphviz
  Downloading pygraphviz-1.14.tar.gz (106 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pygraphviz
  Building wheel for pygraphviz (pyproject.toml) ... done
  Created wheel for pygraphviz: filename=pygraphviz-1.14-cp312-cp312-win_amd64.whl size=100512 sha256=33cd3fcffeda6cf731ae05733f507307b646e84577103af8f5e921c87044ef43
  Stored in directory: C:\Users\rgmat\AppData\Local\Temp\pip-ephem-wheel-cache-5ml3jgpy\wheels\e1\2f\c3\0f7719eda975973b474b79b98e1208e635565c1e4dac777ac8
Successfully built pygraphviz
Installing collected packages: pygraphviz
Successfully installed pygraphviz-1.14


(pww3) C:\Users\rgmat>pip install python-weka-wrapper3[plots,graphs]
Collecting python-weka-wrapper3[graphs,plots]
  Using cached python-weka-wrapper3-0.3.2.tar.gz (15.9 MB)

  ERROR: Error [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software while executing command python setup.py egg_info
  Preparing metadata (setup.py) ... error
ERROR: Could not install packages due to an OSError: [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software


(pww3) C:\Users\rgmat>

Bob Matthews

unread,
Oct 13, 2024, 3:07:37 PM10/13/24
to python-we...@googlegroups.com
Hi Peter

I go thru your instructions...all seems to be installed BUT
when I check C:\Program Files\Microsoft Visual Studio\2022

it is empty ???????????

Bob M

On Mon, 14 Oct 2024 at 06:40, Peter Reutemann <frac...@gmail.com> wrote:

Peter Reutemann

unread,
Oct 13, 2024, 3:39:02 PM10/13/24
to python-we...@googlegroups.com
I no longer have the virtual machine that I used for compiling these instructions, so I can't verify whether that directory should be empty. The installer may not place anything in it due to the selection of options to install.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 21:07:38 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxOmK9tGQp-oCxAPALpKHYcS730wwzFbj6b801kCmvvRnw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/75cf75d4-d071-40b2-975a-0a984f55f428%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxMHTmQF1GzPUWM_Z9zJe9u%2Bg4VeoCD%3D8_F_vqazi3OSbw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/f643ea71-fbd4-4aa6-96e5-48f21679462e%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Peter Reutemann

unread,
Oct 13, 2024, 3:41:32 PM10/13/24
to python-we...@googlegroups.com
Looks like your antivirus software thinks pww3 (or one of its dependencies) is a virus. Nice false positive...

Does that error still happen if you omit installing pygraphviz?

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 20:00:28 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxOmK9tGQp-oCxAPALpKHYcS730wwzFbj6b801kCmvvRnw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/75cf75d4-d071-40b2-975a-0a984f55f428%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxMHTmQF1GzPUWM_Z9zJe9u%2Bg4VeoCD%3D8_F_vqazi3OSbw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/f643ea71-fbd4-4aa6-96e5-48f21679462e%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Bob Matthews

unread,
Oct 13, 2024, 3:46:51 PM10/13/24
to python-we...@googlegroups.com
I was trying to update the environment variables as per instructions

Peter Reutemann

unread,
Oct 13, 2024, 3:49:23 PM10/13/24
to python-we...@googlegroups.com
Did you have any errors during the install then? Did it not finish?

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 21:46:53 Bob Matthews <svsa...@gmail.com>:

I was trying to update the environment variables as per instructions

On Mon, 14 Oct 2024 at 08:39, Peter Reutemann <frac...@gmail.com> wrote:
I no longer have the virtual machine that I used for compiling these instructions, so I can't verify whether that directory should be empty. The installer may not place anything in it due to the selection of options to install.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 21:07:38 Bob Matthews <svsa...@gmail.com>:

Hi Peter

I go thru your instructions...all seems to be installed BUT
when I check C:\Program Files\Microsoft Visual Studio\2022

it is empty ???????????

Bob M

On Mon, 14 Oct 2024 at 06:40, Peter Reutemann <frac...@gmail.com> wrote:
Screenshot under item 4 lists that option:

https://github.com/bycloudai/InstallVSBuildToolsWindows

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 19:33:24 Bob Matthews <svsa...@gmail.com>:

Hi Peter

Installing the Build Tools is my problem

Very confused as to finding the correct package - "select the Desktop development with C++ option in the installer" - please show me where this is

Bob M

On Sun, 13 Oct 2024 at 19:30, Peter Reutemann <frac...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxMHTmQF1GzPUWM_Z9zJe9u%2Bg4VeoCD%3D8_F_vqazi3OSbw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/f643ea71-fbd4-4aa6-96e5-48f21679462e%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxNK98N1GJc28aS8Pq_aoGp24XpjKtik7qRBW1ZyidBb0A%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/dee16257-0b80-46ed-8b96-b54601542dee%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Bob Matthews

unread,
Oct 13, 2024, 4:09:08 PM10/13/24
to python-we...@googlegroups.com
I think I am there (at long last) but not sure how to get into the weka classifiers

Microsoft Windows [Version 10.0.19045.5011]
(c) Microsoft Corporation. All rights reserved.

C:\Users\rgmat>pww3\Scripts\activate

(pww3) C:\Users\rgmat>pip install setuptools wheel
Requirement already satisfied: setuptools in c:\users\rgmat\pww3\lib\site-packages (75.1.0)
Requirement already satisfied: wheel in c:\users\rgmat\pww3\lib\site-packages (0.44.0)

(pww3) C:\Users\rgmat>pip install -U --no-cache-dir --config-settings="--global-option=build_ext" --config-settings="--global-option=-IC:\\Program Files\\Graphviz\\include" --config-settings="--global-option=-LC:\\Program Files\\Graphviz\\lib" pygraphviz
Requirement already satisfied: pygraphviz in c:\users\rgmat\pww3\lib\site-packages (1.14)


(pww3) C:\Users\rgmat>pip install python-weka-wrapper3[plots,graphs]
Collecting python-weka-wrapper3[graphs,plots]
  Using cached python_weka_wrapper3-0.3.2-py3-none-any.whl
Collecting jpype1 (from python-weka-wrapper3[graphs,plots])
  Using cached JPype1-1.5.0-cp312-cp312-win_amd64.whl.metadata (5.0 kB)

Collecting numpy>=1.20.1 (from python-weka-wrapper3[graphs,plots])
  Using cached numpy-2.1.2-cp312-cp312-win_amd64.whl.metadata (59 kB)

Collecting packaging (from python-weka-wrapper3[graphs,plots])
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting configurable-objects (from python-weka-wrapper3[graphs,plots])
  Using cached configurable_objects-0.0.1-py3-none-any.whl
Collecting simple-data-flow (from python-weka-wrapper3[graphs,plots])
  Using cached simple_data_flow-0.0.1-py3-none-any.whl
Collecting simple-range (from python-weka-wrapper3[graphs,plots])
  Using cached simple_range-0.0.3-py3-none-any.whl
Requirement already satisfied: pygraphviz in c:\users\rgmat\pww3\lib\site-packages (from python-weka-wrapper3[graphs,plots]) (1.14)

Collecting pillow (from python-weka-wrapper3[graphs,plots])
  Using cached pillow-10.4.0-cp312-cp312-win_amd64.whl.metadata (9.3 kB)

Collecting lxml (from python-weka-wrapper3[graphs,plots])
  Using cached lxml-5.3.0-cp312-cp312-win_amd64.whl.metadata (3.9 kB)

Collecting matplotlib (from python-weka-wrapper3[graphs,plots])
  Using cached matplotlib-3.9.2-cp312-cp312-win_amd64.whl.metadata (11 kB)

Collecting contourpy>=1.0.1 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached contourpy-1.3.0-cp312-cp312-win_amd64.whl.metadata (5.4 kB)

Collecting cycler>=0.10 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached fonttools-4.54.1-cp312-cp312-win_amd64.whl.metadata (167 kB)

Collecting kiwisolver>=1.3.1 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached kiwisolver-1.4.7-cp312-cp312-win_amd64.whl.metadata (6.4 kB)

Collecting pyparsing>=2.3.1 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached pyparsing-3.2.0-py3-none-any.whl.metadata (5.0 kB)

Collecting python-dateutil>=2.7 (from matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib->python-weka-wrapper3[graphs,plots])
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached numpy-2.1.2-cp312-cp312-win_amd64.whl (12.6 MB)
Using cached JPype1-1.5.0-cp312-cp312-win_amd64.whl (352 kB)
Using cached lxml-5.3.0-cp312-cp312-win_amd64.whl (3.8 MB)
Using cached matplotlib-3.9.2-cp312-cp312-win_amd64.whl (7.8 MB)

Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached pillow-10.4.0-cp312-cp312-win_amd64.whl (2.6 MB)
Using cached contourpy-1.3.0-cp312-cp312-win_amd64.whl (218 kB)

Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.54.1-cp312-cp312-win_amd64.whl (2.2 MB)
Using cached kiwisolver-1.4.7-cp312-cp312-win_amd64.whl (55 kB)
Using cached pyparsing-3.2.0-py3-none-any.whl (106 kB)

Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: simple-range, configurable-objects, six, simple-data-flow, pyparsing, pillow, packaging, numpy, lxml, kiwisolver, fonttools, cycler, python-dateutil, jpype1, contourpy, python-weka-wrapper3, matplotlib
Successfully installed configurable-objects-0.0.1 contourpy-1.3.0 cycler-0.12.1 fonttools-4.54.1 jpype1-1.5.0 kiwisolver-1.4.7 lxml-5.3.0 matplotlib-3.9.2 numpy-2.1.2 packaging-24.1 pillow-10.4.0 pyparsing-3.2.0 python-dateutil-2.9.0.post0 python-weka-wrapper3-0.3.2 simple-data-flow-0.0.1 simple-range-0.0.3 six-1.16.0

(pww3) C:\Users\rgmatt>

Peter Reutemann

unread,
Oct 14, 2024, 12:40:34 AM10/14/24
to python-we...@googlegroups.com
Well done!

Now you can use the Python interpreter of your activated virtual environment to execute scripts. E.g.:

python blah.py

Here are examples on how to use pww3:

https://fracpete.github.io/python-weka-wrapper3/examples.html

The simplest approach is to use a text editor and write your Python code in there.

But you can also use your virtual environment in conjunction with IDEs like PyCharm.

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

13/10/2024 22:09:09 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxNK98N1GJc28aS8Pq_aoGp24XpjKtik7qRBW1ZyidBb0A%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/dee16257-0b80-46ed-8b96-b54601542dee%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxPPsj%3D1vJA0eVqj3O8s6qqt-q%2B3VBsAGXSjcSsqRa2ToQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/be129d9c-3aef-4a7f-b67c-680c5d6d6a0c%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.

Bob Matthews

unread,
Oct 14, 2024, 1:22:31 AM10/14/24
to python-we...@googlegroups.com
Thanks Peter for your patience

I am 77 years young and so thinks take a while :)

Bob M
'Saffron'
Pier D4
Havelock Marina

Peter Reutemann

unread,
Oct 14, 2024, 3:52:25 AM10/14/24
to python-we...@googlegroups.com
No worries. Glad you got there in the end!

Cheers, Peter
--
My Open Source Blog - http://open.fracpete.org

14/10/2024 07:22:32 Bob Matthews <svsa...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxPPsj%3D1vJA0eVqj3O8s6qqt-q%2B3VBsAGXSjcSsqRa2ToQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/be129d9c-3aef-4a7f-b67c-680c5d6d6a0c%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/CA%2B5DfxN8d7ZoW850WVG-LG68MzPg_QjYMDC1awLz8qoiKXfe4w%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-weka-wrapper/d55b342c-46eb-4623-8d96-4d43363dd3ff%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "python-weka-wrapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-weka-wra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages