question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSError when creating a project

See original GitHub issue

Description

What steps will reproduce the problem?

Project -> new, then checklist the existing directory and choosing a directory with python files. I was able to create and manage a project in the same directory with and old sypder version (spyder 3)

Traceback

  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/spyder/plugins/projects/plugin.py", line 284, in _create_project
    self.open_project(path=path)
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/spyder/plugins/projects/plugin.py", line 330, in open_project
    self.watcher.start(path)
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/spyder/plugins/projects/utils/watcher.py", line 153, in start
    raise e
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/spyder/plugins/projects/utils/watcher.py", line 128, in start
    self.observer.start()
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/api.py", line 253, in start
    emitter.start()
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/utils/__init__.py", line 110, in start
    self.on_thread_start()
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/inotify.py", line 121, in on_thread_start
    self._inotify = InotifyBuffer(path, self.watch.is_recursive)
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/inotify_buffer.py", line 35, in __init__
    self._inotify = Inotify(path, recursive)
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/inotify_c.py", line 200, in __init__
    self._add_dir_watch(path, recursive, event_mask)
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/inotify_c.py", line 395, in _add_dir_watch
    self._add_watch(full_path, mask)
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/inotify_c.py", line 409, in _add_watch
    Inotify._raise_error()
  File "/home/paolo/Softwares/anaconda3/lib/python3.7/site-packages/watchdog/observers/inotify_c.py", line 425, in _raise_error
    raise OSError(err, os.strerror(err))
PermissionError: [Errno 13] Permission denied

Versions

  • Spyder version: 4.1.2
  • Python version: 3.7.3
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Linux 4.9.0-12-amd64

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.3.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.3.0 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.13.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
keyring                        :  None (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.9 (OK)
qdarkstyle >=2.8               :  2.8 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.2 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.3 (OK)
sphinx >=0.6.6                 :  2.4.4 (OK)
spyder_kernels >=1.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
xdg >=0.26                     :  0.26 (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  0.29.15 (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.3 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
BoboTiGcommented, Jun 25, 2020

The new version of watchdog (0.10.3) containing the fix is online 😃

1reaction
ccordoba12commented, Jun 20, 2020

@bunop, thanks for letting us know the solution for your problem. @andfoy submitted https://github.com/gorakhargosh/watchdog/pull/669 with it, so now it’s up to the Watchdog maintainers to merge it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError while reading the project from Google cloud platform
OSError Project was not passed and could not be determined from the environment. This was the error I'm getting when i tried to...
Read more >
arcpy.mp.ArcGISProject - OSError - Esri Community
I'm running a script to overwrite vector tile packages written by Kelly Gerrow. I added some code to create a vector tile package...
Read more >
Random TNS-01115: OS error 22 creating shared memory ...
Random TNS-01115: OS error 22 creating shared memory segment of 117 bytes with key though under the project.max-shm-memory cap (Doc ID 2409271.1).
Read more >
For loop can not find the next raster object in the geodatabase ...
For loop can not find the next raster object in the geodatabase. OSError: "" does not exist · Have you tried inspecting "fire_intensity_42_img" ......
Read more >
Google auth not working in python console: OSError - YouTrack
PY-42414 Created by Sergey Karpov 3 years ago Updated by Sergey Karpov 3 years ago ... Google auth not working in python console:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found