OpenSourceBrain / OSBv2

An updated version of the Open Source Brain platform
https://www.v2.opensourcebrain.org/
Other
11 stars 6 forks source link

"No space left on device": but how much space do I have, and how much do I need to clear to get it to work? #756

Open sanjayankur31 opened 1 year ago

sanjayankur31 commented 1 year ago

I'm trying to import a NeuroML model into NetPyNE and am apparently running out of space on the device:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
~/netpyne/netpyne_ui/netpyne_geppetto.py in importNeuroML(self=<netpyne_ui.netpyne_geppetto.NetPyNEGeppetto object>, modelParameters={'compileMod': True, 'exploreOnlyDirs': False, 'explorerDialogOpen': False, 'explorerParameter': 'file', 'fileName': '/home/jovyan/netpyne/workspace/Human-L2-3-Cortic...circuit/feat/neuroml/NeuroML2/L23Net_0.02.net.nml', 'filterFiles': '.net.nml', 'loadMod': False, 'modFolder': '/home/jovyan/netpyne/workspace/Human-L2-3-Cortical-Microcircuit/feat/neuroml/NeuroML2/'})
    612                 filename = str(modelParameters["fileName"])
    613 
--> 614                 json_fname = neuroml.convertNeuroML2(filename, compileMod=modelParameters["compileMod"])
        json_fname = undefined
        neuroml.convertNeuroML2 = <function convertNeuroML2 at 0x7f102fa72680>
        filename = '/home/jovyan/netpyne/workspace/Human-L2-3-Cortical-Microcircuit/feat/neuroml/NeuroML2/L23Net_0.02.net.nml'
        global compileMod = undefined
        modelParameters = {'fileName': '/home/jovyan/netpyne/workspace/Human-L2-3-Cortical-Microcircuit/feat/neuroml/NeuroML2/L23Net_0.02.net.nml', 'modFolder': '/home/jovyan/netpyne/workspace/Human-L2-3-Cortical-Microcircuit/feat/neuroml/NeuroML2/', 'loadMod': False, 'compileMod': True, 'explorerDialogOpen': False, 'explorerParameter': 'file', 'exploreOnlyDirs': False, 'filterFiles': '.net.nml'}
    615 
    616             return self.loadModel(args=dict(

~/netpyne/netpyne_ui/helpers/neuroml.py in convertNeuroML2(nml2FileName='/home/jovyan/netpyne/workspace/Human-L2-3-Cortic...circuit/feat/neuroml/NeuroML2/L23Net_0.02.net.nml', compileMod=True)
    101             report_file_name="report.txt",
    102             copy_neuroml=True,
--> 103             verbose=True,
        global verbose = undefined
    104         )
    105         os.chdir(work_path)

/opt/conda/lib/python3.7/site-packages/pyneuroml/lems/__init__.py in generate_lems_file_for_neuroml(sim_id='Sim_L23Network', neuroml_file='/home/jovyan/netpyne/workspace/Human-L2-3-Cortic...circuit/feat/neuroml/NeuroML2/L23Net_0.02.net.nml', target='L23Network', duration=1000, dt=0.025, lems_file_name='LEMS_Sim_L23Network.xml', target_dir='.', nml_doc=<neuroml.nml.nml.NeuroMLDocument object>, include_extra_files=['PyNN.xml'], gen_plots_for_all_v=True, plot_all_segments=False, gen_plots_for_quantities={}, gen_plots_for_only_populations=[], gen_saves_for_all_v=True, save_all_segments=False, gen_saves_for_only_populations=[], gen_saves_for_quantities={}, gen_spike_saves_for_all_somas=True, gen_spike_saves_for_only_populations=[], gen_spike_saves_for_cells={}, spike_time_format='ID_TIME', copy_neuroml=True, report_file_name='report.txt', lems_file_generate_seed=None, verbose=True, simulation_seed=12345)
    368             quantities_saved.append(quantity)
    369 
--> 370     ls.save_to_file(file_name=file_name_full)
        ls.save_to_file = <bound method LEMSSimulation.save_to_file of <pyneuroml.lems.LEMSSimulation.LEMSSimulation object at 0x7f10165de3d0>>
        file_name = undefined
        file_name_full = './LEMS_Sim_L23Network.xml'
    371     return quantities_saved, ls
    372 

/opt/conda/lib/python3.7/site-packages/pyneuroml/lems/LEMSSimulation.py in save_to_file(self=<pyneuroml.lems.LEMSSimulation.LEMSSimulation object>, file_name='./LEMS_Sim_L23Network.xml')
    379         lems_file = open(file_name, "w")
    380         lems_file.write(self.to_xml())
--> 381         lems_file.close()
        lems_file.close = <built-in method close of _io.TextIOWrapper object at 0x7f10165f8050>
    382         logger.info(
    383             "Written LEMS Simulation %s to file: %s"

OSError: [Errno 28] No space left on device

This is fine. The issue is: as a user, I want to know what I should do now to work around this. But, I don't know:

sanjayankur31 commented 1 year ago

Additional question: as a user, how do I figure out what version of OSBv2 I'm using? What release is it?

filippomc commented 1 year ago

There is no currently a way for an end user to know the version. Does it matter (I mean apart for us testing)?

sanjayankur31 commented 1 year ago

It's not very important for end-users at the moment. Maybe more important when we do the federated deployments etc. later.