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

Guidelines on installing dependencies #1

Open
FreedomEclipse opened this issue Feb 17, 2024 · 1 comment
Open

Guidelines on installing dependencies #1

FreedomEclipse opened this issue Feb 17, 2024 · 1 comment

Comments

@FreedomEclipse
Copy link

It would be helpful if the Readme.md for this file included guidelines on setting up the Python environment and dependencies. I have spent weeks trying to get the environment set up. Reliance on fairautoml and automl is causing massive problems, as well as auto-sklearn. The issues always seem to stem from Cython.
I am hoping to get this set up locally so I can build on it with some innovative ideas I have for my PhD research here at Florida Atlantic University. Thanks for any assistance.

I am including my error below when trying to install auto-sklearn. Similar errors appear when installing automl (requirement for fairautoml)

[53/53] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
main()
File "/Users/elloyd/OneDrive/FAU/FiFaR/FiFAR/venv/lib/python3.11/site-packages/pip/vendor/pyproject_hooks/in_process/in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/elloyd/OneDrive/FAU/FiFaR/FiFAR/venv/lib/python3.11/site-packages/pip/vendor/pyproject_hooks/in_process/in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/1
/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 366, in prepare_metadata_for_build_wheel
self.run_setup()
File "/private/var/folders/1
/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 480, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/1
/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 301, in
File "", line 297, in setup_package
File "/private/var/folders/1/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/numpy/distutils/core.py", line 136, in setup
config = configuration()
^^^^^^^^^^^^^^^
File "", line 188, in configuration
File "/private/var/folders/1/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/numpy/distutils/misc_util.py", line 1050, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/1/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/numpy/distutils/misc_util.py", line 1016, in get_subpackage
config = self.get_configuration_from_setup_py(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/1
/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/numpy/distutils/misc_util.py", line 958, in get_configuration_from_setup_py
config = setup_module.configuration(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/1
/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-install-igebf7a3/scikit-learn_b2599ca5ad2148468712792b10343807/sklearn/setup.py", line 83, in configuration
cythonize_extensions(top_path, config)
File "/private/var/folders/1_/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-install-igebf7a3/scikit-learn_b2599ca5ad2148468712792b10343807/sklearn/build_utils/init.py", line 70, in cythonize_extensions
config.ext_modules = cythonize(
^^^^^^^^^^
File "/private/var/folders/1
/8zblhp9n40v8pgtz7tzy_gd80000gn/T/pip-build-env-vhdk_sfd/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
result.get(99999) # seconds
^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/pool.py", line 774, in get
raise self._value
Cython.Compiler.Errors.CompileError: sklearn/ensemble/_hist_gradient_boosting/splitting.pyx
[end of output]

@EricLloydNSC-CS
Copy link

As an update, after trying to set this up for days, I'm thinking that fairautoml.backend (and other fairautoml calls in the wheel) are NOT from FairAutoML package or repo (as there is no backend file in there). What is fairautoml??
https://github.com/haocwang/FairAutoML

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

2 participants