-
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
'BinOp' object has no attribute 's'
when trying to add a git dependency with poetry
#1900
Comments
The reason why the add is failing is because the fallback setup.py reader does not like complex setup files very much. Same with the original issue - ast evaluation craps out. The Unfortunately for us, it is a binary operation in the AST and hence the failure. The fallback itself is triggered when the Workaround for local development, would be to build a wheel and add it to the dependencies section. statsmodels = { file = "/path/to/wheel" } |
I have a similar case, where there is a named variable in extra_requires. I was hoping that using the old poetry add "https://github.com/jayvdb/django-oscar/archive/release_2_0.zip#egg=django-oscar-2.0.5dev1"
An error occurred when reading setup.py or setup.cfg: 'Name' object has no attribute 's'
RuntimeError
Unable to determine the package name of /tmp/tmpi9nnq23l/release_2_0.zip
at ~/projects/python/poetry/poetry/puzzle/provider.py:267 in get_package_from_file
263│ @classmethod
264│ def get_package_from_file(cls, file_path): # type: (Path) -> Package
265│ info = Inspector().inspect(file_path)
266│ if not info["name"]:
→ 267│ raise RuntimeError(
268│ "Unable to determine the package name of {}".format(file_path)
269│ )
270│
271│ package = Package(info["name"], info["version"]) |
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. |
-vvv
option).Issue
When trying to add statsmodels in dev version to the project on either of the two systems using
(and without -vvv), I get
'BinOp' object has no attribute 's'
(full output with -vvv)pip install git+https://github.com/statsmodels/statsmodels.git
works fine though.The text was updated successfully, but these errors were encountered: