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

FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.lexaloffle/pico-8/config.txt' #1

Open
arthurlutz opened this issue Aug 16, 2019 · 1 comment

Comments

@arthurlutz
Copy link

# p8dl 
need a cart-id as argument! (for example, 10022 gets you Hug Arena)
# p8dl 10022
Traceback (most recent call last):
  File "/home/arthur/.virtualenvs/p8dl/bin/p8dl", line 10, in <module>
    sys.exit(main())
  File "/home/arthur/.virtualenvs/p8dl/lib/python3.6/site-packages/p8dl/cli.py", line 12, in main
    path, httpmsg = cartretrieve(cart_id)
  File "/home/arthur/.virtualenvs/p8dl/lib/python3.6/site-packages/p8dl/downloader.py", line 37, in cartretrieve
    url, path = cart_url(cart_id), cart_path(cart_id)
  File "/home/arthur/.virtualenvs/p8dl/lib/python3.6/site-packages/p8dl/downloader.py", line 31, in cart_path
    pico8_config_var('root_path'),
  File "/home/arthur/.virtualenvs/p8dl/lib/python3.6/site-packages/p8dl/downloader.py", line 23, in pico8_config_var
    with open(os.path.join(pico8_path(), 'config.txt')) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/arthur/.lexaloffle/pico-8/config.txt'

Would there be a way to work without this configuration file ? Or a way to create it ?

@franciscod
Copy link
Owner

Yes, definitely should download the file anyway (the working directory being the target candidate).

This was made before splore was a thing and maybe it's not too useful anymore... have you checked that out? Is this still useful? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants