Skip to content

Uploading firmware from local dir throws Memory Error when running on Windows 10 VM #23

@tanmayx

Description

@tanmayx

ucscentralsdk version: Latest from github
Python version: 3.5.2
Operating System: Windows 10 VM

Description
Trying to upload firmware using firmware_add_local API. It is throwing memory error.

What I Did
Ran the following command-
firmware_add_local(handle=handle, local_path=local_dir_path, file_name="ucs-k9-bundle-infra.3.1.2b.A.bin")

The output is -
c:\users\tanmay\appdata\local\programs\python\python35-32\lib\site-packages\ucscentralsdk-0.9.0.0-py3.5.egg\ucscentralsdk\ucscentralgenutils.py in encode_file_data(file_path)
227 def encode_file_data(file_path):
228 with open(file_path, "rb") as f:
--> 229 mmapped_file = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
230 return mmapped_file.read(mmapped_file.size())
231

OSError: [WinError 8] Not enough storage is available to process this command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions