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

Unable to run a YAML pipeline where the resources are zipped datapackage files #117

Open
norahw opened this issue Jan 25, 2018 · 1 comment
Assignees
Labels

Comments

@norahw
Copy link

norahw commented Jan 25, 2018

Hi there

When attempting to stream zipped datapackage files as resources, I get an error stating the temp directory does not exist:
ERROR log from processor stream_remote_resources:
+--------
| Traceback (most recent call last):
| File "/anaconda/lib/python3.6/site-packages/datapackage_pipelines/specs/../lib/stream_remote_resources.py", line 212, in
| rows = stream_reader(resource, url, ignore_missing or url == "")
| File "/anaconda/lib/python3.6/site-packages/datapackage_pipelines/specs/../lib/stream_remote_resources.py", line 169, in stream_reader
| schema, headers, stream, close = get_opener(url, _resource)()
| File "/anaconda/lib/python3.6/site-packages/datapackage_pipelines/specs/../lib/stream_remote_resources.py", line 154, in opener
| _stream.open()
| File "/anaconda/lib/python3.6/site-packages/tabulator/stream.py", line 169, in open
| source = tempfile.NamedTemporaryFile(suffix='.' + name)
| File "/anaconda/lib/python3.6/tempfile.py", line 549, in NamedTemporaryFile
| (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
| File "/anaconda/lib/python3.6/tempfile.py", line 260, in _mkstemp_inner
| fd = _os.open(file, flags, 0o600)
| FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/hv/8kj9pgt513q6kx2h29yyrrfr0000gn/T/tmprg7n15qi.data/55e4d040-1491-4ef1-9d3d-66b05fae4280.csv'
+--------

Thanks a lot

  • [ Python 3.6.1 :: Anaconda 4.4.0 (x86_64)]
  • [ macOS High Sierra 10.13.2]
@akariv
Copy link
Member

akariv commented Jan 25, 2018

Thanks for reporting @norahw - will try to reproduce.

@akariv akariv self-assigned this Jan 25, 2018
@akariv akariv added the bug label Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants