Skip to content
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

parse_version() is called twice (instead of once) #90

Open
ens-lg4 opened this issue Nov 30, 2018 · 1 comment
Open

parse_version() is called twice (instead of once) #90

ens-lg4 opened this issue Nov 30, 2018 · 1 comment

Comments

@ens-lg4
Copy link
Contributor

ens-lg4 commented Nov 30, 2018

When detecting soft entries it seems that their version-detection code runs twice with the same input parameters (and thus with the same results). Here is the output of one full detection run :

$ ck detect soft --tags=lib,pyquil

  Searching for Rigetti pyQuil library (pyquil/__init__.py) to automatically register in the CK - it may take some time, pl  Searching for Rigetti pyQuil library (pyquil/__init__.py) to automatically register in the CK - it may take some time, pl  Searching for Rigetti pyQuil library (pyquil/__init__.py) to automatically register in the CK - it may take some time, pl  Searching for Rigetti pyQuil library (pyquil/__init__.py) to automatically register in the CK - it may take some time, please wait ...

    * Searching in /usr ...
    * Searching in /opt ...
    * Searching in /usr/local/Cellar ...
    * Searching in /Users/lg4 ...
    * Searching in /Users/lg4/Library/Python ...

  Search completed in 57.9 secs. Found 1 target files (may be pruned) ...

  Detecting and sorting versions (ignore some work output) ...


  Prepared CMD to detect version: PYTHONPATH=/Users/lg4/Library/Python/3.6/lib/python/site-packages python3 -c 'import pyquil ; print(pyquil.__version__)' >/var/folders/26/xh863tq54n59h5rnrk3c7mtw0000gn/T/B7mJmI ...

Executing "bash -c "chmod 755 /var/folders/26/xh863tq54n59h5rnrk3c7mtw0000gn/T/tmp-GTVbSa.sh; . /var/folders/26/xh863tq54n59h5rnrk3c7mtw0000gn/T/tmp-GTVbSa.sh"" ...

Version detected: 1.9.0
    * /Users/lg4/Library/Python/3.6/lib/python/site-packages/pyquil/__init__.py   (Version 1.9.0)


  Registering in the CK (/Users/lg4/Library/Python/3.6/lib/python/site-packages/pyquil/__init__.py) ...

  Software entry found: lib.pyquil (7a688556e84d7c47)

  Attempting to detect version automatically (if supported) ...

  Prepared CMD to detect version: PYTHONPATH=/Users/lg4/Library/Python/3.6/lib/python/site-packages python3 -c 'import pyquil ; print(pyquil.__version__)' >/var/folders/26/xh863tq54n59h5rnrk3c7mtw0000gn/T/07h7jr ...

Executing "bash -c "chmod 755 /var/folders/26/xh863tq54n59h5rnrk3c7mtw0000gn/T/tmp-oyMCqQ.sh; . /var/folders/26/xh863tq54n59h5rnrk3c7mtw0000gn/T/tmp-oyMCqQ.sh"" ...

Version detected: 1.9.0

  Detected version: 1.9.0

Searching if environment already exists using:
  * Tags: lib,quantum,rigetti,pyquil,host-os-macos-64,target-os-macos-64,64bits,v1,v1.9,v1.9.0

    Environment with above tags is not yet registered in CK ...

Environment entry added (58b160288a164bc2)!
  Successfully registered with UID: 58b160288a164bc2
@gfursin
Copy link
Member

gfursin commented Nov 30, 2018

Hmm, strange indeed. Need to check ...

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

No branches or pull requests

2 participants