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

python setup.py build develop --no-deps #368

Open
PanffeeReal opened this issue Nov 17, 2021 · 3 comments
Open

python setup.py build develop --no-deps #368

PanffeeReal opened this issue Nov 17, 2021 · 3 comments

Comments

@PanffeeReal
Copy link

Here I encountered a problem as:

$ python setup.py build develop --no-deps
running build
running build_py
running egg_info
writing fcos.egg-info/PKG-INFO
writing dependency_links to fcos.egg-info/dependency_links.txt
writing requirements to fcos.egg-info/requires.txt
writing top-level names to fcos.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'fcos.egg-info/SOURCES.txt'
error: can't copy 'fcos/configs': doesn't exist or not a regular file

because focs/configs is a folder instead of a file ,so how to deal with it ? thanks l a lot !

@PanffeeReal
Copy link
Author

The same problem appears when I use Testing-only installation:

$ pip install git+https://github.com/tianzhi0549/FCOS.git
.......
error: can't copy 'fcos/configs': doesn't exist or not a regular file

ERROR: Failed building wheel for fcos

Help me please,Thank you very much !

@fsted
Copy link

fsted commented Nov 29, 2021

I meet the same error,who can help me...(ㄒoㄒ)

@vorj
Copy link

vorj commented Dec 2, 2021

@PanffeeReal @fsted
TL;DR: Uninstall setuptools-scm .

I found the workaround.
You two must had installed cocoapi , and matplotlib which is one of dependencies for cocoapi .
At 2021/11/16 (16days ago), matplotlib v3.5.0 has been released, and matplotlib depends on setuptools-scm since this version.
I'm not sure of the details, but it seems that this package breaks the behavior of setuptools package.
So, the workarounds are below:

  1. Uninstall setuptools-scm after installing cocoapi , or
  2. Fix setup.py of cocoapi to install matplotlib <= 3.4 , or
  3. Install matplotlib <= 3.4 at first.

If you just want to install and use FCOS, 1st one is the easiest I think.

I have reproduced this problem and have confirmed to fix by either of 1st and 3rd workarounds (I've not checked 2nd one, but it should also work).
I hope that this post will help you.


ADD : The developer of setuptools_scm told me that:

  • The behavior of setuptools_scm is expected
  • Current workaround is 1st one in the list above, uninstalling setuptools_scm before affected packages

So, in this context you don't need to hesitate to uninstall it.

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

No branches or pull requests

3 participants