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

[Errno 13] Permission denied: '/home/user/.config/PandasProfiling' #214

Closed
Praneeshjai opened this issue Jul 15, 2019 · 7 comments
Closed
Labels
bug 🐛 Something isn't working information requested ❔ Cannot reproduce, waiting for minimum reproduction details.

Comments

@Praneeshjai
Copy link

Unable to debug what this issue could be

[Errno 13] Permission denied: '/home/user/.config/PandasProfiling'

Not sure what this is

@Praneeshjai Praneeshjai added the bug 🐛 Something isn't working label Jul 15, 2019
@shub970
Copy link

shub970 commented Jul 15, 2019

Can you provide a minimum reproducible result?

@sbrugman sbrugman added the information requested ❔ Cannot reproduce, waiting for minimum reproduction details. label Jul 22, 2019
@easygold
Copy link

easygold commented Jan 9, 2020

@sbrugman
Hi there,
is there any update on this situation?
We get this error:
Traceback (most recent call last):

File "", line 3, in
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/pandas_profiling/init.py", line 21, in
from pandas_profiling.config import config
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/pandas_profiling/config.py", line 64, in
config = Config()
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/pandas_profiling/config.py", line 20, in init
self.config = confuse.Configuration("PandasProfiling", name)
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/confuse.py", line 912, in init
self.read()
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/confuse.py", line 948, in read
self._add_user_source()
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/confuse.py", line 926, in _add_user_source
filename = self.user_config_path()
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/confuse.py", line 919, in user_config_path
return os.path.join(self.config_dir(), CONFIG_FILENAME)
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/site-packages/confuse.py", line 985, in config_dir
os.makedirs(appdir)
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/tmp/conda-2ba635df-06ea-417e-ab82-07affb4e2ace/real/envs/conda-env/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/.config'

We work in a distributed cluster without have access to the filesystem. At the moment we use the last version that works for us that is 1.4.2. Could you please investigate and provide us another workaround?
Thanks

@sbrugman
Copy link
Collaborator

sbrugman commented Mar 10, 2020

@Praneeshjai @Isidoro91 Is either of you in the position to test whether #405 resolves the issue?

@mlevit
Copy link

mlevit commented Apr 6, 2020

@sbrugman I believe I have a similar issue that I just encountered when trying to run the profiling via AWS Glue Python Shell:

Traceback (most recent call last):
  File "/tmp/runscript.py", line 118, in <module>
    runpy.run_path(temp_file_path, run_name='__main__')
  File "/usr/local/lib/python3.6/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/usr/local/lib/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/glue-python-scripts-3gf4wz2w/csv_profiler.py", line 9, in <module>
  File "/glue/lib/installation/pandas_profiling/__init__.py", line 15, in <module>
    from pandas_profiling.model.messages import MessageType
  File "/glue/lib/installation/pandas_profiling/model/messages.py", line 12, in <module>
    from pandas_profiling.model.correlations import perform_check_correlation
  File "/glue/lib/installation/pandas_profiling/model/correlations.py", line 15, in <module>
    from pandas_profiling.config import config
  File "/glue/lib/installation/pandas_profiling/config.py", line 70, in <module>
    config = Config()
  File "/glue/lib/installation/pandas_profiling/config.py", line 20, in __init__
    self.config = confuse.Configuration("PandasProfiling", __name__)
  File "/glue/lib/installation/confuse.py", line 912, in __init__
    self.read()
  File "/glue/lib/installation/confuse.py", line 948, in read
    self._add_user_source()
  File "/glue/lib/installation/confuse.py", line 926, in _add_user_source
    filename = self.user_config_path()
  File "/glue/lib/installation/confuse.py", line 919, in user_config_path
    return os.path.join(self.config_dir(), CONFIG_FILENAME)
  File "/glue/lib/installation/confuse.py", line 985, in config_dir
    os.makedirs(appdir)
  File "/usr/local/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.config'

I'm happy to try the fix if you can release a beta version to PyPI as Glue installs dependencies via setup.py.

@SudheerBondada
Copy link

@mlevit As @sbrugman mentioned in beetbox/confuse#70 rebuilding https://pypi.org/project/pandas-profiling/2.4.0/#files (.whl file) with read=False in config.py seems to work. Tested this on AWS Glue python shell (python3).

@mlevit
Copy link

mlevit commented Apr 15, 2020

Great to hear @SudheerBondada. Does that mean the change can be merged @sbrugman ?

@sbrugman
Copy link
Collaborator

Thanks for the feedback guys. v2.6.0 contains the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working information requested ❔ Cannot reproduce, waiting for minimum reproduction details.
Projects
None yet
Development

No branches or pull requests

6 participants