Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Install trouble on linux. #137

Closed
T4rk1n opened this issue Oct 12, 2018 · 4 comments
Closed

Install trouble on linux. #137

T4rk1n opened this issue Oct 12, 2018 · 4 comments
Assignees

Comments

@T4rk1n
Copy link
Contributor

T4rk1n commented Oct 12, 2018

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.

@Marc-Andre-Rivet
Copy link
Contributor

@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.

@T4rk1n
Copy link
Contributor Author

T4rk1n commented Oct 29, 2018

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.

@Marc-Andre-Rivet
Copy link
Contributor

@T4rk1n Alright thanks for the added info. Will have a look at this soon.

@Marc-Andre-Rivet Marc-Andre-Rivet self-assigned this Oct 30, 2018
@Marc-Andre-Rivet
Copy link
Contributor

Fixed by #184

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants