I am working on building some application for linux on a debian distro of linux on a virtualbox. Everything was going great. I turned off my virtualbox and when I start it back up, I get this error and now I cannot even access the os.
Error in /home/****/VirtualBox VMs/Debian/Debian.vbox (line 9) --
Snapshots present but required Machine/#currentSnapshot attribute is
missing.
/build/virtualbox-mnp3zF/virtualbox-5.0.32-dfsg/src/VBox/Main/src-
server/MachineImpl.cpp[480] (nsresult Machine::initFromSettings(VirtualBox*,
const com::Utf8Str&, const com::Guid*)).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}
Callee: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}
Try to add the following attribute to the line 9 of your vbox file:
currentSnapshot="{xxx}",
where xxx should correspond to snapshot uuid (it's a tag within the same file)
hope this works for you...
confirmed, this just happened to me with Oracle VirtualBox 5.1.20 r114628 (Qt5.6.2) ..... and your fix saved all my guest os configuration work of several weeks!!!! thank you so much, Lyoncha!
broken:
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-windows">
<Machine uuid="{d82345e-849b-435402-adgbc-a3210d234d7}" name="MyGuest3" OSType="Ubuntu_64" snapshotFolder="Snapshots" currentStateModified="false" lastStateChange="2017-04-21T17:19:05Z">
<MediaRegistry>
fixed:
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-windows">
<Machine currentSnapshot="{2345623asdf45sdg}" uuid="{d82345e-849b-435402-adgbc-a3210d234d7}" name="MyGuest3" OSType="Ubuntu_64" snapshotFolder="Snapshots" currentStateModified="false" lastStateChange="2017-04-21T17:19:05Z">
<MediaRegistry>
Related
Using interactive Glue Sessions in a Jupyter Notebook was working correctly with the aws-glue-sessions package version 0.32 installed. After upgrading with pip3 install --upgrade jupyter boto3 aws-glue-sessions to version 0.35, the kernel would not start. Gave an error message in GlueKernel.py line 443 in set_glue_version Exception: Valid Glue versions are {'3.0', '2,0} and the Kernel won't start.
Reverting to version 0.32 resolves the issue. Tried installing 0.35, 0.34, 0.33 and get the error, which makes me think it's something I'm doing wrong or don't understand and not something in the product. Is there anything additional I need to do to upgrade the version of the aws-glue-sessions?
Obviously this is not a good workaround - but it worked for me.
I went into the file GlueKernel.py in the directory: \site-packages\aws_glue_interactive_sessions_kernel\glue_pyspark
and hard-coded the 2nd line of this function to set the version to "3.0"
I'm on windows
def set_glue_version(self, glue_version):
glue_version = str("3.0")
if glue_version not in VALID_GLUE_VERSIONS:
raise Exception(f"Valid Glue versions are {VALID_GLUE_VERSIONS}")
self.glue_version = glue_version
I am a bit lost here as well -- and confused. I will add that I am a python newbie. I am running the whole thing on Windows. AWS has an article that describes the installation. So, I am assuming it's supported. I get the same error as #theOtherOne.
line 443 in set_glue_version Exception: Valid Glue versions are {'3.0', '2,0}
I checked GlueKernel.py of glue_pyspark, and found this code:
def _retrieve_os_env_variable(self, key):
_, output = subprocess.getstatusoutput(f"echo ${key}")
return output or os.environ.get(key)
When I run the code below manually, I get $GLUE_VERSION as final result. That obviously doesn't match '2.0' or '3.0'. The command for retrieving environment variables on Windows is a different one. If my understanding is correct, then this whole thing will never work on Windows. Maybe I am the only one who wants to run it on Windows and no one else cares? I got it to work on WSL, but still. I lost quite some time to fix something that cannot be fixed (or can it?)
import subprocess
import os
_, output = subprocess.getstatusoutput(f"echo $GLUE_VERSION")
osoutput = os.environ.get("GLUE_VERSION")
print(output) #$GLUE_VERSION
print (osoutput) #'3.0'
print(output or osoutput) #$GLUE_VERSION
enter image description here
So the issue seems to be that GLUE_VERSION is not set in the environment variables. Once this is set - it works
I am trying to get the demo code for Detectron2 working locally on my laptop. Everything appears to run correctly, but no object instances are detected, even when I use the image from the Colab demo.
I am running on a non-GPU Mac. I followed the installation instructions to install Detectron. I have the following module versions on my machine:
detectron2#git+https://github.com/facebookresearch/detectron2.git#ea3b3f22bf1de58008599794f149149ff65d3780
opencv-python==4.5.3.56
torch==1.9.0
torchvision==0.10.0
I copied demo.py, predictor.py, mask_rcnn_R_101_FPN_3x.yaml, and Base-RCNN-FPN.yaml from Detectron's github. I then ran inference demo with pretrained model command. The specific command was this:
python demo.py --input 000000439715.jpeg --output output --config-file mask_rcnn_R_101_FPN_3x.yaml --opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl MODEL.DEVICE cpu
000000439715.jpeg is the sample image of the man on horseback from the Colab notebook demo. The last line of the output is
000000439715.jpeg: detected 0 instances in 6.77s
The image in the output directory has no annotation on it.
The logging output looks okay to me. The only thing that may be an indication of a problem is a warning at the top
[08/28 12:35:18 detectron2]: Arguments: Namespace(confidence_threshold=0.5, config_file='mask_rcnn_R_101_FPN_3x.yaml', input=['000000439715.jpeg'], opts=['MODEL.WEIGHTS', 'detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl', 'MODEL.DEVICE', 'cpu'], output='output', video_input=None, webcam=False)
[08/28 12:35:18 fvcore.common.checkpoint]: [Checkpointer] Loading from detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl ...
[08/28 12:35:18 fvcore.common.checkpoint]: Reading a file from 'Detectron2 Model Zoo'
WARNING [08/28 12:35:19 fvcore.common.checkpoint]: Some model parameters or buffers are not found in the checkpoint:
I'm not sure what to do about it though.
I tried not specifying the model weights. I also tried setting the confidence threshold to zero. I got the same results.
Am I doing something wrong? What are the next debugging steps?
I met the same question with you, just like:
WARNING [xxxxxxxxx fvcore.common.checkpoint]: Some model parameters or buffers are not found in the checkpoint:
and this warning made my result very bad. Finally I found that I use a wrong weight file.
Hope this can help you.
I keep on getting this error when trying to view objects in the Debugger in PyCharm:
Unable to display children:Attribute not found: value
I have deduced that it is an error with Pycharm itself, not my code
(I get the same error on multiple scripts, but no error on with an older version of Pycharm on 2 different computers)
I'm on PyCharm Community 2017.3.4
Any ideas for workarounds, other than installing an older version?
I am finding similar issues. I too think there is something up with PyCharm it does not work as expected or previous version as you mention. I also found Pyscripter to debug as expected.
In some instances I would rely on the result object, result[0] or result.getOutput(0) to pass to next tool. Instead one can use a variable for the "output" or use the string (name) directly as input for the next tool.
For example,
facility_staging_polygons = os.path.join(outGDB, 'facility_staging_polygons\Polygon_1')
result = arcpy.MakeFeatureLayer_management(facility_staging_polygons, 'facility_staging_polygons_Layer')
# Process: Update Attributes
arcpy.AddField_management('facility_staging_polygons_Layer', "area_calc", "LONG")
I have started XFS implementation of SZZT Pinpad .I am facing an issue with the WFSOpen command Its giving an error “ – 14 “which is mentioned as WFS_ERR_HARDWARE_ERROR in the Manual. Please let us know if we are missing out on any parameter Value for the same .
Also we are unable to find the logical Name for SZZT Pinpad in the Manual . As of now we are using the same name which is been mentioned in the Registry
I've had recently this problem. In my case, it was due to the service provider not being found (more exactly, the SP implementation DLL).
The reason behind, in my case, was that I was using a 64 bits Windows 7. In a 64bits SO, the registry localization is not in HKEY_LOCAL_MACHINE\SOFTWARE\XFS but in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XFS
BTW, the xfs setup puts a 64bitsregs.reg in C:\xfs (or the directory you selected to install the xfs in)
you can find your logical name or service name from below path for windows xp:
general:
HKEY_LOCAL_MACHINE\SOFTWARE\"AtmVendor"\RSPServer\XFS
in my case:
HKEY_LOCAL_MACHINE\SOFTWARE\BanqIT\RSPServer\XFS
All,
I made a copy of hello-forms.hs from yesod-form package, just for doing some experiments.
When I run it via the main function, the server is doing well e.g. on port 2500.
HalloWelt.hs is here.
But when I try to run that program in bash console via wai-handler-devel - being in the directory where the HalloWelt.hs ( http://hpaste.org/48381 ) resides...
wai-handler-devel 2600 HalloWelt withHalloWelt
I get...
Attempting to interpret your app...
Compile failed: NotAllowed "module is not loaded: `HalloWelt' (./HalloWelt.hs)"
What could be the reason for that?
Thank you for any hint -
Best regards
Hartmut
I think you need a "module HalloWelt where" at the top of your file.
Oh, and I wasn't ignoring the question on web-devel, I just hadn't had a chance to look into it yet.