ipyp5 icon indicating copy to clipboard operation
ipyp5 copied to clipboard

File nbextension/static/index.js missing when installing

Open EWouters opened this issue 7 years ago • 3 comments

Hi, I'd really like to try this project out. However I run into some problem when trying to install it.

When running pip install -e . there seems to be a file missing: ipyp5/ipyp5/nbextension/static/index.js.

        raise ValueError(("missing files: %s" % missing))
    ValueError: missing files: ['/home/user/GitHub/ipyp5/ipyp5/nbextension/static/index.js', '/home/user/GitHub/ipyp5/lib/plugin.js']
    
    ----------------------------------------
Command "/home/user/anaconda3/envs/ipyp5/bin/python -c "import setuptools, tokenize;__file__='/home/user/GitHub/ipyp5/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /home/user/GitHub/ipyp5/

install_error.txt

I noticed that the file is blocked from uploading in .gitignore.

Thanks for any help!

EWouters avatar Dec 02 '18 20:12 EWouters

Good catch and thanks for the report. Normally this file should be left out of the repo because it will be generated at build time.

Would you mind trying again in the deps-updates branch? (https://github.com/jtpio/ipyp5/pull/3)

jtpio avatar Dec 04 '18 00:12 jtpio

Running the deps-updates branch gave me this error: ModuleNotFoundError: No module named '_sysconfigdata_x86_64_conda_cos6_linux_gnu', which seems to be related to this conda bug.

When setting the python version to 3.6 I was able to build the extension!

I was not able to get it to draw anything yet however. I will look into this some more when I have some time.

EWouters avatar Dec 05 '18 09:12 EWouters

Just merged https://github.com/jtpio/ipyp5/pull/3, which seems to work fine when starting with a fresh environment.

@EWouters have you had any more success trying it locally?

jtpio avatar Feb 12 '19 18:02 jtpio