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
{{ message }}
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
Running python setup.py sdist from the latest version on master, I try to install on a centos docker and I get this error:
Running setup.py install for dash-table ... error
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-7oIJun-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-O4r71B-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-7oIJun-build/setup.py", line 17, in <module>
install_requires=[]
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 53, in run
return _install.run(self)
File "/usr/lib64/python2.7/distutils/command/install.py", line 563, in run
self.run_command('build')
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib64/python2.7/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/usr/lib64/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/site-packages/setuptools/command/build_py.py", line 89, in run
self.build_packages()
File "/usr/lib64/python2.7/distutils/command/build_py.py", line 372, in build_packages
self.build_module(module, module_file, package)
File "/usr/lib/python2.7/site-packages/setuptools/command/build_py.py", line 106, in build_module
outfile, copied = _build_py.build_module(self, module, module_file, package)
File "/usr/lib64/python2.7/distutils/command/build_py.py", line 333, in build_module
"'package' must be a string (dot-separated), list, or tuple")
TypeError: 'package' must be a string (dot-separated), list, or tuple
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-7oIJun-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-O4r71B-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-7oIJun-build/
Changing setup.py packages to ['dash_table'] solved the problem.
The text was updated successfully, but these errors were encountered:
@T4rk1n I'm not familiar enough with the Dash Python portion of things to know exactly what/where to look. Please provide the files and commands to reproduce the issue you are having.
I have a Dockerfile with a build of dash-table in the same directory:
FROM centos:latest
RUN mkdir /tests
COPY dash_table-3.1.0rc5.tar.gz /tests
RUN chmod 777 /tests/dash_table-3.1.0rc5.tar.gz
RUN yum -y update
RUN yum -y install epel-release
RUN yum -y install python-pip
ENTRYPOINT /bin/bash
I think I ran: docker run -it image_name /bin/bash then in the container I tried to install the build with pip install dash_table-3.1.0rc5,tar,gz which gave me the error.
I changed packages key in setup.py to ['dash_table'] and it solved the issue. I think there's a problem with reading the package name from package.json under that os.
Running
python setup.py sdist
from the latest version on master, I try to install on a centos docker and I get this error:Changing
setup.py
packages to['dash_table']
solved the problem.The text was updated successfully, but these errors were encountered: