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.

No such file or directory: 'browsers.json'

See original GitHub issue

Prerequisites

  • Did you read FAQ section?
  • Did you test with the latest releases or commit ?

Description

newest versions looks for browser.json not in main directory but the working directory of the command window ( in my case the downloadlistdirectory)

When I copy the browser.json to my downloadlistdirectory ( which is the working directory), then it works. But I guess it should work when the file is with the other program files.

[Description of the bug or feature]

Steps to Reproduce

probably just starting pixivdownloader from a different working directory

  1. [First Step]
  2. [Second Step]
  3. [and so on…]

Expected behavior: [What you expected to happen] pixiv starts normal

Actual behavior: [What actually happened] error Traceback (most recent call last): File “<frozen importlib._bootstrap>”, line 991, in _find_and_load File “<frozen importlib._bootstrap>”, line 975, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 655, in _load_unlocked File “<frozen importlib._bootstrap>”, line 618, in _load_backward_compatible File “<frozen zipimport>”, line 259, in load_module File “PixivArtistHandler.pyc”, line 9, in <module> File “<frozen importlib._bootstrap>”, line 991, in _find_and_load File “<frozen importlib._bootstrap>”, line 975, in _find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 655, in _load_unlocked File “<frozen importlib._bootstrap>”, line 618, in _load_backward_compatible File “<frozen zipimport>”, line 259, in load_module File “PixivBrowserFactory.pyc”, line 26, in <module> File “<frozen importlib._bootstrap>”, line 991, in find_and_load File “<frozen importlib._bootstrap>”, line 975, in find_and_load_unlocked File “<frozen importlib._bootstrap>”, line 655, in load_unlocked File “<frozen importlib._bootstrap>”, line 618, in load_backward_compatible File “<frozen zipimport>”, line 259, in load_module File “PixivOAuth.pyc”, line 16, in <module> File “PixivOAuth.pyc”, line 30, in PixivOAuth File "cloudscraper_init.pyc", line 748, in create_scraper File "cloudscraper_init.pyc", line 136, in init File "cloudscraper\user_agent_init.pyc", line 20, in init File "cloudscraper\user_agent_init.pyc", line 78, in loadUserAgent FileNotFoundError: [Errno 2] No such file or directory: ‘browsers.json’

Versions

PixivDownloader2 version 20201025

You can get this information from executing PixivUtil2.py --help. Latest version available in https://github.com/Nandaka/PixivUtil2/releases

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Nandakacommented, Oct 31, 2020

can you try the latest version, I tried to patch the lib so it will resolve the browser.json from the executable location

0reactions
Nandakacommented, Oct 28, 2020

If you run from source code, then yes. It is limitation of the library if compiled using py2exe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

read error: open /etc/selenoid/browsers.json: no such file or ...
The error is self-explaining: you don't have browsers.json in directory you are mounting to /etc/selenoid inside container.
Read more >
Selenoid restarting in docker for windows · Issue #469 - GitHub
json : no such file or directory. I'm using the latest cm and selenoid images.
Read more >
Selenoid - Aerokube
Selenoid does not start: open config/browsers.json: no such file or directory. This usually happens when Selenoid is started in Docker ...
Read more >
Provide possibility to run browsers.json by one click on "Launch"
It should be possible to run browsers.json with the default settings in one click - just by clicking on "Launch" (without opening configuration)....
Read more >
Troubleshooting | Cypress Documentation
If this does not succeed, it will fall back to the Linux browser detection ... to socket /var/run/dbus/system_bus_socket: No such file or directory...
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