-
Notifications
You must be signed in to change notification settings - Fork 130
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
ModuleNotFoundError: No module named 'flit_core.dummy' #530
Comments
This is hitting my projects as well which use |
This is almost certainly related to #499. Based on the logs here and in #529, I'd guess this occurs when a) it can't get It looks like this is going to hit a load of people - sorry about that. I'll ask people now: please don't comment just to say it affects you too (you can click the 👍 under the first comment). I am pretty busy, so any help working out how to deal with this is welcome. Besides #499, you might want to look at commit 432dc76 where the 'dummy' module names were introduced, and the backwards-compatibility implementation of |
Indeed! I set the version to static in |
I should have mentioned, there are two levels of static vs dynamic in getting the version number. You can set it in pyproject.toml, you can have a plain |
Yup, I have the version number in |
I am getting it from csselect2 due to relative imports in init here |
Again, I know this issue is going to affect a lot of people. There will hopefully be a fix soon. In the meantime, please 👍 the initial comment if you just want to say 'me too'. Thanks! |
Based on a tiny test case, I think #531 fixes this. It would be great if some people affected by it on real projects could try it out and see if there are other issues lurking. Install from that branch, and then try either |
FYI, the docs seem to be out of date. The "3.7.1" milestone confused me for a second, because the "current" version in the docs is 3.5.1. |
It seems to work well for me. Thanks a lot for the quick fix. |
It looks like the docs stopped building when we renamed |
Still not working for me with |
@nschloe could I ask you to give a bit more detail of what your code is like, what you're doing and what you see (more of the traceback)? If you're using pip, pass |
You can also just set the URL in the pyproject.toml's requires section, like: requires = ["flit_core @ git+https://github.com/pypa/flit@i530"] (Hmm, at least I think so - haven't tried that with a dual package yet like flit/flit_core - I think there's a way to set a subdirectory. Maybe add Edit: Yeah, I don't know how to put a subdirectory in here. :( |
I just run any flit command, e.g., flit publish, on nschloe/colorio to get the error. I can provide more details tomorrow. |
The correct syntax (thanks @layday) is: requires = ["flit-core @ git+https://github.com/pypa/flit@i530#subdirectory=flit_core"] I tried this out: $ brew install git-lfs
$ gh repo clone nschloe/colorio
$ cd colorio Removing the cap on flit version causes 🚢 |
Fixes emerging e.g. pyparsing. Bug: pypa/flit#530 Bug: pypa/flit#531 Signed-off-by: Sam James <sam@gentoo.org>
Thanks @henryiii for looking up the correct syntax! With this, it also works for me. |
Same issue here. I'd be happy to test the fix if there is a clear step by step explanation of how to try that. |
@nschloe Thanks, but for me that's missing a few steps ':-) |
OK, it seems like #531 fixes this. I'll merge that and make a new release (3.7.1). |
& thanks for testing it! |
There was a Flit release yesterday that broke `tox -epackage`. See: pypa/flit#530
I'm building my project with
and since earlier today I'm getting the error message
when running
pip install .
on the repo. Perhaps I messed up something in the package, but the error message points towards flit. Any idea what's going on?The text was updated successfully, but these errors were encountered: