beakerx icon indicating copy to clipboard operation
beakerx copied to clipboard

missing beakerx.button

Open 0xg0nz0 opened this issue 4 years ago • 2 comments

With latest code on Jupyter Lab 1.2.9 with the standard labextension (see previous issue) I get the following error when doing a simple "from beakerx import *":

from beakerx import *
from beakerx.object import beakerx

ModuleNotFoundError Traceback (most recent call last) in 2 import pandas as pd 3 ----> 4 from beakerx import * 5 from beakerx.object import beakerx

/usr/local/lib/python3.8/site-packages/beakerx/init.py in 14 15 from ._version import version_info, version ---> 16 from .commands import parse as beakerx_parse 17 from .easyform import * 18 from .spark import *

/usr/local/lib/python3.8/site-packages/beakerx/commands.py in 18 from .install import install, uninstall 19 from .bkr2ipynb import main ---> 20 from beakerx_magics import Py4JServer 21 22

/usr/local/lib/python3.8/site-packages/beakerx_magics/init.py in 22 from .sql_magic import * 23 from .jvm_kernel_magic import * ---> 24 from .sparkex_magic import *

/usr/local/lib/python3.8/site-packages/beakerx_magics/sparkex_magic.py in 19 from IPython.core.display import display 20 from IPython.core.magic import (Magics, magics_class, cell_magic) ---> 21 from beakerx.spark import (IpythonManager, BeakerxSparkServerFactory) 22 from beakerx.spark.profile import Profile 23 from beakerx.spark.spark_engine import SparkEngine

/usr/local/lib/python3.8/site-packages/beakerx/spark/init.py in 13 # limitations under the License. 14 ---> 15 from .spark import *

/usr/local/lib/python3.8/site-packages/beakerx/spark/spark.py in 16 17 from beakerx_base import BeakerxBox ---> 18 from beakerx_magics.sparkex_widget.spark_server import BeakerxSparkServer 19 from traitlets import Unicode, List, Bool, Dict 20

/usr/local/lib/python3.8/site-packages/beakerx_magics/sparkex_widget/init.py in 13 # limitations under the License. 14 ---> 15 from .spark_progress_bar import *

/usr/local/lib/python3.8/site-packages/beakerx_magics/sparkex_widget/spark_progress_bar.py in 12 # See the License for the specific language governing permissions and 13 # limitations under the License. ---> 14 from beakerx.button.button_widget import RESTButton 15 from beakerx_base import BeakerxBox, BaseObject, Box, HBox 16 from traitlets import Unicode, Dict, Bool

ModuleNotFoundError: No module named 'beakerx.button'

0xg0nz0 avatar Apr 13 '20 17:04 0xg0nz0

I tried to copy over button and got a bit further (missing "bottle" and "pyspark" dependencies) but then it breaks again on a pyspark API change:

~/.local/lib/python3.8/site-packages/pyspark/cloudpickle.py in _make_cell_set_template_code() 124 ) 125 else: --> 126 return types.CodeType( 127 co.co_argcount, 128 co.co_kwonlyargcount,

TypeError: an integer is required (got type bytes)

0xg0nz0 avatar Apr 13 '20 17:04 0xg0nz0

Latter is because I'm on Python 3.8, which PySpark 2.4.5 does not support.

0xg0nz0 avatar Apr 13 '20 17:04 0xg0nz0