VirtualBox anaconda installation failing - anaconda

Having trouble installing anaconda on my Ubuntu VirtualBox. Have tried rebooting and have tried assigning a bigger chunk of base memory but still failing at the final few hurdles.
Unpacking payload ...
concurrent.futures.process._RemoteTraceback:
'''
Traceback (most recent call last):
File "concurrent/futures/process.py", line 368, in _queue_management_worker
File "multiprocessing/connection.py", line 251, in recv
TypeError: __init__() missing 1 required positional argument: 'msg'
'''
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "entry_point.py", line 69, in <module>
File "concurrent/futures/process.py", line 484, in _chain_from_iterable_of_lists
File "concurrent/futures/_base.py", line 611, in result_iterator
File "concurrent/futures/_base.py", line 439, in result
File "concurrent/futures/_base.py", line 388, in __get_result
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or
pending.
[1981] Failed to execute script entry_point

Related

Keep on getting error while trying to upload to esp32-cam

I just got my new esp32-cam and I keeps giving me the error below even though i did everything in the tutorial video I found on youtube correctly and even watched several others and it still gives the error
Traceback (most recent call last):
File "esptool.py", line 3682, in <module>
File "esptool.py", line 3675, in _main
File "esptool.py", line 3329, in main
File "esptool.py", line 263, in __init__
File "site-packages\serial\__init__.py", line 88, in serial_for_url
File "site-packages\serial\serialwin32.py", line 78, in open
File "site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: WindowsError(31, 'A device attached to the system is not functioning.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected

ERROR: for mysql a bytes-like object is required, not 'str' using docker-compose and laravel sail

I’ve rebooted my system and then run all my containers using the vendor/bin/sail up command, the only one that failed to reload was MySQL. The error is the following :
ERROR: for mysql 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.25/containers/afdd1cbf7f45d9b20612bca
f73eef1b0bc1dd631bc6aa3dcfbf630c64e8a3662/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'Ports are not available: listen tcp 0.0.0.0:3306: bind: An attempt was made
to access a socket in a way forbidden by its access permissions.'")
I’m running this container on ubuntu server 20.04.
It might fix the problem if you provide an absolute path to your nginx/mysql conf file. I haven't tried the solution yet.

How to fix a broken pip in anaconda without removing dependent packages?

When I try to install something with pip I get the message
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Though, when I follow the advise here, I get:
Collecting pip Using cached
https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Exception: Traceback (most recent call last): File
"/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py",
line 2862, in _dep_map
return self.dep_map File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init.py",
line 2669, in getattr
raise AttributeError(attr) AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File
"/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py",
line 93, in init
req = REQUIREMENT.parseString(requirement_string) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py",
line 1632, in parseString
raise exc File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py",
line 1622, in parseString
loc, tokens = self._parse( instring, 0 ) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py",
line 1379, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py",
line 3395, in parseImpl
loc, exprtokens = e._parse( instring, loc, doActions ) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py",
line 1383, in _parseNoCache
loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pyparsing.py",
line 3183, in parseImpl
raise ParseException(instring, loc, self.errmsg, self) pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 33),
(line:1, col:34)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File
"/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py",
line 2942, in init
super(Requirement, self).init(requirement_string) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py",
line 97, in init
requirement_string[e.loc:e.loc + 8])) pip._vendor.packaging.requirements.InvalidRequirement: Invalid
requirement, parse error at "'; extra '"
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File
"/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_internal/basecommand.py",
line 228, in main
status = self.run(options, args) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_internal/commands/install.py",
line 318, in run
self._warn_about_conflicts(to_install) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_internal/commands/install.py",
line 442, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install) File
"/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_internal/operations/check.py",
line 89, in check_install_conflicts
state = create_package_set_from_installed() File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_internal/operations/check.py",
line 39, in create_package_set_from_installed
retval[name] = PackageDetails(dist.version, dist.requires()) File
"/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py",
line 2613, in requires
dm = self._dep_map File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py",
line 2864, in _dep_map
self.dep_map = self._compute_dependencies() File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init.py",
line 2874, in _compute_dependencies
reqs.extend(parse_requirements(req)) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py",
line 2935, in parse_requirements
yield Requirement(line) File "/home/.../miniconda3/envs/py3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py",
line 2944, in init
raise RequirementParseError(str(e)) pip._vendor.pkg_resources.RequirementParseError: Invalid requirement,
parse error at "'; extra '" You are using pip version 18.0, however
version 18.1 is available. You should consider upgrading via the 'pip
install --upgrade pip' command.
I tried conda install pip that did not help. when I try conda remove pip it wants to remove all the dependent packages, which is not what I really want to do. Any idea how to fix it without screwing up my environment?
This particular problem was caused by testpath. I removed that package with pip remove testpath and then I could update pip without errors. Unfortunately, the error message did not point me there. I found this solution at a GitHub issue page.
https://github.com/conda-forge/testpath-feedstock/issues/7

