microsoft / PowerBI-Cli

Power BI command line tool for managing Power BI Embedded workspace collections
Other
98 stars 40 forks source link

problem with the CLI on MacOS #5

Open finedays opened 8 years ago

finedays commented 8 years ago

Hi guys, I am getting this error: env: node\r: No such file or directory Using Iterm2, using zsh. Does anyone has any suggestions how to fix it? Thanks

wbreza commented 8 years ago

Can you provide more context? Which command are you executing?

finedays commented 8 years ago

Hi,

I am trying to execute powerbi from the shell. https://www.dropbox.com/s/zrgt2xxu7k7q9ux/Screenshot%202016-05-04%2020.50.23.png?dl=0

wbreza commented 8 years ago

Did you install the module globally? npm install -g powerbi-cli ??

finedays commented 8 years ago

yes, I did.. it is exactly the same reaction when I try to run the cli from the /bin directory..

wbreza commented 8 years ago

Thanks for submitting this. We'll get a fix out soon.

finedays commented 8 years ago

Thanks, looking forward the solution.

wbreza commented 8 years ago

FYI - Appears to be an issue with line endings between Windows and OSX. http://stackoverflow.com/questions/18492897/env-node-r-no-such-file-or-directory-with-cordova-cli

finedays commented 8 years ago

Hm, that might work out. Thanks! I will try it in an hour or so and will message again.

finedays commented 8 years ago

Actually, I tried it now and it is working! Thanks!

wbreza commented 8 years ago

I'm going to keep this open for now till we can put a permanent fix that doesn't require this workaround.

wbreza commented 8 years ago

Reopening do to issue executing sub commands.

karolkulesza commented 8 years ago

Same issue here (not able to execute any command, resulting in "{command}(0) does not exist" error, in case of OS X.

Does this mean that PowerBI-Cli does not work on OS X, currently?

wbreza commented 8 years ago

@karolkulesza - Yes - there is currently a bug that we are working through.

homburgs commented 8 years ago

Same bug here under Ubuntu Linux 14.04 LTS with nodejs 4.5.0

crnkyunicorn commented 8 years ago

Any update on a release on this?

stevenharman commented 8 years ago

FWIW, the hack around this (based on bad line endings) should be:

$ brew install dos2unix
$ find /usr/local/lib/node_modules/powerbi-cli -name "*.js" | xargs -n 1 sudo dos2unix

But even that doesn't seem to work. ¯_(ツ)_/¯ do-it-live

stevenharman commented 8 years ago

It appears the line-ending issue has been resolved, but there's now a new issue, as mentioned in #18.

$ powerbi config

  powerbi-config(1) does not exist, try --help

This seem to be an issue with the names of the files in the bin directory. The parent binary bin/cli has been symlinked to powerbi. But when calling $ powerbi config, for example, it tries to execute another binary named powerbi-config. That binary doesn't exist b/c it's actually named cli-config. Also, those binaries aren't marked as executable.

A hack which does "work..."

$ pushd /usr/local/lib/node_modules/powerbi-cli/bin
$ for f in cli-*; do mv "$f" "`echo $f | sed s/cli-/powerbi-/`"; done
$ chmod +x powerbi-*
$ popd
$ powerbi config
BretStateham commented 7 years ago

Any update on this?

Running v1.0.8 (just re-installed this morning) on Bash on Ubuntu on Windows:

$ powerbi --version
1.0.8
$ powerbi config

  powerbi-config(1) does not exist, try --help
ali-hamud commented 7 years ago

This task is in our backlog. no ETA. Thanks for understanding.

lipp commented 7 years ago

@ali-hamud I really like and appreciate to see that Microsoft is doing node. But why is there no ETA? The installation is basically not working at all / broken on OSX (and maybe other distros).

gregbonnette commented 7 years ago

FYI. This is also an issue within the Windows bash shell aka Ubuntu 14.04.4 LTS.

The previous dos2unix workaround did not work.

`~$ powerbi config execvp(): No such file or directory

powerbi-config(1) does not exist, try --help`

zimmermanw84 commented 7 years ago

FYI also broken on Ubuntu 16.04 LTS

selection_017 whatface

adadgio commented 7 years ago

Heys guys, any update or fix on this issue ? 😞

agger-magenta commented 7 years ago

I can confirm that the workaround involving dos2unix does not work under Ubuntu 16.04 LTS.