Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program Files\\Anaconda3\\lib\\site-packages\\krisk\\static/krisk.js' #60

Closed
ghost opened this issue Oct 30, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 30, 2016

hi there

python3.5
win10
pip install krisk

i run this page code, http://nbviewer.jupyter.org/github/napjon/krisk/blob/master/notebooks/Intro.ipynb

when i run , kk.bar(df,'continent')

i got error

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
C:\Program Files\Anaconda3\lib\site-packages\IPython\core\formatters.py in __call__(self, obj)
    309             method = get_real_method(obj, self.print_method)
    310             if method is not None:
--> 311                 return method()
    312             return None
    313         else:

C:\Program Files\Anaconda3\lib\site-packages\krisk\chart\core.py in _repr_javascript_(self)
    574                                       width=self._size['width'],
    575                                       height=self._size['height']))+\
--> 576                 (self._get_resync_option_strings(self.option))
    577 
    578     def _get_duplicated(self):

C:\Program Files\Anaconda3\lib\site-packages\krisk\chart\core.py in _get_resync_option_strings(self, option)
    553         """Resync Chart option"""
    554 
--> 555         js_template = get_content(JS_TEMPLATE_PATH)
    556         event_template = get_content(EVENT_TEMPLATE_PATH)
    557 

C:\Program Files\Anaconda3\lib\site-packages\krisk\util.py in get_content(filepath)
     13         """Retrieve content from file"""
     14         abs_path = join_current_dir(filepath)
---> 15         with open(abs_path, 'r') as f:
     16                 return f.read()
     17 

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program Files\\Anaconda3\\lib\\site-packages\\krisk\\static/krisk.js'

Out[4]:
<krisk.chart.core.Chart at 0x27540c21ba8>
@ghost
Copy link
Author

ghost commented Oct 30, 2016

it's ok

i update krisk (download https://github.com/napjon/krisk/archive/master.zip)
and run:


jupyter nbextension install --py krisk --sys-prefix
jupyter nbextension enable  --py krisk --sys-prefix

thank you napjon

@ghost ghost closed this as completed Oct 30, 2016
@napjon
Copy link
Owner

napjon commented Oct 30, 2016

Thank you for the report. I'm still not clear about PyPI being outdated or the nbextension command that did it. It works for me on Linux and OSX. Will check it once I get my hands on Windows machine.

@napjon
Copy link
Owner

napjon commented Nov 2, 2016

Okay, I'm experiencing the same issue. I'll bump the version to fix it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant