Skip to content

Can't find cache dir on Mac OSX #120

Closed

Description

@joaquinvanschoren

I get the following error when initiating the connector, although the cache dir does exist.
I'm running this from a Jupyter Notebook, Python 3.

---> 10 connector = APIConnector(apikey = key)

/Users/joa/anaconda/lib/python3.5/site-packages/openml-0.2.1-py3.5.egg/openml/apiconnector.py in __init__(self, cache_directory, apikey, server, verbosity, configure_logger, private_directory)
    168                      self._private_directory_tasks]:
    169             if not os.path.exists(dir_) and not os.path.isdir(dir_):
--> 170                 os.mkdir(dir_)
    171 
    172     def _parse_config(self):

FileNotFoundError: [Errno 2] No such file or directory: '~/.openml/cache'

Is it possible that the home dir is not found with '~'?

Activity

  1. joaquinvanschoren commented on Mar 31, 2016

    @joaquinvanschoren
    ContributorAuthor

    Fixed this by putting an absolute path in my config file, relative paths do not work. I guess we can close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions