Python Forum
Poetry Dependency general Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Poetry Dependency general Help
#1
Hi everyone I am glad to be posting my first question in here. Thanks in advance.

I have a module on poetry which imports two other modules.

When I run pip install --no-deps -U PythonLambda/db_woodchipper_rds_instance_count/

I get the following error:
Error:
File "/private/var/folders/z8/wstptfzd75gb_cmbr6x3rhf40000gn/T/pip-build-env-usxpnuv9/overlay/lib/python3.8/site-packages/poetry/core/packages/directory_dependency.py", line 36, in __init__ raise ValueError("Directory {} does not exist".format(self._path)) ValueError: Directory ../awsutil does not exist ----------------------------------------
This is my poetry file for db_woodchipper_rds_instance_count:

[tool.poetry]
name = "db_woodchipper_rds_instance_count"
version = "0.1.0"
description = ""
authors = 

[tool.poetry.dependencies]
python = "^3.8"
boto3 = "^1.16.28"
awsutil = {path = "../awsutil", develop = false}
gusutil = {path = "../gusutil", develop = false}

[tool.poetry.dev-dependencies]
pytest = "^5.2"
moto = "^1.3.16"
black = "^20.8b1"
isort = "^5.6.4"
lint = "^1.2.1"
pylint = "^2.6.0"
sure = "^1.4.11"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
This is the folder structure:

├── awsutil
│   ├── Makefile
│   ├── README.rst
│   ├── poetry.lock
│   ├── pyproject.toml
│   ├── setup.py
│   ├── src
│   │   └── awsutil
│   │   ├── __init__.py
│   │   ├── kinesis.py
│   └── tests
│   ├── __init__.py
── db_woodchipper_rds_instance_count
│   ├── Makefile
│   ├── build
│   │   ├── distributions
│   │   └── test-results
│   │   └── db_woodchipper_rds_instance_count
│   │   └── result.xml
│   ├── poetry.lock
│   ├── pyproject.toml
│   ├── src
│   │   └── db_woodchipper_rds_instance_count
│   │   ├── __init__.py
│   │   └── instance_count.py
│   └── tests
│   ├── __init__.py
│   └── test_db_woodchipper_rds_instance_count.py
├── gusutil
│   ├── Makefile
│   ├── README.rst
│   ├── build
│   │   └── test-results
│   │   └── gusutil
│   │   └── result.xml
│   ├── poetry.lock
│   ├── pyproject.toml
│   ├── setup.py
│   ├── src
│   │   └── gusutil
│   │   ├── __init__.py
│   │   ├── gus_util.py
│   │   └── query_util.py
│   └── tests
│   ├── __init__.py
│   └── test_gusutil.py


Note: gusutil also imports awsutil.

Does anyone know what am I doing wrong in here?

Any help would be greatly appreciated! Thanks a lot.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [solved] What is the best/pytonic way to import with dependency ? SpongeB0B 2 641 Jul-09-2023, 05:05 AM
Last Post: SpongeB0B
  Request Dependency warning thetechnodino 0 907 Dec-20-2022, 02:12 AM
Last Post: thetechnodino
  Circular import dependency hobbyist 9 3,767 Feb-23-2021, 11:57 AM
Last Post: Gribouillis
  Installing nltk dependency Eshwar 0 1,798 Aug-30-2020, 06:10 PM
Last Post: Eshwar
  How do I change wx version dependency? belfacode 0 1,536 May-17-2020, 09:18 AM
Last Post: belfacode
  Module Dependency installation error draems 10 10,107 Feb-12-2017, 08:18 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020