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.

Fail to install MagicPython in Atom

See original GitHub issue
  • Editor name and version:
  • Platform:
Atom    : 1.23.0-beta1
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0
  • Color scheme:
  • MagicPython version: 1.0.12
  • A sreenshot:
  • 5-10 lines of surrounding code:
fs.js:640
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'C:\Users\SPHS\.atom\packages\MagicPython\package.json'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Proxy.fs.readFileSync (fs.js:508:33)
    at Proxy.fs.readFileSync (C:\Users\SPHS\AppData\Local\atom\app-1.23.0-beta1\resources\app\apm\node_modules\asar-require\lib\require.js:86:27)
    at C:\Users\SPHS\AppData\Local\atom\app-1.23.0-beta1\resources\app\apm\lib\install.js:476:42
    at fn (C:\Users\SPHS\AppData\Local\atom\app-1.23.0-beta1\resources\app\apm\node_modules\async\lib\async.js:582:34)
    at Immediate.<anonymous> (C:\Users\SPHS\AppData\Local\atom\app-1.23.0-beta1\resources\app\apm\node_modules\async\lib\async.js:498:34)
    at runCallback (timers.js:649:20)
    at tryOnImmediate (timers.js:622:5)
    at processImmediate [as _immediateCallback] (timers.js:594:5)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
elpranscommented, Jan 2, 2018

This is an upstream regression. I’ve opened an issue there.

1reaction
mlenzencommented, Dec 29, 2017

I think I was having this problem too:

$ apm install MagicPython
Installing MagicPython to /home/mike/.atom/packages ✓
fs.js:640
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/home/mike/.atom/packages/MagicPython/package.json'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Proxy.fs.readFileSync (fs.js:508:33)
    at Proxy.fs.readFileSync (/usr/share/atom/resources/app/apm/node_modules/asar-require/lib/require.js:86:27)
    at /usr/share/atom/resources/app/apm/lib/install.js:476:42
    at fn (/usr/share/atom/resources/app/apm/node_modules/async/lib/async.js:582:34)
    at Immediate.<anonymous> (/usr/share/atom/resources/app/apm/node_modules/async/lib/async.js:498:34)
    at runCallback (timers.js:649:20)
    at tryOnImmediate (timers.js:622:5)
    at processImmediate [as _immediateCallback] (timers.js:594:5)

I got it to work by changing the capitalization of the package name:

$ apm install magicpython
Installing magicpython to /home/mike/.atom/packages ✓

I’m pretty sure it used to work with the camel case name

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve the error while installing packages in Atom
1 Answer 1 · Close all atom windows. · Rename ~/.atom directory in your /username folder to something else or just delete it....
Read more >
Magic​Python - Package Control
In Atom, install the MagicPython package and disable the built-in language-python package. In Sublime Text, install MagicPython package via “Package ...
Read more >
Python and VS Code - Blog - Bespohk
I install magic python and it is not like that. Simon Coulton • 6 years ago. Pretty sure that's just part of the...
Read more >
How to run Python in Atom? - Reddit
Hi, I am new to Atom and programming in general and I am trying to run a Python script. What packages should I...
Read more >
Python Development in Visual Studio Code
By following examples, you'll cover everything from how to install and ... Keymaps allow users already familiar with Atom, Sublime Text, Emacs, Vim, ......
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