pywr / pywr-next

An experimental repository exploring ideas for a major revision to Pywr using Rust as a backend.
6 stars 4 forks source link

Error installing to directories containing a '(' #178

Open knoxsp opened 4 months ago

knoxsp commented 4 months ago

This is less an issue, and more added as somewhere for this to be recorded for future reference.

When installing pywr-next as per the instructions, I got a failure (see below) relating to a '(' but with little other information. In addition the error differed between Linux and Mac Os X

This was caused by my repo being in a dropbox folder, which contains a '(' in the path.

Once I moved my cloned repo to a different location, the installation worked fine.

On Mac Os X:

 [  0%] Built target H5detect
  [  1%] Built target H5make_libsettings
  [  1%] Generating ../H5Tinit.c, ../gen_SRCS.stamp1

  --- stderr
  make: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  /bin/sh: -c: line 0: syntax error near unexpected token `('

On Ubuntu:

[  1%] Generating ../H5Tinit.c, ../gen_SRCS.stamp1

  --- stderr
  /bin/sh: 1: Syntax error: "(" unexpected
  make[2]: *** [src/CMakeFiles/gen_hdf5-static.dir/build.make:70: H5lib_settings.c] Error 2
jetuk commented 4 months ago

This looks like it is an upstream issue with HDF5 or the Rust wrapper.

I wonder if we should have a flag that enables/disables the "static" feature of the hdf5 crate. This would allow it to use the system library if it were installed. That's quite easy on Linux, but more difficult on Windows (not sure about OSX).