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

[BUG]: Linux ubuntu file permission error #3969

Open
3 tasks done
Beenjamming opened this issue Apr 16, 2024 · 1 comment
Open
3 tasks done

[BUG]: Linux ubuntu file permission error #3969

Beenjamming opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Beenjamming
Copy link

pycaret version checks

Issue Description

Running into import issue with:
from pycaret.classification import load_model, predict_model

Ubuntu server
Python 3.10
pycaret version 3.3.0

Any help is appreciated....didn't see this issue in previous posts.

image

Reproducible Example

from pycaret.classification import load_model, predict_model

Expected Behavior

expected standard import to be able to successfully load models

Actual Results

>>> from pycaret.classification import load_model, predict_model
/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/internal/logging.py:146: UserWarning: Could not attach a FileHandler to the logger at path logs.log! No logs will be saved.
  warnings.warn(
Traceback (most recent call last):
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/internal/logging.py", line 144, in create_logger
    ch = logging.FileHandler(path)
  File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
    return open_func(self.baseFilename, self.mode,
PermissionError: [Errno 13] Permission denied: '/home/benjamin_michaels/logs.log'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/classification/__init__.py", line 1, in <module>
    from pycaret.classification.functional import (
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/classification/functional.py", line 8, in <module>
    from pycaret.classification.oop import ClassificationExperiment
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/classification/oop.py", line 31, in <module>
    from pycaret.internal.pycaret_experiment.non_ts_supervised_experiment import (
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/non_ts_supervised_experiment.py", line 3, in <module>
    from pycaret.internal.pycaret_experiment.supervised_experiment import (
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 57, in <module>
    from pycaret.internal.pycaret_experiment.tabular_experiment import _TabularExperiment
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/tabular_experiment.py", line 29, in <module>
    from pycaret.internal.memory import get_memory
  File "/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/pycaret/internal/memory.py", line 25, in <module>
    from joblib.memory import (
>>> rtError: cannot import name '_format_load_msg' from 'joblib.memory' (/home/benjamin_michaels/fusionmlapi/lib/python3.10/site-packages/joblib/memory.>>>

Installed Versions

pycaret version 3.3.0
@Beenjamming Beenjamming added the bug Something isn't working label Apr 16, 2024
@Beenjamming
Copy link
Author

Should have also added that this user is an admin and I am running with sudo.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant