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.

2.0.1 and 2.0.2 crashes opening user_agents.json

See original GitHub issue

The pip installation does not ship user_agents.json therefor, cfscrape (2.0.1 and 2.0.2) crashes:

mkdir cfscrapetest
cd cfscrapetest/
pipenv --three
pipenv install cfscrape
pipenv run python
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cfscrape
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.local/share/virtualenvs/cfscrapetest-uMJOQPOp/lib/python3.5/site-packages/cfscrape/__init__.py", line 22, in <module>
    with open(USER_AGENTS_PATH) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.local/share/virtualenvs/cfscrapetest-uMJOQPOp/lib/python3.5/site-packages/cfscrape/user_agents.json'
>>>

@Anorov @pro-src

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Anorovcommented, May 11, 2019

This is fixed in the latest version. Please upgrade with pip install -U cfscrape.

0reactions
Xonshizcommented, Jun 3, 2019

But, for reference, in future if anyone stumbles upon this area, please do refer to my comments above and the links and mentions by @pro-src

Read more comments on GitHub >

github_iconTop Results From Across the Web

rails g forest_liana:install crash · Issue #536 - GitHub
I actually tried a clean install with rails 6.1.4.4 and ruby 3.0.1 and I'm not able to reproduce your issue. Could you share...
Read more >
React app crashes in IE11 - Stack Overflow
Remove transform-react-inline-elements from plugins list of babel-loader in webpack config file. This requires ES6 Symbol , but it is not ...
Read more >
Changes — Werkzeug Documentation (2.2.x)
Type signature for get_json specifies that return type is not optional when silent=False . ... The user agent parser and the useragents module...
Read more >
Release Notes — Airflow Documentation
Correct the JSON style used for Run config in Grid View (#27119) ... value for [webserver] worker_refresh_interval was 30 seconds for Airflow <=2.0.1....
Read more >
WhatsNew 2.0 | Ktor Framework
Ktor Server I/O operation fails when more than 1 connection is opened by wrk benchmarking tool. https://youtrack.jetbrains.com/issue/KTOR- ...
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