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

[BUG] No such file or directory: '~/.neopo/cache/manifest.json' #9

Closed
toluschr opened this issue Jul 14, 2020 · 7 comments
Closed

[BUG] No such file or directory: '~/.neopo/cache/manifest.json' #9

toluschr opened this issue Jul 14, 2020 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@toluschr
Copy link

toluschr commented Jul 14, 2020

Describe the bug
Script throws python error

To Reproduce
Steps to reproduce the behavior:

  1. python3 <(curl -SL https://raw.githubusercontent.com/nrobinson2000/neopo/master/bin/install.py)
  2. neopo create blink-led
Initializing project in directory /mnt/data/particle/blink-led...
> A new project has been initialized in directory /mnt/data/particle/blink-led
Initialized empty Git repository in /mnt/data/particle/blink-led/.git/
Traceback (most recent call last):
  File "/home/tom/bin/neopo", line 947, in main
    commands[args[1]](args)
  File "/home/tom/bin/neopo", line 666, in create_command
    create(os.path.dirname(projectPath), os.path.basename(projectPath))
  File "/home/tom/bin/neopo", line 423, in create
    version = loadManifest(False)["deviceOS"]
  File "/home/tom/bin/neopo", line 220, in loadManifest
    with open(jsonFiles["manifest"], "r") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/tom/.neopo/cache/manifest.json'
An unexpected error occurred!
To report this error on GitHub, please open an issue:
https://github.com/nrobinson2000/neopo/issues

Expected behavior
It works

Desktop (please complete the following information):

  • OS: Void Linux
@toluschr toluschr added the bug Something isn't working label Jul 14, 2020
@toluschr toluschr changed the title [BUG] [BUG] No such file or directory: '/home/tom/.neopo/cache/manifest.json' Jul 14, 2020
@toluschr toluschr changed the title [BUG] No such file or directory: '/home/tom/.neopo/cache/manifest.json' [BUG] No such file or directory: '~/.neopo/cache/manifest.json' Jul 14, 2020
@nrobinson2000
Copy link
Owner

I haven’t tested neopo on Void Linux, but I am glad to support it.

In order for neopo to work you need to install dependencies like gcc-arm, deviceOS, etc.

To install these dependencies run:

neopo install

~/.neopo/cache/manifest.json will be created during the installation.

Also, you will need to install some other dependencies with your package manager in order to get the compiler to work. Have a look at the install.sh to get an idea.

@toluschr
Copy link
Author

toluschr commented Jul 14, 2020

@nrobinson2000 Thanks for the quick reply. I installed those dependencies manually using (sudo xbps-install dfu-util python3 git vim perl-Archive-Zip). I overlooked the line containing neopo install. It now seems to work just fine!

@nrobinson2000
Copy link
Owner

Great to hear! I’ll add that to install.sh so anyone else on Void Linux can use the universal installer as well.

$ bash <(curl -sL neopo.xyz/install)

@toluschr
Copy link
Author

It's probably perl-Archive-Zip instead of libarchive-devel. The script works without it though.

@nrobinson2000
Copy link
Owner

Interesting. The Particle makefile requires acrc32 program and perl-Archive-Zip supplies that on other distros.

@toluschr
Copy link
Author

It's the same on Void. I probably just haven't used the function that requires it yet.

@nrobinson2000
Copy link
Owner

nrobinson2000 commented Jul 14, 2020

@toluschr

I whipped up a Void Linux VM and I did some testing. To get neopo build working I had to install the packages you suggested as well as void-repo-multilib glibc-32bit in order to run 32-bit gcc-arm. I have added support for Void Linux in install.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants