Coder Social home page Coder Social logo

Comments (8)

nickstenning avatar nickstenning commented on May 26, 2024

This looks like a bug in distutils that I've run into once or twice in other projects.

If I recall correctly, the fix went into Python 2.7.7, which is pretty old at this point. What version of Python are you using?

from honcho.

Totktonada avatar Totktonada commented on May 26, 2024
$ python2 --version
Python 2.7.14
$ python --version
Python 3.6.5

Reproduced with both.

from honcho.

nickstenning avatar nickstenning commented on May 26, 2024

Interesting. Could you provide some more information about your environment? OS/distro version, setuptools version, etc.?

from honcho.

Totktonada avatar Totktonada commented on May 26, 2024

Gentoo/amd64 (it is the rolling release distro, so cannot provide exact version), setuptools-38.5.1. Clean repo of honcho, latest master. Don’t sure what extra information can help.

from honcho.

Totktonada avatar Totktonada commented on May 26, 2024

I added print of self.data_files in build_package_data method in /usr/lib64/python2.7/site-packages/setuptools/command/build_py.py, got the following:

[('honcho', 'honcho', 'build/lib/honcho', ['export']), ('honcho.export', 'honcho/export', 'build/lib/honcho/export', ['templates', 'templates/runit', 'templates/supervisord', 'templates/upstart', 'templates/runit/log', 'templates/runit/run', 'templates/runit/log/run', 'templates/supervisord/supervisord.conf', 'templates/upstart/master.conf', 'templates/upstart/process.conf', 'templates/upstart/process_master.conf'])]

And added printing of traceback right before the raised exception (copy_file method in /usr/lib64/python2.7/distutils/file_util.py)

  File "setup.py", line 79, in <module>
    include_package_data=True)
  File "/usr/lib64/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python2.7/distutils/core.py", line 151, 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/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/lib64/python2.7/site-packages/setuptools/command/build_py.py", line 53, in run
    self.build_package_data()
  File "/usr/lib64/python2.7/site-packages/setuptools/command/build_py.py", line 124, in build_package_data
    outf, copied = self.copy_file(srcfile, target)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 365, in copy_file
    dry_run=self.dry_run)
  File "/usr/lib64/python2.7/distutils/file_util.py", line 110, in copy_file
    traceback.print_stack()
error: can't copy 'honcho/export': doesn't exist or not a regular file

But I stuck on interpreting it, because lack of knowlegde about python build/packaging system.

from honcho.

nickstenning avatar nickstenning commented on May 26, 2024

I'm afraid I can't reproduce this, even with that version of setuptools. Does the same thing happen if you run make sdist?

from honcho.

Totktonada avatar Totktonada commented on May 26, 2024

Nope, make sdist works good. Okay, it seems to be local system issue and unlikely affect someone else. So, I think the issue can be closed. I still can use old system-wide install of honcho and honcho from pip under virtualenv.

from honcho.

nickstenning avatar nickstenning commented on May 26, 2024

Ok! Thanks for the report nonetheless.

from honcho.

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.