Scapyd raise NotADirectoryError from .egg file
See original GitHub issueI added some text file to my project and when I run scrapyd server from the same folder as my project - all work fine. But If I run scrapyd from supervisor and sending a request for crawling - I’m getting error
File "/tmp/exa-1504178736-lyojtcmr.egg/exa/pipelines.py", line 29, in __init__
File "/tmp/exa-1504178736-lyojtcmr.egg/exa/classificator/news_classify_tag.py", line 29, in __init__
NotADirectoryError: [Errno 20] Not a directory: '/tmp/exa-1504178736-lyojtcmr.egg/exa/classificator/large.txt'
My setup.py
file looks like this
from setuptools import setup, find_packages
setup(
name='project',
version='1.0',
packages=find_packages() + ['exa'],
entry_points={'scrapy': ['settings = exa.settings']},
package_dir={'exa': 'exa'},
package_data={'exa': ['classificator/large.txt']}
)
Why am I getting this error when scrapyd works as a daemon?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Scapyd raise NotADirectoryError from .egg file - Stack Overflow
I fixed this issues, need to use pkg_resources.resource_stream(resource_package, resource_path) for loading file from .egg file.
Read more >[Example code]-Error during pip install ldavis
I have been attempting to install a Python package by the name of 'pyLDAvis' from cmd with no success since over a day...
Read more >The Internal Structure of Python Eggs - Setuptools
A “Python egg” is a logical structure embodying the release of a specific version ... .egg-info format: a file or directory placed adjacent...
Read more >scapyd raise notadirectoryerror from .egg file - splunktool
scapyd raise notadirectoryerror from .egg file. Last Updated : Tue Sep 06 2022. But if I run Scrapyd server from project dir, all...
Read more >Build system - CARLA Simulator - Read the Docs
Requirements, rpclib, gtest, boost, rpclib, boost. std runtime, LLVM's libc++ ... One file is a .whl file and the other is an .egg...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See also: https://github.com/scrapy/scrapyd-client/issues/46
Please see the new docs at https://github.com/scrapy/scrapyd-client#including-static-files and https://github.com/scrapy/scrapyd-client#egg-caveats