-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How do you setup a forked repo for developement with poetry? #229
Comments
I don't know how the existing contributors handle this, but my workflow has become:
See if that works for you :) |
Unfortunately |
I managed to hack my way out of this impass by running |
I believe I didn't. What error are you getting? |
As I mentioned the error is the same - |
Ok, let me get this right: you cloned it, ran |
It goes like this: $ git clone ...
$ cd poetry
$ pyenv activate poetry-fork-3.6 # activate virtualenv
$ poetry install # not working
Traceback (most recent call last):
File "/usr/local/bin/poetry", line 7, in <module>
from poetry.console import main
File "/<truncated>/open-source/poetry/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/<truncated>/open-source/poetry/poetry/console/application.py", line 6, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
$ poetry develop # also not working
Traceback (most recent call last):
File "/usr/local/bin/poetry", line 7, in <module>
from poetry.console import main
File "/<truncated>/open-source/poetry/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/<truncated>/open-source/poetry/poetry/console/application.py", line 6, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
$ cd docs # this would work with any other directory as well
$ poetry install # now it's working cause local `poetry` is no longer in the `$PATH`
Updating dependencies
Resolving dependencies... (34.6s)
Package operations: 49 installs, 0 updates, 0 removals
.... |
Hm... This probably has something to do with pyenv. But it shouldn't happen anyways. |
Without running any btw I'm running on macOS High Sierra (10.13.5) |
How did you install poetry? |
|
This issue sounds like pypa/pipenv#2557. Essentially, when using global You can see that in @tadeoos command output where Like @tadeoos pointed out, it works from the A short term fix for this is to use |
If you install Poetry globally via the recommended installer, there should not be any issues. If you want to test the behavior of your modification to the poetry codebase by executing the |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hey,
@cauebs already mentioned in #203 that a contributing guide would come handy, for now I am struggling with setting up a proper developement environment. Since there is a
pyproject.toml
it makes sense to develop poetry using poetry, but when I runpoetry install
from forked repo dir I get:As you can see it gets confused with imports: the actual poetry installed on my machine (
/usr/local/bin/poetry
) starts using paths from the forked repo and hence can't find the modules which of course aren't there since we want to install them with this command...Any ideas? Contributors - how does your setup looks like?
The text was updated successfully, but these errors were encountered: