Related
I write a little program which writes the audio to text. But it throws an error and I don't know how to fix it.
import speech_recognition as sr
file_name = "halloWelt.wav"
speech_engine = sr.Recognizer()
with sr.AudioFile(file_name) as file:
data = speech_engine.record()
text = speech_engine.recognize_google(data, language='de-DE')
print(text)
The error:
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\site-packages\speech_recognition\__init__.py", line 203, in __enter__
self.audio_reader = wave.open(self.filename_or_fileobject, "rb")
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\wave.py", line 509, in open
return Wave_read(f)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\wave.py", line 163, in __init__
self.initfp(f)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\wave.py", line 130, in initfp
raise Error('file does not start with RIFF id')
wave.Error: file does not start with RIFF id
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\site-packages\speech_recognition\__init__.py", line 208, in __enter__
self.audio_reader = aifc.open(self.filename_or_fileobject, "rb")
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\aifc.py", line 917, in open
return Aifc_read(f)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\aifc.py", line 352, in __init__
self.initfp(file_object)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\aifc.py", line 316, in initfp
raise Error('file does not start with FORM id')
aifc.Error: file does not start with FORM id
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\site-packages\speech_recognition\__init__.py", line 234, in __enter__
self.audio_reader = aifc.open(aiff_file, "rb")
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\aifc.py", line 917, in open
return Aifc_read(f)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\aifc.py", line 358, in __init__
self.initfp(f)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\aifc.py", line 314, in initfp
chunk = Chunk(file)
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\chunk.py", line 63, in __init__
raise EOFError
EOFError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\\OneDrive\Dokumente\Programming\Python\Lets code\speech.py", line 6, in <module>
with sr.AudioFile(file_name) as file:
File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\site-packages\speech_recognition\__init__.py", line 236, in __enter__
raise ValueError("Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format")
ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format
I am trying to install saleor on Linux Mint according to the instructions
https://docs.saleor.io/docs/3.0/developer/installation
When executing the command
docker-compose run --rm api python3 manage.py migrate
I get an error. This is the stack trace. How do I resolve this issue?
$docker-compose run --rm api python3 manage.py migrate
Starting saleor-platform_db_1 ...
Starting saleor-platform_jaeger_1 ... done
Starting saleor-platform_redis_1 ... done
ERROR: for saleor-platform_db_1 a bytes-like object is required, not 'str'
ERROR: for db a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.22/containers/c015b9d2a6e0ba06c8cc393147db2a4eb1a0fc72d1ae2805e177b409bb8212db/start
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/compose/service.py", line 625, in start_container
container.start()
File "/usr/lib/python3/dist-packages/compose/container.py", line 241, in start
return self.client.start(self.id, **options)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/container.py", line 1095, in start
self._raise_for_status(res)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 263, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/lib/python3/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("b'driver failed programming external connectivity on endpoint saleor-platform_db_1 (1b57cb27e18e4e18fad1fde3f6bebb573260974514be140c7e4e0d74d663b7b0): Error starting userland proxy: listen tcp4 0.0.0.0:5432: bind: address already in use'")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 896, in run
run_one_off_container(
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1343, in run_one_off_container
project.up(
File "/usr/lib/python3/dist-packages/compose/project.py", line 565, in up
results, errors = parallel.parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/project.py", line 548, in do
return service.execute_convergence_plan(
File "/usr/lib/python3/dist-packages/compose/service.py", line 567, in execute_convergence_plan
return self._execute_convergence_start(
File "/usr/lib/python3/dist-packages/compose/service.py", line 506, in _execute_convergence_start
_, errors = parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/service.py", line 508, in <lambda>
lambda c: self.start_container_if_stopped(c, attach_logs=not detached, quiet=True),
File "/usr/lib/python3/dist-packages/compose/service.py", line 620, in start_container_if_stopped
return self.start_container(container)
File "/usr/lib/python3/dist-packages/compose/service.py", line 627, in start_container
if "driver failed programming external connectivity" in ex.explanation:
TypeError: a bytes-like object is required, not 'str'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_docker-compose.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status
response.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.22/containers/c015b9d2a6e0ba06c8cc393147db2a4eb1a0fc72d1ae2805e177b409bb8212db/start
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/compose/service.py", line 625, in start_container
container.start()
File "/usr/lib/python3/dist-packages/compose/container.py", line 241, in start
return self.client.start(self.id, **options)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/container.py", line 1095, in start
self._raise_for_status(res)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 263, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/lib/python3/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("b'driver failed programming external connectivity on endpoint saleor-platform_db_1 (1b57cb27e18e4e18fad1fde3f6bebb573260974514be140c7e4e0d74d663b7b0): Error starting userland proxy: listen tcp4 0.0.0.0:5432: bind: address already in use'")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 896, in run
run_one_off_container(
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1343, in run_one_off_container
project.up(
File "/usr/lib/python3/dist-packages/compose/project.py", line 565, in up
results, errors = parallel.parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/project.py", line 548, in do
return service.execute_convergence_plan(
File "/usr/lib/python3/dist-packages/compose/service.py", line 567, in execute_convergence_plan
return self._execute_convergence_start(
File "/usr/lib/python3/dist-packages/compose/service.py", line 506, in _execute_convergence_start
_, errors = parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 112, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 210, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/service.py", line 508, in <lambda>
lambda c: self.start_container_if_stopped(c, attach_logs=not detached, quiet=True),
File "/usr/lib/python3/dist-packages/compose/service.py", line 620, in start_container_if_stopped
return self.start_container(container)
File "/usr/lib/python3/dist-packages/compose/service.py", line 627, in start_container
if "driver failed programming external connectivity" in ex.explanation:
TypeError: a bytes-like object is required, not 'str'
I am using the most lightweight/simple dask multiprocessing which is the non-cluster local Client:
from distributed import Client
client = Client()
Even so: the first instance of invoking dask.bag.compute() results in the following:
Connected to pydev debugger (build 191.7141.48)
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 383, in _on_run
r = self.sock.recv(1024)
OSError: [Errno 9] Bad file descriptor
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 383, in _on_run
r = self.sock.recv(1024)
OSError: [Errno 9] Bad file descriptor
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 383, in _on_run
r = self.sock.recv(1024)
OSError: [Errno 9] Bad file descriptor
The result is that you can more or less flip a coin on whether the program will proceed or error out with a communication exception. Here is what happens when the flip comes up "tails":
Connected to pydev debugger (build 191.7141.48)
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 383, in _on_run
r = self.sock.recv(1024)
OSError: [Errno 9] Bad file descriptor
Process ForkServerProcess-3:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/distributed/core.py", line 178, in __init__
from .counter import Digest
ImportError: cannot import name 'Digest' from 'distributed.counter' (/usr/local/lib/python3.7/site-packages/distributed/counter.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/site-packages/distributed/process.py", line 181, in _run
target(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/distributed/nanny.py", line 587, in _run
worker = Worker(*worker_args, **worker_kwargs)
File "/usr/local/lib/python3.7/site-packages/distributed/worker.py", line 552, in __init__
**kwargs
File "/usr/local/lib/python3.7/site-packages/distributed/node.py", line 76, in __init__
io_loop=self.io_loop,
File "/usr/local/lib/python3.7/site-packages/distributed/core.py", line 180, in __init__
self.digests = defaultdict(partial(Digest, loop=self.io_loop))
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.7/site-packages/distributed/utils.py", line 179, in ignoring
yield
SystemError: error return without exception set
distributed.nanny - WARNING - Worker process 20417 exited with status 1
Traceback (most recent call last):
File "_pydevd_frame_eval/pydevd_frame_evaluator_darwin_37_64.pyx", line 95, in _pydevd_frame_eval.pydevd_frame_evaluator_darwin_37_64.get_bytecode_while_frame_eval
KeyError: '/usr/local/lib/python3.7/site-packages/distributed/bokeh/__init__.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1758, in <module>
main()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1752, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1147, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/git/huddl/python/hamspam/enron.py", line 205, in <module>
client = Client()
File "/usr/local/lib/python3.7/site-packages/distributed/client.py", line 712, in __init__
self.start(timeout=timeout)
File "/usr/local/lib/python3.7/site-packages/distributed/client.py", line 858, in start
sync(self.loop, self._start, **kwargs)
File "/usr/local/lib/python3.7/site-packages/distributed/utils.py", line 331, in sync
six.reraise(*error[0])
File "/usr/local/lib/python3.7/site-packages/six.py", line 693, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/distributed/utils.py", line 316, in f
result[0] = yield future
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 729, in run
value = future.result()
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 736, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "/usr/local/lib/python3.7/site-packages/distributed/client.py", line 928, in _start
yield self.cluster
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 729, in run
value = future.result()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 736, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "/usr/local/lib/python3.7/site-packages/distributed/deploy/local.py", line 284, in _start
yield [self._start_worker(**self.worker_kwargs) for i in range(n_workers)]
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 729, in run
value = future.result()
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 501, in callback
result_list.append(f.result())
File "/usr/local/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
yielded = self.gen.send(value)
File "/usr/local/lib/python3.7/site-packages/distributed/deploy/local.py", line 316, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
Any advice on this?
There will be even more issues/complications when trying to use a LocalCluster mode -but that will be saved for a different question.
devignesh#devignesh:~/soup$ pip list
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2556, in version
return self._version
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2663, in __getattr__
raise AttributeError(attr)
AttributeError: _version
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/basecommand.py", line 141, in main
status = self.run(options, args)
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/list.py", line 143, in run
self.output_package_listing(packages, options)
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/list.py", line 208, in output_package_listing
data, header = format_for_columns(packages, options)
File "/usr/local/lib/python3.5/dist-packages/pip/_internal/commands/list.py", line 274, in format_for_columns
row = [proj.project_name, proj.version]
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2561, in version
raise ValueError(tmpl % self.PKG_INFO, self)
ValueError: ("Missing 'Version:' header and/or METADATA file", Unknown [unknown version] (/home/devignesh/.local/lib/python3.5/site-packages))
devignesh#devignesh:~/soup$
I've been trying to compile numpy from source using Intel MKL and the Intel C/C++ compilers. I have a student license which gives me access to these compilers/MKL. It appears that I built numpy but when I run numpy.test('full') I get these errors:
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1565, in close
fp.close()
OSError: [Errno 28] No space left on device
EException ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba36cd02e8>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1560, in close
self.fp.flush()
OSError: [Errno 28] No space left on device
/usr/lib/python3.4/unittest/case.py:605: ResourceWarning: unclosed file <_io.BufferedWriter name='/tmp/tmpgl9796ik.npz'>
outcome.errors.clear()
EException ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba3727f550>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1565, in close
fp.close()
OSError: [Errno 28] No space left on device
EEException ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba329a76a0>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1468, in close
pos1 = self.fp.tell()
File "/usr/lib/python3.4/tempfile.py", line 399, in func_wrapper
return func(*args, **kwargs)
ValueError: I/O operation on closed file
EEEException ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba329a78d0>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1468, in close
pos1 = self.fp.tell()
ValueError: I/O operation on closed file
EF....E.EEException ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba329a7fd0>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1565, in close
fp.close()
OSError: [Errno 28] No space left on device
Exception ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba329a73c8>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1565, in close
fp.close()
OSError: [Errno 28] No space left on device
Exception ignored in: <bound method ZipFile.__del__ of <zipfile.ZipFile object at 0x7fba329a7da0>>
Traceback (most recent call last):
File "/usr/lib/python3.4/zipfile.py", line 1457, in __del__
self.close()
File "/usr/lib/python3.4/zipfile.py", line 1565, in close
fp.close()
OSError: [Errno 28] No space left on device
warnings.warn("Warning: converting a masked element to nan.")
======================================================================
ERROR: test_big_arrays (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
return f(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 199, in test_big_arrays
np.savez(tmp, a=a)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: 2147583648 requested and 2021494704 written
======================================================================
ERROR: test_closing_fid (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 282, in test_closing_fid
np.savez(fp, data='LOVELY LOAD')
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_closing_zipfile_after_load (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 309, in test_closing_zipfile_after_load
np.savez(tmp, lab='place holder')
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_format_2_0 (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 538, in write_array
version)
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 319, in _write_array_header
fp.write(header)
OSError: [Errno 28] No space left on device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 166, in test_format_2_0
self.check_roundtrips(a)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 111, in check_roundtrips
self.roundtrip(a)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 179, in roundtrip
RoundtripTest.roundtrip(self, np.savez, *args, **kwargs)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 92, in roundtrip
save_func(target_file, *arr, **save_kwds)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_mmap (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 92, in roundtrip
save_func(target_file, *arr, **save_kwds)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/testing/decorators.py", line 215, in knownfailer
return f(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 152, in test_mmap
self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'})
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 179, in roundtrip
RoundtripTest.roundtrip(self, np.savez, *args, **kwargs)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 107, in roundtrip
if not isinstance(arr_reloaded, np.lib.npyio.NpzFile):
UnboundLocalError: local variable 'arr_reloaded' referenced before assignment
======================================================================
ERROR: test_multiple_arrays (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 208, in test_multiple_arrays
self.roundtrip(a, b)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 179, in roundtrip
RoundtripTest.roundtrip(self, np.savez, *args, **kwargs)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 92, in roundtrip
save_func(target_file, *arr, **save_kwds)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_named_arrays (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 214, in test_named_arrays
np.savez(c, file_a=a, file_b=b)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_not_closing_opened_fid (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 255, in test_not_closing_opened_fid
np.savez(fp, data='LOVELY LOAD')
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_record (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 159, in test_record
self.check_roundtrips(a)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 111, in check_roundtrips
self.roundtrip(a)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 179, in roundtrip
RoundtripTest.roundtrip(self, np.savez, *args, **kwargs)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 92, in roundtrip
save_func(target_file, *arr, **save_kwds)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_io.test_gzip_loadtxt
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 1684, in test_gzip_loadtxt
os.write(f, s.read())
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_io.test_npzfile_dict
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 1708, in test_npzfile_dict
np.savez(s, x=x, y=y)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_io.test_load_refcount
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 597, in _savez
format.write_array(fid, np.asanyarray(val))
File "/usr/lib/python3.4/site-packages/numpy/lib/format.py", line 562, in write_array
array.tofile(fp)
OSError: first argument must be a string or open file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 1735, in test_load_refcount
np.savez(f, [1, 2, 3])
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 534, in savez
_savez(file, args, kwds, False)
File "/usr/lib/python3.4/site-packages/numpy/lib/npyio.py", line 603, in _savez
fid.close()
OSError: [Errno 28] No space left on device
======================================================================
ERROR: test_fromtextfile (test_mrecords.TestMRecordsImport)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/ma/tests/test_mrecords.py", line 489, in test_fromtextfile
os.write(tmp_fd, fcontent)
OSError: [Errno 28] No space left on device
======================================================================
FAIL: test_savez_filename_clashes (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/numpy/lib/tests/test_io.py", line 245, in test_savez_filename_clashes
raise AssertionError(errors)
AssertionError: [OSError(28, 'No space left on device'), OSError(28, 'No space left on device'), OSError(28, 'No space left on device')]
----------------------------------------------------------------------
Ran 5762 tests in 122.291s
FAILED (KNOWNFAIL=6, SKIP=17, errors=13, failures=1)
Any idea what's going on or where it might be going wrong?