and here is my setup file
what I can see that is build/lib input directory is not mirrored
setup(
name = 'project',
version = '1.0',
packages = find_packages(),
package_data={
'project': ['input/*.csv']
},
entry_points = {'scrapy': ['settings = kompassdotcom.settings']},
zip_safe=False,
)
Did you follow this guide: https://support.scrapinghub.com/support/solutions/articles/22000200416-deploying-non-code-files?
Yes I did.
the folder input aint created in build
if you have a look into attached 1.png, you'll see the structure of the project
The article suggests to use:
import pkgutil data = pkgutil.get_data("myproject","resources/cities.txt")
It seems like you're trying to open() it. By using pkgutil, you're are already reading the data and there's no need to use open().
rafalf
I have a piece of code in my spider that read a csv file and it fails
any solution