Comments (7)
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.
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.
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.
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.
on mac DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH
from hdf5.node.
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.
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)
- Support for Single Writer Multiple Reader (SWMR)? HOT 7
- Getting dataset attribute (getDatasetAttribute) on a 32 bit floating point in NODE/javascript returns a totally different value HOT 6
- hdf5_home_win does not get set HOT 2
- Read dataset with 2d array stored fails on reading chunks HOT 10
- issues reading 4 dimensional dataset HOT 2
- SyntaxError: unsupported data type on compound datasets HOT 5
- Node 12? HOT 32
- Delete attribute HOT 6
- Tutorial: "Writing & Reading subsets" is not working. HOT 3
- Segfault reading HOT 4
- issue with appending to tables on windows 10
- Error: The specified procedure could not be found. (process.dlopen) HOT 1
- `hdf5.File is not a constructor` when bundled with webpack HOT 2
- cannot install HOT 3
- Win10+Node v14.15.5 Compilation errors HOT 6
- Getting data from Buffer
- Compile Error HOT 12
- install with yarn? HOT 2
- windows-build-tools / vs2017? HOT 37
- Error with handling variable length data (H5T_VLEN) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdf5.node.