pcdshub / pcdshub/pcds-python-migration-tools

apischema requirement is apischema[graphql]

Open Beginner friendly
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

https://github.com/pcdshub/pcds-python-migration-tools/blob/8cac8ac7702424543ff173bb03b3f981175b164f/requirements.txt#L1

Vincent saw:

(migration) [espov@psbuild-rhel7-03  pcds-python-migration-tools]$ python update_python_repository.py ../../pydm-ui-lcls1/
Traceback (most recent call last):
  File "/cds/group/pcds/epics-dev/espov/packages/pcds-python-migration-tools/update_python_repository.py", line 19, in <module>
    from detravisify import migrate_travis_to_gha
  File "/cds/group/pcds/epics-dev/espov/packages/pcds-python-migration-tools/detravisify.py", line 13, in <module>
    import apischema
  File "/cds/home/e/espov/miniconda3/envs/migration/lib/python3.11/site-packages/apischema/__init__.py", line 65, in <module>
    if _gql.__version__.startswith("2."):
       ^^^^^^^^^^^^^^^^
AttributeError: module 'graphql' has no attribute '__version__'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with requirements.txt line 1, then inspect the apischema import in detravisify.py and the entry point update_python_repository.py. Reproduce the command shown in the issue and determine the dependency compatibility problem; the work is done when the migration command imports successfully without the graphql version error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.