spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.33k stars 1.61k forks source link

Code analysis error #15531

Open Bcubrich opened 3 years ago

Bcubrich commented 3 years ago

Description

What steps will reproduce the problem?

Run code analysis of a certain script (permit_Status_notification_v2_test)

Traceback

pylint error:

Traceback (most recent call last):
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\__main__.py", line 9, in <module>
    pylint.run_pylint()
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\__init__.py", line 21, in run_pylint
    from pylint.lint import Run as PylintRun
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\lint\__init__.py", line 75, in <module>
    from pylint.lint.parallel import check_parallel
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\lint\parallel.py", line 7, in <module>
    from pylint import reporters
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\reporters\__init__.py", line 24, in <module>
    from pylint import utils
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\utils\__init__.py", line 47, in <module>
    from pylint.utils.utils import (
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\pylint\utils\utils.py", line 6, in <module>
    import isort.api
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\isort\__init__.py", line 2, in <module>
    from . import settings
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\isort\settings.py", line 778, in <module>
    DEFAULT_CONFIG = Config()
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\site-packages\isort\settings.py", line 420, in __init__
    path_root = Path(combined_config.get("directory", project_root)).resolve()
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\pathlib.py", line 1134, in resolve
    s = self._flavour.resolve(self, strict=strict)
  File "C:\Users\bcubrich\AppData\Local\Continuum\anaconda3\lib\pathlib.py", line 192, in resolve
    s = self._ext_to_normal(_getfinalpathname(s))
PermissionError: [WinError 5] Access is denied: 'U:\\PLAN\\BCUBRICH\\Python\\Permitting Status'

Versions

Dependencies


# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  1.6.0 (OK)
cookiecutter >=1.6.0          :  1.7.2 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.22.0 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  22.3.0 (OK)
nbconvert >=4.0               :  6.0.7 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
paramiko >=2.4.0              :  2.4.2 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.8.1 (OK)
pylint >=1.0                  :  2.7.4 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.6 (OK)
pyls_spyder >=0.3.2           :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=0.5.7             :  1.0.2 (OK)
qtconsole >=5.0.3             :  5.0.3 (OK)
qtpy >=1.5.0                  :  1.9.0 (OK)
rtree >=0.8.3                 :  0.9.7 (OK)
setuptools >=39.0.0           :  52.0.0.post20210125 (OK)
sphinx >=0.6.6                :  3.5.4 (OK)
spyder_kernels >=2.0.1;<2.1.0 :  2.0.1 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3;<2.0.0      :  1.0.2 (OK)
zmq >=17                      :  20.0.0 (OK)

# Optional:
cython >=0.21                 :  0.29.23 (OK)
matplotlib >=2.0.0            :  3.3.4 (OK)
numpy >=1.7                   :  1.19.2 (OK)
pandas >=1.1.1                :  1.2.4 (OK)
scipy >=0.17.0                :  1.5.0 (OK)
sympy >=0.7.3                 :  1.3 (OK)
andfoy commented 3 years ago

Hi @Bcubrich, thanks for opening this issue. Does the file have read permissions?

jorgenova commented 3 years ago

Hello @andfoy ... I am having de same problem... what file do you mean that I have to get read permissions?

ccordoba12 commented 3 years ago

The file you're trying to analyze.

Bcubrich commented 3 years ago

I tried multiple files actually and get the same error.

On Thu, Jun 3, 2021 at 11:06 AM Carlos Cordoba @.***> wrote:

The file you're trying to analyze.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/15531#issuecomment-854035034, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5YE55YS37TPERWY5VOHQLTQ6ZAPANCNFSM44HU5NCQ .

--