Giter Site home page Giter Site logo

Comments (4)

sanjayankur31 avatar sanjayankur31 commented on May 28, 2024 1

Thanks @christian-oreilly , I've opened PR #86 to fix this.

from org.neuroml.export.

christian-oreilly avatar christian-oreilly commented on May 28, 2024

Note that I can run pynml.run_lems_with_jneuroml_neuron(...) which generates the .mod before crashing. Then I can run nrnivmodl and

import shutil
shutil.copy("x86_64/libnrnmech.dylib", "x86_64/libnrnmech.so")

and then call again pynml.run_lems_with_jneuroml_neuron(...) and it works fine. So, looks to me like you would just need to add the "dylib" extension in the files checked around

/* *.la */
String filename1 = directoryToExecuteIn + System.getProperty("file.separator") + myArch + System.getProperty("file.separator") + "libnrnmech.la";
filesToBeCreated.add(new File(filename1));
E.info("Name of file to be created: " + filename1);
// In case, e.g. a 32 bit JDK is used on a 64 bit system
String filename2 = directoryToExecuteIn + System.getProperty("file.separator") + backupArchDir + System.getProperty("file.separator") + "libnrnmech.la";
/* Only add if it does not already exist: prevent duplication */
if (!filename1.equals(filename2)){
filesToBeCreated.add(new File(filename2));
E.info("Name of file to be created: " + filename2);
}
/* *.so */
filename1 = directoryToExecuteIn + System.getProperty("file.separator") + myArch + System.getProperty("file.separator") + "libnrnmech.so";
filesToBeCreated.add(new File(filename1));
E.info("Name of file to be created: " + filename1);
// In case, e.g. a 32 bit JDK is used on a 64 bit system
filename2 = directoryToExecuteIn + System.getProperty("file.separator") + backupArchDir + System.getProperty("file.separator") + "libnrnmech.so";
/* Only add if it does not already exist: prevent duplication */
if (!filename1.equals(filename2)){
filesToBeCreated.add(new File(filename2));
E.info("Name of file to be created: " + filename2);
}
/**
* @todo Needs checking on Mac/powerpc/i686
*/
if (Utils.isMacBasedPlatform())
{
String filename = directoryToExecuteIn + System.getProperty("file.separator") + Utils.getArchSpecificDir() + System.getProperty("file.separator") + "libnrnmech.la";
E.info("Name of file to be created: " + filename);
filesToBeCreated.add(new File(filename));
filename = directoryToExecuteIn + System.getProperty("file.separator") + "umac" + System.getProperty("file.separator") + "libnrnmech.la";
E.info("Name of file to be created: " + filename);
filesToBeCreated.add(new File(filename));
}
commandToExecute = neuronHome.getCanonicalPath() + System.getProperty("file.separator") + "bin" + System.getProperty("file.separator") + "nrnivmodl";
E.info("commandToExecute: " + commandToExecute);

from org.neuroml.export.

christian-oreilly avatar christian-oreilly commented on May 28, 2024

Sorry, I hit the button by mistake.

from org.neuroml.export.

pgleeson avatar pgleeson commented on May 28, 2024

@christian-oreilly Please try with the latest version of pyNeuroML: https://pypi.org/project/pyNeuroML/#history to see if this issue is fixed for you.

from org.neuroml.export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.