sdss / sdss/target_selection

Runtime error immediately after installation on Utah systems

Open
#49 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Hi José,

calling for help in desperation after having tried everything I could think of to get target_selection up and running on Utah machines.

Problem - I am able to run target_selection (both 'main' and 'bhm_v05_3' branches), installed via git+python setup.py install on my local machine, communicating with the sdssdb via an ssh tunnel to Utah. However, repeating the installation process on the eboss.sdss.org machine, and running a trivial test post installation results in the following runtime error:

(py37) u6023218@eboss:/uufs/chpc.utah.edu/common/home/sdss10/sdss5/target/development/0.5.0$ target_selection --help
[ERROR]: Traceback (most recent call last):
File "/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/bin/target_selection", line 4, in
import('pkg_resources').run_script('sdss-target-selection==0.2.3', 'target_selection')
File "/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/lib/python3.7/site-packages/pkg_resources/init.py", line 651, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/lib/python3.7/site-packages/pkg_resources/init.py", line 1448, in run_script
exec(code, namespace, namespace)
File "/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/lib/python3.7/site-packages/sdss_target_selection-0.2.3-py3.7.egg/EGG-INFO/scripts/target_selection", line 9, in
from target_selection.main import target_selection
File "/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/lib/python3.7/site-packages/sdss_target_selection-0.2.3-py3.7.egg/target_selection/init.py", line 27, in
from .xmatch import XMatchPlanner, XMatchModel # isort:skip
File "/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/lib/python3.7/site-packages/sdss_target_selection-0.2.3-py3.7.egg/target_selection/xmatch.py", line 33, in
from target_selection.utils import (Timer, get_configuration_values,
ImportError: cannot import name 'Timer' from 'target_selection.utils' (/uufs/chpc.utah.edu/common/home/u6023218/environments/py37/lib/python3.7/site-packages/sdss_target_selection-0.2.3-py3.7.egg/target_selection/utils/init.py)

I have "pip install -U" updated to latest versions, all packages referred to within target_selection/setup.cfg, including sdssdb and sdsstools.

I expect I'm doing something trivially stupid, but cannot for the life of me work out what it is!

Any pointers?

Cheers

Tom

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 target_selection/utils/init.py and xmatch.py, using the traceback as the entry point; inspect the installed sdss-target-selection 0.2.3 package against the branch being installed and the dependencies in setup.cfg. Reproduce target_selection --help on the Utah machine after installation. Done means the command imports successfully and --help runs without the Timer ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.