Skip to content

fix: error on poetry install#1

Open
dnplkndll wants to merge 8 commits intomasterfrom
arm_compat_v2
Open

fix: error on poetry install#1
dnplkndll wants to merge 8 commits intomasterfrom
arm_compat_v2

Conversation

@dnplkndll
Copy link

@dnplkndll dnplkndll commented Dec 20, 2023

@dnplkndll
Copy link
Author

dnplkndll commented Dec 20, 2023

ast3/Python/ast.c:4514:7: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
          v = _PyUnicode_DecodeUnicodeEscape(s, len, NULL, &first_invalid_escape);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      195 warnings and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1

thus

poetry update typed-ast 
poetry run pytest --prebuild
Traceback (most recent call last):
  File "/Users/dkendall/Library/Caches/pypoetry/virtualenvs/docker-whitelist--zr-W_b9-py3.12/lib/python3.12/site-packages/py/_vendored_packages/apipkg/__init__.py", line 145, in __makeattr
    modpath, attrname = self.__map__[name]
                        ~~~~~~~~~~~~^^^^^^
KeyError: '__spec__'

During handling of the above exception, another exception occurred:
poetry update pytest-xdist
      × Preparing metadata (pyproject.toml) did not run successfully.
pre-commit autoupdate

@dnplkndll
Copy link
Author

docker run -e TARGET=cognito-idp.us-east-1.amazonaws.com -e PRE_RESOLVE=1 my_custom_image
one of the use cases and results.

/usr/local/bin/proxy:21: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead
  ip = random.choice([answer.address for answer in resolver.query(target)])
INFO:root:Resolved cognito-idp.us-east-1.amazonaws.com to 44.194.147.229
Traceback (most recent call last):
  File "/usr/local/bin/proxy", line 25, in <module>
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

@JordiBForgeFlow I guess I now need to add a test on this you have any guidance? I will look around here. but current tests run clean.

➜  docker-whitelist git:(arm_compat_v2) poetry run pytest --image my_custom_image
=============================================================== test session starts ================================================================
platform darwin -- Python 3.9.14, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /Users/dkendall/projects/docker-whitelist, configfile: pytest.ini
plugins: xdist-2.5.0, forked-1.3.0
gw0 [1] / gw1 [1] / gw2 [1] / gw3 [1] / gw4 [1] / gw5 [1] / gw6 [1] / gw7 [1] / gw8 [1] / gw9 [1] / gw10 [1] / gw11 [1] / gw12 [1] / gw13 [1]
.                                                                                                                                            [100%]
================================================================ 1 passed in 0.78s =================================================================

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

Successfully merging this pull request may close these issues.

1 participant