Closed DDDOH closed 1 year ago
hi @DDDOH Could you use nni v2.9?
hi @DDDOH Could you use nni v2.9?
With export NNI_RELEASE=2.9
?
Please try following command in ts/nni_manager
folder:
/Users/shuffleofficial/nni/toolchain/yarn/bin/yarn tsc
It should find tsc
in ts/nni_manager/node_modules/.bin/tsc
, which is a symlink to ts/nni_manager/node_modules/typescript/bin/tsc
. And the later file should be executable (should show rwx
in ls -l
result).
If tsc
is not there, please remove node_modules
folder and run /Users/shuffleofficial/nni/toolchain/yarn/bin/yarn
to redownload.
If the file is there but cannot be found, then there might be something wrong with yarn
.
In this case, upgrade yarn_version
in setup_ts.py
to 1.22.19
and try again. (Remember to clean
first)
To further debug it, you can add a line "debug": "echo $PATH",
to package.json
line 6 ("scripts" section), and then run yarn debug
to check search paths.
It should include /Users/shuffleofficial/nni/ts/nni_manager/node_modules/.bin
https://github.com/microsoft/nni/issues/5142#issuecomment-1260335580
I upgrade yarn_version in setup_ts.py to 1.22.19, and run python setup.py clean
,
then python setup.py build_ts
(and failed again with error message exactly the same as before).
Please try following command in ts/nni_manager folder:
/Users/shuffleofficial/nni/toolchain/yarn/bin/yarn tsc
gets
yarn run v1.22.19
error Couldn't find a package.json file in "/Users/shuffleofficial/nni"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
And there is no tsc in the ts/nni_manager/node_modules/.bin/
folder:
I then run /Users/shuffleofficial/nni/toolchain/yarn/bin/yarn
, there's still not a tsc in the ts/nni_manager/node_modules/.bin/
folder.
I'm not familiar with node and javascript staff, so I actually don't quite figure out which package.json
you are referring to. If more information is needed, please let me know.
But I finally found one way to run nni on a M1 macbook: create a x86 conda environment, then pip install nni
, and unsurprisingly this method is really slow but is useful for debugging.
#5142 (comment) I upgrade yarn_version in setup_ts.py to 1.22.19, and run
python setup.py clean
, thenpython setup.py build_ts
(and failed again with error message exactly the same as before).Please try following command in ts/nni_manager folder:
/Users/shuffleofficial/nni/toolchain/yarn/bin/yarn tsc
gets
yarn run v1.22.19 error Couldn't find a package.json file in "/Users/shuffleofficial/nni" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
And there is no tsc in the
ts/nni_manager/node_modules/.bin/
folder:I then run
/Users/shuffleofficial/nni/toolchain/yarn/bin/yarn
, there's still not a tsc in thets/nni_manager/node_modules/.bin/
folder.I'm not familiar with node and javascript staff, so I actually don't quite figure out which
package.json
you are referring to. If more information is needed, please let me know.But I finally found one way to run nni on a M1 macbook: create a x86 conda environment, then
pip install nni
, and unsurprisingly this method is really slow but is useful for debugging.
@cruiseliu - more suggestions?
Please run yarn
in ts/nni_manager
directory (not nni directory), and then check:
typescript
directory in node_modules
.typescript@^4.3.2
(or other version) entry yarn.lock
file."typescript": "^4.3.2"
in package.json
file.If the first answer is yes, please try manually make the symlink and run yarn build
to compile.
If the first answer is no and the second is yes, then it's a yarnpkg bug and we should report it to their issue tracker.
Otherwise, please git checkout master
and try again.
hi @DDDOH Did you still have the install issue? You could follow the @cruiseliu suggestions.
Describe the issue: I followed instructions from https://nni.readthedocs.io/zh/stable/notes/build_from_source.html, run command
I got error when running 'python setup.py build_ts', as shown below
Environment:
How to reproduce it?: On a macos with M1 chip, run the terminal command above.