Deploy Laravel on Cloud Foundry

I`m trying to deploy Laravel on Cloud Foundry, but at the end, it failed.
I followed this tutorial step by step. Also, I tried to solve my problem by this question but it doesn't work for me. And the overall view of my app is looks like this
However this is the errors, when I push the app to cf:
WARNING: A version of PHP has been specified in both `composer.json` and `./bp-config/options.json`.
WARNING: The version defined in `composer.json` will be used.
The extension 'fpm' is not provided by this buildpack.
The extension 'tokenizer' is not provided by this buildpack.
[ErrorException]
file_put_contents(/tmp/app/htdocs/bootstrap/cache/services.json): failed to open stream: No such file or directory
-----> Composer command failed
Traceback (most recent call last):
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/scripts/compile.py", line 50, in <module>
.from_build_pack('lib/additional_commands')
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/lib/build_pack_utils/builder.py", line 208, in extensions
process_extension(path, ctx, 'compile', process, args=[self])
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/lib/build_pack_utils/utils.py", line 69, in process_extension
success(getattr(extn, to_call)(*args))
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/extensions/composer/extension.py", line 414, in compile
return composer.compile(install)
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/lib/extension_helpers.py", line 154, in compile
self._compile(install)
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/extensions/composer/extension.py", line 181, in _compile
self.run()
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/extensions/composer/extension.py", line 316, in run
*self._ctx['COMPOSER_INSTALL_OPTIONS'])
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/extensions/composer/extension.py", line 360, in run
shell=True)
File "/tmp/buildpacks/ca44b1cd9a98d10d3246e577384a9145/lib/build_pack_utils/runner.py", line 109, in stream_output
raise CalledProcessError(retcode, cmd)
build_pack_utils.runner.CalledProcessError: Command '<open file '<fdopen>', mode 'w' at 0x7fa7340816f0>' returned non-zero exit status 1
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223
I need your help to solve this issue!

python urllib2.urlopen errno 61 (again?!?)

Ok, I know this error has come up before, and yes, I'm using python 2.7.3 on mac osx 10.7.5 (also same error using mavericks), not the latest or best. But (of course) it's legacy code -- and it worked yesterday, and it doesn't work today.
What changed? Well, I did switch from RCN to Comcast as ISP provider, and also moved cities. I don't see any previous posts about those specific changes, and I've tried everything I can think of, over many hours.
I can reproduce the error with this:
import urllib2
urllib2.urlopen('http://ichart.yahoo.com/table.csv?s=ABT&a=11&b=27&c=2013&d=0&e=&(e)s&f=2013')
And the error is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 418, in _open
'_open', req)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1177, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 61] Connection refused>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1177, in do_open
raise URLError(err)
urllib2.URLError: urlopen error [Errno 61] Connection refused
If I put that url into a browser, it says cannot connect. So it may not be a python issue. I doubt the website has been down for as long as I've tried to make it work. I've checked the proxies, and as far as I can tell, I'm not using a proxy.
Any ideas out there?

Resources