Oracle VirtualBox - cannot import image - virtual-machine

Before I was able on Win10 to import the same image (created on VirtualBox 6 on linux machine) but now I'm not able to import it any more in VirtualBox v6.0.8 (on WIndows 10 machine). I get the error message:
Failed to import appliance C:\Users\sbrbot\Downloads\mywebapp.ova
Result Code: E_INVALIDARG (0x80070057)
The image file (mywebapp.ova) is not corrupted because I can import it into VirtualBox v5.2 (interesting, it was created on VBox6 and can import on VBox5.2 but not VBox6.0.8)
What could be the problem?

Take a look at your logs, tipically "C:\Users\<%Username%>\.VirtualBox\VBoxSVC.log". Maybe you can found there further information. In my case I found a message like this:
00:02:36.889818 createImport ERROR [COM]: aRC=VBOX_E_FILE_ERROR (0x80bb0004) aIID={ad47ad09-787b-44ab-b343-a082a3f2dfb1} aComponent={MediumWrap} aText={Could not create the imported medium 'F:\Data\User\Linux\VMLinux\OracleLinux\OracleLinux-disk001.vdi'.
00:02:36.889872 createImport VMDK: Compressed image is corrupted 'C:\Users\User\OracleLinux-disk001.vmdk' (VERR_ZIP_CORRUPTED)}, preserve=false aResultDetail=-22001
I downloaded the same image and then imported again without any error.

Related

ImportError: cannot import name 'IEX_CLOUD_API_TOKEN' from 'secrets'

I'm facing the above error when I try to execute the following code:
from secrets import IEX_CLOUD_API_TOKEN
I tried using '.secrets' instead of 'secrets' but that gives the ModuleNotFoundError.
It's not a problem with the secrets library or anything of such kind.
It's just that after uploading secrets.py to the working directory, restart the kernel in your jupyter notebook.
Code shall run !!

pandas not works for django?

I saw the first rocket.
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world.")
'Hello, world.' it's ok!
also 'python manage.py migrate' ok.
But when I import pandas...
(import only and no use.)
from django.http import HttpResponse
import pandas as pd
def index(request):
return HttpResponse("Hello, world.")
Browser thinks forever.
How can I fix this issue?
my environment
OS: CentOS Linux release 7.7.1908 (Core)
Pandas: 0.19.2
Apache: 2.4.6 (CentOS)
Django: 2.1
Browser: Google Chrome 76.0.3809.132
# python --version
Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
simply, Anaconda is older?
Please let me know if there is any missing information.
Progress after that. Tried "Panda" update.
#Conda installs panda
I was able to clear the browser thinking during the import error.
I will re-install Newest Anaconda.
(_mysql_exceptions.OperationalError) (2006, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)") (Background on this error at: sqlalche.me/e/e3q8)
Currently, if you don't use django, you can execute SQL from py file to MySQL.
The situation has improved. It hasn't been resolved yet, but the error has changed this morning. I will challenge again when the work is over.
Settled! I think anaconda was old. Speaking of which, it took about two years to build a VPS, and anaconda was the version at that time.

Failed to parse service&apos

Visual Studio 2017 Preview : Python workload : Python 3.6 : Anaconda3
I have:
import cx_Oracle as ax
import numpy as nm
import pandas as pd
All of these packages have been installed in Anaconda3/Lib/site-packages
When using Debug (F5) with a breakpoint on import numpy as nm - I step over that statement and all is well. However, when I step over import pandas as pd an error message pops up:
The debug adapter exited unexpectedly.
When I step into this statement the message is
Frame not in module - The current stack frame was not found in a loaded module.
When I view the disassembly, the message is No disassembly available.
The activity log error is:
Failed to parse service&apos;s registered package GUID ({BEB01DDF-9D2B-435B-A9E7-76557E2B6B52) for service {094e1961-17bf-4038-9bde-e7e11825c67b} as a GUID.
This issue also occurs on the import matplotlib statement.
I have looked on the internet for an answer to this issue but cannot find one. I am very new to Visual Studio and to Python. Any assistance would be greatly appreciated.
Thanks

OpenAI Gym error running demo from intro page

I installed OpenAI Gym and attempted to run the getting-started cart-pole demo (https://gym.openai.com/docs/). (I'm running in a Colab notebook.)
import gym
env = gym.make('CartPole-v0')
env.reset()
for _ in range(1000):
env.render()
env.step(env.action_space.sample()) # take a random action
This doesn't learn, but it should display the cart and pole.
When I run it I get a warning and an error.
WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype.
The error is triggered by env.render(). At the bottom of the Traceback is
Error occured while running `from pyglet.gl import *`
The original exception was:
ImportError: Library "GL" not found.
I had installed pyOpenGL with the following.
!pip install PyOpenGL PyOpenGL_accelerate
I'd appreciate help with both the warning and the error. Is there another GL library I should install?
Thanks.
Google Colab is run in the cloud. It can't send the graphic display back to your monitor.
You can try running it with local runtime.
https://research.google.com/colaboratory/local-runtimes.html
Do you get this window?
If yes then try to add this import:
import time
and this line of Code within the for-loop:
time.sleep(0.3)
Thing is that the pole runs out of view rather quick, so it seems like
the Environment did not run at all.

import matplotlib.pyplot crashes on jupyter notebook

I have a jupyter notebook running on a remote cluster to which I have set up an ssh tunnel. Everything was working fine till today. Now everytime I do :
import matplotlib # This works
%matplotlib inline # This causes kernel to restart
import matplotlib.pyplot # This also causes the kernel to restart
Running a standalone ipython interpreter and doing :
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot ## Leads to Core dumped : Segementation Fault
Running the same on a python interpreter works fine.
Jupyter version : 4.1.1
Python version : 2.7.7
Any help would be much appreciated.
Thank You
Often, this kind of error seems to be related to the backend. Have you tried any other backends? Do these result in the same error? Like this we could narrow down the source of the error.
(I don't have a remote cluster, so I can not reproduce it.)
You can find available backends as described here.
I perhaps have the same problem but on my local machine. I got into jupyter3-qtconsole 4.2.1 with Python 3.4.5 and IPython 5.0.0. and enter
`%matplotlib
Using matplotlib backend: Qt4Agg`
the error message (shortened):
File "/usr/lib64/python3.4/site-packages/tornado/ioloop.py", line 603, in _run_callback
ret = callback()
and finally
from IPython.core.interactiveshell import NoOpContext as context
ImportError: cannot import name 'NoOpContext'
Same thing happens in a notebook but in a straightforward IPython terminal, everything runs OK
Hope this is helpful to someone