Giter Club home page Giter Club logo

Comments (14)

chfw avatar chfw commented on June 9, 2024

Jupiter-echarts-pypkg is not installed properly. Please reinstall it.

from pyecharts-snapshot.

Zhangjing520 avatar Zhangjing520 commented on June 9, 2024

我重新试了安装了。可是不行啊。呜呜

from pyecharts-snapshot.

Zhangjing520 avatar Zhangjing520 commented on June 9, 2024

image

from pyecharts-snapshot.

Zhangjing520 avatar Zhangjing520 commented on June 9, 2024

image

from pyecharts-snapshot.

Zhangjing520 avatar Zhangjing520 commented on June 9, 2024

作者。您好!我其他的方式可以成功。但是您的example不可以。求教!谢谢您了

from pyecharts-snapshot.

chfw avatar chfw commented on June 9, 2024

谢谢你反溃问题。请用0.1.7

from pyecharts-snapshot.

moorejee avatar moorejee commented on June 9, 2024

我遇到了同样的问题,请问这个问题目前最好的解决方案是什么?

from pyecharts-snapshot.

chfw avatar chfw commented on June 9, 2024

☝️ pip install pyecharts-snapshot==0.1.7

from pyecharts-snapshot.

l0o0 avatar l0o0 commented on June 9, 2024
make_a_snapshot('aaa.html', 'aaa.png')
phantomjs version: 2.1.1

Generating file ...

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-3-3d5fc6aa8404> in <module>
----> 1 make_a_snapshot('aaa.html', 'aaa.png')

~/.local/lib/python3.5/site-packages/pyecharts_snapshot/main.py in make_a_snapshot(file_name, output_name, delay, pixel_ratio, verbose)
    117         content_array = content.split(",")
    118         if len(content_array) != 2:
--> 119             raise OSError(content_array)
    120         base64_imagedata = content_array[1]
    121         imagedata = decode_base64(base64_imagedata)

OSError: ["ReferenceError: Can't find variable: echarts\n\n  undefined:1\nnull\n"]

版本信息
Python 3.5.2 in ubuntu 16.04
pyecharts==0.5.3
pyecharts-javascripthon==0.0.6
pyecharts-jupyter-installer==0.0.3
pyecharts-snapshot==0.1.9

from pyecharts-snapshot.

chfw avatar chfw commented on June 9, 2024

echarts.js 没有内嵌在 html 里。

from pyecharts-snapshot.

chfw avatar chfw commented on June 9, 2024

能用浏览器打开嘛?

from pyecharts-snapshot.

l0o0 avatar l0o0 commented on June 9, 2024

@chfw 你好啊,我那个网页是可以用浏览器打开的。不过我没有在网页源代码里面搜到echarts.js这样的字样。不过在源代码里我可以看到有一堆js。
test.html.zip

from pyecharts-snapshot.

zenghk avatar zenghk commented on June 9, 2024

我也遇到这个问题,貌似和html文件的大小有关,相同的代码处理的不同的数据,只有一个大于10M的有问题,其他都可以输出pdf,
win10 python2.7.8
qq 20190222120117

from pyecharts-snapshot.

shexiaobin avatar shexiaobin commented on June 9, 2024

作者。您好!我其他的方式可以成功。但是您的example不可以。求教!谢谢您了

请问您是如何解决的呢? 可以提供一下代码吗

from pyecharts-snapshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.