Giter VIP home page Giter VIP logo

Comments (7)

rimmartin avatar rimmartin commented on July 22, 2024

Ok, I tested an hdf5-test user -like project on Ubuntu just now. Heading to work to try this on mac.

Are permissions different on mac? to folder such as /tmp?

from hdf5.node.

dasantonym avatar dasantonym commented on July 22, 2024

i also tried the local repo path to no avail. the file definitely gets created for both tmp and repo path and fails with the same error.

thanks for the quick response, i'll have a go on ubuntu later on as well.

On Monday, 11. May 2015 at 14:33, rimmartin wrote:

Ok, I tested an hdf5-test user -like project on Ubuntu just now. Heading to work to try this on mac.
Are permissions different on mac? to folder such as /tmp?


Reply to this email directly or view it on GitHub (#7 (comment)).

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

ok, I repeated the test on a mac 10.7 node v0.12 gcc-4.9 and couldn't repeat the error with what it pulls from git. Didn't open the h5 with hdfview but it's size is 2184 bytes as it is on ubuntu.

I wonder if the group even got made. Maybe check if the group.id is 0 or greater.

You r way of setting up a dependent project? For this test I made a node_modules sub folder and put a sym link to hdf5.node in it.

You may have done similar because the hdf5.node/index.js appears to be working and hdf5/lib/globals.js is being found

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

my current test script:

#!/bin/bash

function pause(){
   read -n 1 -p "Press any key to continue..."
}

export HDF5_HOME=/home/roger/NodeProjects/hdf5
export NODE_HOME=/home/roger/Software/node-v0.12.0/dist
export PATH=/home/roger/Software/gcc/dist/bin:$NODE_HOME/bin:$PATH
export LD_LIBRARY_PATH=/home/roger/Software/gcc/dist/lib64:/home/roger/NetBeansProjects/zlib/lib:$HDF5_HOME/lib:$LD_LIBRARY_PATH

#export HDF5_PLUGIN_PATH=/home/roger/NodeProjects/HDF5Plugin

node ./index.js #2> /dev/null

node --version
node -e "console.log(process.versions.v8)"

pause

and index.js

var hdf5 = require('hdf5').hdf5;
var h5lt = require('hdf5').h5lt;

var Access = require('hdf5/lib/globals').Access;

var file = new hdf5.File('/tmp/foo.h5', Access.ACC_TRUNC);

var group=file.createGroup('pmc');
var buffer=new Float64Array(5);
buffer[0]=1.0;
buffer[1]=2.0;
buffer[2]=3.0;
buffer[3]=4.0;
buffer[4]=5.0;
h5lt.makeDataset(group.id, 'Refractive Index', buffer);
var readBuffer=h5lt.readDataset(group.id, 'Refractive Index');

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

on mac DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH

from hdf5.node.

dasantonym avatar dasantonym commented on July 22, 2024

ah i see, i think it really might just be a problem with the env vars (library path especially). i'll give it a shot tonight and report back. thanks a ton for the help!

from hdf5.node.

dasantonym avatar dasantonym commented on July 22, 2024

took me a while to check it out, sorry, but good news. it works and it was the incomplete environment vars. i'll now be happily digging deeper into this subject. thanks for all the help and especially for this module in the first place.

from hdf5.node.

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.