You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But then for the import modules as below:
from databricksx12.hls import *
, it errored out:
ModuleNotFoundError: No module named 'databricksx12.hls'
Found that setup.py misses the package. A workaround I made, copied the missing folder, .../databrickx12/hls, from the source code repo and manually located in the installation path.
The setup.py code should be modified as below:
from setuptools import setup, find_packages
from io import open
from os import path
import sys
this_directory = path.abspath(path.dirname(file))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
Did the pip installation as guided:
pip install git+https://github.com/databricks-industry-solutions/x12-edi-parser
But then for the import modules as below:
from databricksx12.hls import *
, it errored out:
ModuleNotFoundError: No module named 'databricksx12.hls'
Found that setup.py misses the package. A workaround I made, copied the missing folder, .../databrickx12/hls, from the source code repo and manually located in the installation path.
The setup.py code should be modified as below:
from setuptools import setup, find_packages
from io import open
from os import path
import sys
this_directory = path.abspath(path.dirname(file))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
setup(
name="databricksx12",
version="0.0.1",
...
...
],
#packages=['databricksx12'],
packages=find_packages()
#py_modules=['databricksx12']
)
The text was updated successfully, but these errors were encountered: