Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: can't copy '<dirname>': doesn't exist or not a regular file #483

Closed
ghost opened this issue Jan 16, 2016 · 12 comments
Closed

error: can't copy '<dirname>': doesn't exist or not a regular file #483

ghost opened this issue Jan 16, 2016 · 12 comments

Comments

@ghost
Copy link

ghost commented Jan 16, 2016

Originally reported by: stoneleaf (Bitbucket: stoneleaf, GitHub: stoneleaf)


This appears to be a regression of the problem discussed and fixed in http://bugs.python.org/issue19286.

This is possibly the same bug as Issue452 and Issue341.

My directory structure:

./
`-- xaml/
   |-- CHANGES
   |-- LICENSE
   |-- __init__.py
   |-- __main__.py
   |-- test.py
   |-- doc/
   |  `-- examples.txt
   `-- vim/
      |-- synmenu.vim
      |-- colors/
      |  `-- desertleaf.vim
      |-- ftplugin/
      |  `-- xaml.vim
      |-- indent/
      |  `-- xaml.vim
      `-- syntax/
         `-- xaml.vim

My setup.py (relevent section):

package_data={
    'xaml': [
        'CHANGES', 'LICENSE',
        'doc/*',
        'vim/*', 'vim/colors/*', 'vim/syntax/*',
        'vim/indent/*', 'vim/ftplugin/*',
        ],
    },

When I change the 'vim/*' to 'vim/*.vim' the problem goes away.


@ghost
Copy link
Author

ghost commented Jan 16, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Mentioning #452 and #341 for links

@ghost
Copy link
Author

ghost commented Jan 16, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


You suggest it is a regression. Have you confirmed that your python version includes the fix?

@ghost
Copy link
Author

ghost commented Jan 16, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Looking at Misc/NEWS, that fix was added to Python 2.7.7.

@ghost
Copy link
Author

ghost commented Jan 17, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


I believe the issue was in distutils and was fixed in Python 2.7.7 or later. If you believe the issue still exists in later versions of Python, please indicate such and provide an example that replicates the failure. If you believe that setuptools should be monkey-patching a backport of the fix for older Pythons, please provide a pull request. Thanks.

@ghost
Copy link
Author

ghost commented Jan 17, 2016

Original comment by stoneleaf (Bitbucket: stoneleaf, GitHub: stoneleaf):


I'm using Python 3.5.

Without the import setuptools in the script, this is my result for an sdist:

ethan@code:~/source/xaml$ python3.5 setup.py sdist
running sdist
running egg_info
writing entry points to xaml.egg-info/entry_points.txt
writing xaml.egg-info/PKG-INFO
writing dependency_links to xaml.egg-info/dependency_links.txt
writing top-level names to xaml.egg-info/top_level.txt
writing requirements to xaml.egg-info/requires.txt
reading manifest file 'xaml.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'xaml.egg-info/SOURCES.txt'
running check
creating xaml-0.5.1
creating xaml-0.5.1/xaml
creating xaml-0.5.1/xaml.egg-info
creating xaml-0.5.1/xaml/doc
creating xaml-0.5.1/xaml/vim
creating xaml-0.5.1/xaml/vim/colors
creating xaml-0.5.1/xaml/vim/ftplugin
creating xaml-0.5.1/xaml/vim/indent
creating xaml-0.5.1/xaml/vim/syntax
making hard links in xaml-0.5.1...
hard linking MANIFEST.in -> xaml-0.5.1
hard linking README.txt -> xaml-0.5.1
hard linking setup.cfg -> xaml-0.5.1
hard linking setup.py -> xaml-0.5.1
hard linking xaml/CHANGES -> xaml-0.5.1/xaml
hard linking xaml/LICENSE -> xaml-0.5.1/xaml
hard linking xaml/__init__.py -> xaml-0.5.1/xaml
hard linking xaml/__main__.py -> xaml-0.5.1/xaml
hard linking xaml/test.py -> xaml-0.5.1/xaml
hard linking xaml.egg-info/PKG-INFO -> xaml-0.5.1/xaml.egg-info
hard linking xaml.egg-info/SOURCES.txt -> xaml-0.5.1/xaml.egg-info
hard linking xaml.egg-info/dependency_links.txt -> xaml-0.5.1/xaml.egg-info
hard linking xaml.egg-info/entry_points.txt -> xaml-0.5.1/xaml.egg-info
hard linking xaml.egg-info/requires.txt -> xaml-0.5.1/xaml.egg-info
hard linking xaml.egg-info/top_level.txt -> xaml-0.5.1/xaml.egg-info
hard linking xaml/doc/examples.txt -> xaml-0.5.1/xaml/doc
'xaml/vim/colors' not a regular file -- skipping
'xaml/vim/ftplugin' not a regular file -- skipping
'xaml/vim/indent' not a regular file -- skipping
hard linking xaml/vim/synmenu.vim -> xaml-0.5.1/xaml/vim
'xaml/vim/syntax' not a regular file -- skipping
hard linking xaml/vim/colors/desertleaf.vim -> xaml-0.5.1/xaml/vim/colors
hard linking xaml/vim/ftplugin/xaml.vim -> xaml-0.5.1/xaml/vim/ftplugin
hard linking xaml/vim/indent/xaml.vim -> xaml-0.5.1/xaml/vim/indent
hard linking xaml/vim/syntax/xaml.vim -> xaml-0.5.1/xaml/vim/syntax
copying setup.cfg -> xaml-0.5.1
Writing xaml-0.5.1/setup.cfg
Creating tar archive
removing 'xaml-0.5.1' (and everything under it)

Now with the import setuptools in the script, this is my result for a bdist_wheel:

ethan@code:~/source/xaml$ python3.5 setup.py bdist_wheel
running bdist_wheel
running build
running build_py
copying xaml/__init__.py -> build/lib/xaml
error: can't copy 'xaml/vim/colors': doesn't exist or not a regular file

The repository is https://bitbucket.org/stoneleaf/xaml if you want to verify the problem.

If this error should be reported somewhere else please let me know where.

Ethan

@ghost
Copy link
Author

ghost commented Jan 17, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


That's odd. I'm unable to replicate your findings. Some things I note:

  1. xaml doesn't import setuptools by default (at least in the commit I checked out). Therefore, it appears to be a distutils-only package.
  2. bdist_wheel is not a distutils command and distutils doesn't provide a hook for dependency injection of additional commands as setuptools does. Therefore, I don't understand how bdist_wheel could ever work without setuptools (or a similar system).
  3. I am able to run setup.py build (Python 3.5.1) without the indicated error, but with no reference to the package data files.

So I'm still at a loss as to how to replicate the issue.

$ python -m venv ~/.envs/setuptools483
$ . ~/.envs/setuptools483/bin/activate
(setuptools483) $ easy_install wheel
Searching for wheel
Reading https://pypi.python.org/simple/wheel/
Best match: wheel 0.26.0
Downloading https://pypi.python.org/packages/source/w/wheel/wheel-0.26.0.tar.gz#md5=4cfc6e7e3dc7377d0164914623922a10
Processing wheel-0.26.0.tar.gz
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-dd4368b5/wheel-0.26.0/setup.cfg
Running wheel-0.26.0/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-dd4368b5/wheel-0.26.0/egg-dist-tmp-i9ipanrz
no previously-included directories found matching 'wheel/test/*/dist'
no previously-included directories found matching 'wheel/test/*/build'
creating /Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/wheel-0.26.0-py3.5.egg
Extracting wheel-0.26.0-py3.5.egg to /Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages
Adding wheel 0.26.0 to easy-install.pth file
Installing wheel script to /Users/jaraco/.envs/setuptools483/bin

