ide-python icon indicating copy to clipboard operation
ide-python copied to clipboard

Error when starting Atom from terminal

Open fullonic opened this issue 6 years ago • 1 comments

Hey, I have the follow error when opening atom from the terminal with atom . Once atom is opened, every time a open a python module I get the error.

internal/child_process.js:358 Uncaught (in promise) Error: spawn ENOTDIR
    at ChildProcess.spawn (internal/child_process.js:358)
    at Object.spawn (child_process.js:543)
    at resolve (/home/somnium/.atom/…thon/lib/utils.js:9)
    at new Promise (<anonymous>)
    at detectPipEnv (/home/somnium/.atom/…thon/lib/utils.js:8)
    at PythonLanguageClient.startServerProcess (/home/somnium/.atom/…thon/lib/main.js:50)
    at PythonLanguageClient.<anonymous> (auto-languageclient.ts:298)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…languageclient.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/somnium/.atom/…languageclient.js:3)
    at process.reportBusyWhile (auto-languageclient.ts:298)
    at AtomIdeProvider.<anonymous> (atom-ide-provider.js? [sm]:7)
    at Generator.next (<anonymous>)
    at step (/home/somnium/.atom/…m-ide-provider.js:9)
    at /home/somnium/.atom/…m-ide-provider.js:9
    at new Promise (<anonymous>)
    at AtomIdeProvider.<anonymous> (/home/somnium/.atom/…m-ide-provider.js:9)
    at Object.reportBusyWhile (index.js? [sm]:33)
    at PythonLanguageClient.<anonymous> (auto-languageclient.ts:798)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…languageclient.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/somnium/.atom/…languageclient.js:3)
    at PythonLanguageClient.AutoLanguageClient.reportBusyWhile (auto-languageclient.ts:796)
    at PythonLanguageClient.<anonymous> (auto-languageclient.ts:296)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…languageclient.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/somnium/.atom/…languageclient.js:3)
    at PythonLanguageClient.startServer (auto-languageclient.ts:295)
    at ServerManager._serverManager.server_manager_js_1.ServerManager [as _startServer] (auto-languageclient.ts:253)
    at ServerManager.<anonymous> (server-manager.ts:155)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…server-manager.js:7
    at new Promise (<anonymous>)
internal/child_process.js:358 Uncaught (in promise) Error: spawn ENOTDIR
    at ChildProcess.spawn (internal/child_process.js:358)
    at Object.spawn (child_process.js:543)
    at resolve (/home/somnium/.atom/…thon/lib/utils.js:9)
    at new Promise (<anonymous>)
    at detectPipEnv (/home/somnium/.atom/…thon/lib/utils.js:8)
    at PythonLanguageClient.startServerProcess (/home/somnium/.atom/…thon/lib/main.js:50)
    at PythonLanguageClient.<anonymous> (auto-languageclient.ts:298)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…languageclient.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/somnium/.atom/…languageclient.js:3)
    at process.reportBusyWhile (auto-languageclient.ts:298)
    at AtomIdeProvider.<anonymous> (atom-ide-provider.js? [sm]:7)
    at Generator.next (<anonymous>)
    at step (/home/somnium/.atom/…m-ide-provider.js:9)
    at /home/somnium/.atom/…m-ide-provider.js:9
    at new Promise (<anonymous>)
    at AtomIdeProvider.<anonymous> (/home/somnium/.atom/…m-ide-provider.js:9)
    at Object.reportBusyWhile (index.js? [sm]:33)
    at PythonLanguageClient.<anonymous> (auto-languageclient.ts:798)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…languageclient.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/somnium/.atom/…languageclient.js:3)
    at PythonLanguageClient.AutoLanguageClient.reportBusyWhile (auto-languageclient.ts:796)
    at PythonLanguageClient.<anonymous> (auto-languageclient.ts:296)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…languageclient.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/somnium/.atom/…languageclient.js:3)
    at PythonLanguageClient.startServer (auto-languageclient.ts:295)
    at ServerManager._serverManager.server_manager_js_1.ServerManager [as _startServer] (auto-languageclient.ts:253)
    at ServerManager.<anonymous> (server-manager.ts:155)
    at Generator.next (<anonymous>)
    at /home/somnium/.atom/…server-manager.js:7
    at new Promise (<anonymous>)

Everything works if I'm starting Atom from desktop icon, however I need to be able to running it from the terminal. When running sudo atom . it works, but I don't get my virtual env installed packages available which makes it impossible to use some other atom plugins features.

My setup: OS: Ubuntu 18 Atom: 1.42 ide-python: 1.5.0

Any help is welcome. Thanks

fullonic avatar Dec 30 '19 12:12 fullonic

any help here please? thanks

fullonic avatar Feb 06 '20 03:02 fullonic