Installed /Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/wheel-0.26.0-py3.5.egg
Processing dependencies for wheel
Finished processing dependencies for wheel
(setuptools483) $ python --version
Python 3.5.1
(setuptools483) $ hg paths
default = bb://stoneleaf/xaml
(setuptools483) $ hg update -C 75b91eeeb6de; hg purge --all
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
(setuptools483) $ python setup.py bdist
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
running bdist
running bdist_dumb
running build
running build_py
creating build
creating build/lib
creating build/lib/xaml
copying xaml/__init__.py -> build/lib/xaml
copying xaml/__main__.py -> build/lib/xaml
copying xaml/test.py -> build/lib/xaml
installing to build/bdist.macosx-10.6-intel/dumb
running install
running install_lib
creating build/bdist.macosx-10.6-intel
creating build/bdist.macosx-10.6-intel/dumb
creating build/bdist.macosx-10.6-intel/dumb/Users
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages
creating build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml
copying build/lib/xaml/__init__.py -> build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml
copying build/lib/xaml/__main__.py -> build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml
copying build/lib/xaml/test.py -> build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml
byte-compiling build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml/__main__.py to __main__.cpython-35.pyc
byte-compiling build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml/test.py to test.cpython-35.pyc
running install_egg_info
Writing build/bdist.macosx-10.6-intel/dumb/Users/jaraco/.envs/setuptools483/lib/python3.5/site-packages/xaml-0.4.8-py3.5.egg-info
creating /Users/jaraco/Dropbox/code/main/setuptools/xaml/dist
Creating tar archive
removing 'build/bdist.macosx-10.6-intel/dumb' (and everything under it)

Do you have any other suggestions for replicating the failure?

@ghost
Copy link
Author

ghost commented Jan 17, 2016

Original comment by stoneleaf (Bitbucket: stoneleaf, GitHub: stoneleaf):


I'm such an idiot. BitBucket is my backup location for repositories, and I hadn't updated that one lately. It now has the latest version on it (0.5.0) I also updated my previous comment as the last error shown is the one when import setuptools is enabled.

Before now I had been using Python 2.7 to build my packages, but finally decided to invest some time and update to the latest tools (Python3.5, setuptools, wheel, pip, etc), and on the one hand had much better results with getting all the files I wanted in the distribution actually showing up, but on the other hit that error.

You should be able to replicate now (make sure and change that vim/*.vim to just vim/*).

@arikkfir
Copy link

This happened to us as well, the fix in the commit above fixed the issue for us too. Thanks!

@jaraco
Copy link
Member

jaraco commented Nov 7, 2016

I just tried to replicate this again with Setuptools 28.1.0, but it worked just fine:

$ hg clone bb://stoneleaf/xaml
destination directory: xaml
requesting all changes
adding changesets
adding manifests
adding file changes
added 136 changesets with 262 changes to 23 files
updating to branch default
18 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd xaml
$ edit .
$ hg diff
diff -r e9e60624b01f setup.py
--- a/setup.py  Fri Mar 04 10:28:34 2016 -0800
+++ b/setup.py  Mon Nov 07 15:58:59 2016 -0500
@@ -74,7 +74,7 @@
            'xaml': [
                'CHANGES', 'LICENSE',
                'doc/*',
-               'vim/*.vim', 'vim/colors/*', 'vim/syntax/*', 'vim/indent/*', 'vim/ftplugin/*',
+               'vim/*', 'vim/colors/*', 'vim/syntax/*', 'vim/indent/*', 'vim/ftplugin/*',
                ],
            },
        install_requires=requirements,
$ python -m easy_install --version
setuptools 28.1.0 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (Python 3.6)
$ python setup.py sdist
running sdist
running egg_info
creating xaml.egg-info
writing xaml.egg-info/PKG-INFO
writing dependency_links to xaml.egg-info/dependency_links.txt
writing entry points to xaml.egg-info/entry_points.txt
writing requirements to xaml.egg-info/requires.txt
writing top-level names to xaml.egg-info/top_level.txt
writing manifest file 'xaml.egg-info/SOURCES.txt'
reading manifest file 'xaml.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'xaml.egg-info/SOURCES.txt'
running check
creating xaml-0.5.6
creating xaml-0.5.6/xaml
creating xaml-0.5.6/xaml.egg-info
creating xaml-0.5.6/xaml/doc
creating xaml-0.5.6/xaml/vim
creating xaml-0.5.6/xaml/vim/colors
creating xaml-0.5.6/xaml/vim/ftplugin
creating xaml-0.5.6/xaml/vim/indent
creating xaml-0.5.6/xaml/vim/syntax
copying files to xaml-0.5.6...
copying MANIFEST.in -> xaml-0.5.6
copying README.txt -> xaml-0.5.6
copying setup.cfg -> xaml-0.5.6
copying setup.py -> xaml-0.5.6
copying xaml/CHANGES -> xaml-0.5.6/xaml
copying xaml/LICENSE -> xaml-0.5.6/xaml
copying xaml/__init__.py -> xaml-0.5.6/xaml
copying xaml/__main__.py -> xaml-0.5.6/xaml
copying xaml/test.py -> xaml-0.5.6/xaml
copying xaml.egg-info/PKG-INFO -> xaml-0.5.6/xaml.egg-info
copying xaml.egg-info/SOURCES.txt -> xaml-0.5.6/xaml.egg-info
copying xaml.egg-info/dependency_links.txt -> xaml-0.5.6/xaml.egg-info
copying xaml.egg-info/entry_points.txt -> xaml-0.5.6/xaml.egg-info
copying xaml.egg-info/requires.txt -> xaml-0.5.6/xaml.egg-info
copying xaml.egg-info/top_level.txt -> xaml-0.5.6/xaml.egg-info
copying xaml/doc/examples.txt -> xaml-0.5.6/xaml/doc
copying xaml/vim/synmenu.vim -> xaml-0.5.6/xaml/vim
copying xaml/vim/colors/desertleaf.vim -> xaml-0.5.6/xaml/vim/colors
copying xaml/vim/ftplugin/xaml.vim -> xaml-0.5.6/xaml/vim/ftplugin
copying xaml/vim/indent/xaml.vim -> xaml-0.5.6/xaml/vim/indent
copying xaml/vim/syntax/xaml.vim -> xaml-0.5.6/xaml/vim/syntax
Writing xaml-0.5.6/setup.cfg
creating dist
Creating tar archive
removing 'xaml-0.5.6' (and everything under it)

I tried also with Python 3.5 using the latest setuptools and using different commands (sdist, build_py, bdist_wheel) all successfully. I believe the issue has been resolved. Please comment if you can provide a recipe to replicate the failure.

@jaraco jaraco closed this as completed Nov 7, 2016
@mjalajel
Copy link

Same issue here with luigi 2.6.0, I had to downgrading to 2.5.0 solved it for me (since it doesn't have the URI.js directory)

I'm importing it from a pip module though (luigi is declared as a dependency in setup.py)

Environment:

  • Luigi 2.6.0
  • MacOS Sierra 10.12.3 (16D32)
  • Fresh virtual environment (python 3.5.2)

Stack Trace:

Obtaining file:///Users/username/mydir/luigi
Collecting luigi (from my_module===0.0.1.dev1dev)
  Downloading luigi-2.6.0.tar.gz (1.2MB)
    100% |████████████████████████████████| 1.2MB 604kB/s
Collecting tornado<5,>=4.0 (from luigi->my_module===0.0.1.dev1dev)
  Downloading tornado-4.4.2.tar.gz (460kB)
    100% |████████████████████████████████| 460kB 842kB/s
Collecting python-daemon<3.0 (from luigi->my_module===0.0.1.dev1dev)
  Downloading python_daemon-2.1.2-py2.py3-none-any.whl
Collecting docutils (from python-daemon<3.0->luigi->my_module===0.0.1.dev1dev)
  Downloading docutils-0.13.1-py3-none-any.whl (536kB)
    100% |████████████████████████████████| 542kB 787kB/s
Requirement already satisfied: setuptools in ./venv/lib/python3.5/site-packages (from python-daemon<3.0->luigi->my_module===0.0.1.dev1dev)
Collecting lockfile>=0.10 (from python-daemon<3.0->luigi->my_module===0.0.1.dev1dev)
  Downloading lockfile-0.12.2-py2.py3-none-any.whl
Installing collected packages: tornado, docutils, lockfile, python-daemon, luigi, my_module
  Running setup.py install for tornado ... done
  Running setup.py install for luigi ... error
    Complete output from command /Users/username/mydir/luigi/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/zl/619_gzv52jqclt3l0rwbtf100000gn/T/pip-build-4plux44q/luigi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/zl/619_gzv52jqclt3l0rwbtf100000gn/T/pip-mxutnlts-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/username/mydir/luigi/venv/include/site/python3.5/luigi:
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/luigi
    copying luigi/__init__.py -> build/lib/luigi
    copying luigi/__main__.py -> build/lib/luigi
    copying luigi/batch_notifier.py -> build/lib/luigi
    copying luigi/cmdline.py -> build/lib/luigi
    copying luigi/cmdline_parser.py -> build/lib/luigi
    copying luigi/configuration.py -> build/lib/luigi
    copying luigi/date_interval.py -> build/lib/luigi
    copying luigi/db_task_history.py -> build/lib/luigi
    copying luigi/event.py -> build/lib/luigi
    copying luigi/execution_summary.py -> build/lib/luigi
    copying luigi/file.py -> build/lib/luigi
    copying luigi/format.py -> build/lib/luigi
    copying luigi/interface.py -> build/lib/luigi
    copying luigi/local_target.py -> build/lib/luigi
    copying luigi/lock.py -> build/lib/luigi
    copying luigi/mock.py -> build/lib/luigi
    copying luigi/notifications.py -> build/lib/luigi
    copying luigi/parameter.py -> build/lib/luigi
    copying luigi/postgres.py -> build/lib/luigi
    copying luigi/process.py -> build/lib/luigi
    copying luigi/retcodes.py -> build/lib/luigi
    copying luigi/rpc.py -> build/lib/luigi
    copying luigi/s3.py -> build/lib/luigi
    copying luigi/scheduler.py -> build/lib/luigi
    copying luigi/server.py -> build/lib/luigi
    copying luigi/six.py -> build/lib/luigi
    copying luigi/target.py -> build/lib/luigi
    copying luigi/task.py -> build/lib/luigi
    copying luigi/task_history.py -> build/lib/luigi
    copying luigi/task_register.py -> build/lib/luigi
    copying luigi/task_status.py -> build/lib/luigi
    copying luigi/util.py -> build/lib/luigi
    copying luigi/worker.py -> build/lib/luigi
    creating build/lib/luigi/contrib
    copying luigi/contrib/__init__.py -> build/lib/luigi/contrib
    copying luigi/contrib/bigquery.py -> build/lib/luigi/contrib
    copying luigi/contrib/bigquery_avro.py -> build/lib/luigi/contrib
    copying luigi/contrib/dataproc.py -> build/lib/luigi/contrib
    copying luigi/contrib/ecs.py -> build/lib/luigi/contrib
    copying luigi/contrib/esindex.py -> build/lib/luigi/contrib
    copying luigi/contrib/external_program.py -> build/lib/luigi/contrib
    copying luigi/contrib/ftp.py -> build/lib/luigi/contrib
    copying luigi/contrib/gcs.py -> build/lib/luigi/contrib
    copying luigi/contrib/hadoop.py -> build/lib/luigi/contrib
    copying luigi/contrib/hadoop_jar.py -> build/lib/luigi/contrib
    copying luigi/contrib/hive.py -> build/lib/luigi/contrib
    copying luigi/contrib/mrrunner.py -> build/lib/luigi/contrib
    copying luigi/contrib/mssqldb.py -> build/lib/luigi/contrib
    copying luigi/contrib/mysqldb.py -> build/lib/luigi/contrib
    copying luigi/contrib/opener.py -> build/lib/luigi/contrib
    copying luigi/contrib/pig.py -> build/lib/luigi/contrib
    copying luigi/contrib/postgres.py -> build/lib/luigi/contrib
    copying luigi/contrib/pyspark_runner.py -> build/lib/luigi/contrib
    copying luigi/contrib/rdbms.py -> build/lib/luigi/contrib
    copying luigi/contrib/redis_store.py -> build/lib/luigi/contrib
    copying luigi/contrib/redshift.py -> build/lib/luigi/contrib
    copying luigi/contrib/s3.py -> build/lib/luigi/contrib
    copying luigi/contrib/salesforce.py -> build/lib/luigi/contrib
    copying luigi/contrib/scalding.py -> build/lib/luigi/contrib
    copying luigi/contrib/sge.py -> build/lib/luigi/contrib
    copying luigi/contrib/sge_runner.py -> build/lib/luigi/contrib
    copying luigi/contrib/simulate.py -> build/lib/luigi/contrib
    copying luigi/contrib/spark.py -> build/lib/luigi/contrib
    copying luigi/contrib/sparkey.py -> build/lib/luigi/contrib
    copying luigi/contrib/sqla.py -> build/lib/luigi/contrib
    copying luigi/contrib/ssh.py -> build/lib/luigi/contrib
    copying luigi/contrib/target.py -> build/lib/luigi/contrib
    copying luigi/contrib/webhdfs.py -> build/lib/luigi/contrib
    creating build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/__init__.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/abstract_client.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/clients.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/config.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/error.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/format.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/hadoopcli_clients.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/snakebite_client.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/target.py -> build/lib/luigi/contrib/hdfs
    copying luigi/contrib/hdfs/webhdfs_client.py -> build/lib/luigi/contrib/hdfs
    creating build/lib/luigi/tools
    copying luigi/tools/__init__.py -> build/lib/luigi/tools
    copying luigi/tools/deps.py -> build/lib/luigi/tools
    copying luigi/tools/deps_tree.py -> build/lib/luigi/tools
    copying luigi/tools/luigi_grep.py -> build/lib/luigi/tools
    copying luigi/tools/range.py -> build/lib/luigi/tools
    creating build/lib/luigi/static
    creating build/lib/luigi/static/visualiser
    copying luigi/static/visualiser/index.html -> build/lib/luigi/static/visualiser
    copying luigi/static/visualiser/test.html -> build/lib/luigi/static/visualiser
    creating build/lib/luigi/static/visualiser/css
    copying luigi/static/visualiser/css/font-awesome.min.css -> build/lib/luigi/static/visualiser/css
    copying luigi/static/visualiser/css/tipsy.css -> build/lib/luigi/static/visualiser/css
    creating build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/fontawesome-webfont.eot -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/glyphicons-halflings-regular.eot -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/fontawesome-webfont.svg -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/glyphicons-halflings-regular.svg -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/fontawesome-webfont.ttf -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/glyphicons-halflings-regular.ttf -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/fontawesome-webfont.woff -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/glyphicons-halflings-regular.woff -> build/lib/luigi/static/visualiser/fonts
    copying luigi/static/visualiser/fonts/fontawesome-webfont.woff2 -> build/lib/luigi/static/visualiser/fonts
    creating build/lib/luigi/static/visualiser/js
    copying luigi/static/visualiser/js/graph.js -> build/lib/luigi/static/visualiser/js
    copying luigi/static/visualiser/js/luigi.js -> build/lib/luigi/static/visualiser/js
    copying luigi/static/visualiser/js/tipsy.js -> build/lib/luigi/static/visualiser/js
    copying luigi/static/visualiser/js/visualiserApp.js -> build/lib/luigi/static/visualiser/js
    creating build/lib/luigi/static/visualiser/js/test
    copying luigi/static/visualiser/js/test/graph_test.js -> build/lib/luigi/static/visualiser/js/test
    creating build/lib/luigi/static/visualiser/lib
    copying luigi/static/visualiser/lib/jquery-1.10.0.min.js -> build/lib/luigi/static/visualiser/lib
    copying luigi/static/visualiser/lib/jquery.slimscroll.min.js -> build/lib/luigi/static/visualiser/lib
    copying luigi/static/visualiser/lib/mustache.js -> build/lib/luigi/static/visualiser/lib
    error: can't copy 'luigi/static/visualiser/lib/URI.js': doesn't exist or not a regular file

    ----------------------------------------
Command "/Users/username/mydir/luigi/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/zl/619_gzv52jqclt3l0rwbtf100000gn/T/pip-build-4plux44q/luigi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/zl/619_gzv52jqclt3l0rwbtf100000gn/T/pip-mxutnlts-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/username/mydir/luigi/venv/include/site/python3.5/luigi" failed with error code 1 in /private/var/folders/zl/619_gzv52jqclt3l0rwbtf100000gn/T/pip-build-4plux44q/luigi/

fdemmer pushed a commit to fdemmer/geordi that referenced this issue Aug 7, 2017
pypa/setuptools#483

As per:

    Collecting geordi==0.4.2 (from -r reqs.txt (line 1))
      Downloading https://artifactory-proxy.internal.useast.atlassian.io/bitbucket-pypi-virtual/packages/geordi/0.4.2/geordi-0.4.2.tar.gz (707kB)
        100% |████████████████████████████████| 716kB 346kB/s
    Installing collected packages: geordi
      Running setup.py install for geordi ... error
        Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3M5vHi/geordi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qHoU5K-record/install-record.txt --single-version-externally-managed --compile:
        running install
        running build
        running build_py
        creating build
        creating build/lib
        creating build/lib/geordi
        copying geordi/__init__.py -> build/lib/geordi
        running egg_info
        writing geordi.egg-info/PKG-INFO
        writing top-level names to geordi.egg-info/top_level.txt
        writing dependency_links to geordi.egg-info/dependency_links.txt
        warning: manifest_maker: standard file '-c' not found

        reading manifest file 'geordi.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'geordi.egg-info/SOURCES.txt'
        creating build/lib/geordi/static
        creating build/lib/geordi/static/geordi
        creating build/lib/geordi/static/geordi/css
        copying geordi/static/geordi/css/vis.min.css -> build/lib/geordi/static/geordi/css
        creating build/lib/geordi/static/geordi/img
        copying geordi/static/geordi/img/data.gif -> build/lib/geordi/static/geordi/img
        creating build/lib/geordi/static/geordi/js
        copying geordi/static/geordi/js/geordi.js -> build/lib/geordi/static/geordi/js
        copying geordi/static/geordi/js/vis.min.js -> build/lib/geordi/static/geordi/js
        creating build/lib/geordi/templates
        creating build/lib/geordi/templates/geordi
        copying geordi/templates/geordi/geordi.html -> build/lib/geordi/templates/geordi
        error: can't copy 'geordi/static/geordi/img': doesn't exist or not a regular file

        ----------------------------------------
    Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3M5vHi/geordi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qHoU5K-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3M5vHi/geordi/
@asmodehn
Copy link

Having the same issue with setuptools 35.0.1

When putting wildcard * in package_data, it resolve to all content (directories and files). Then it goes on and attempts to copy the directories but fails with error: can't copy <dirname> : doesn't exist or not a regular file.

Obvious workaround is to precise the wildcard to not match the directories.

I however wish the wildcard would resolve only to something that makes sense for the later install step... especially since **/* I understand is there to match directories.

@asmodehn
Copy link

Might relate to pypa/sampleproject#30 and #436

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

No branches or pull requests

4 participants