Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • tomoscan tomoscan
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tomotools
  • tomoscantomoscan
  • Issues
  • #9
Closed
Open
Created Apr 15, 2020 by Pierre Paleo@paleoOwner

Dependencies handling in setup.py

I have the following error in the CI of Nabu:

158 ___________ ERROR collecting preproc/tests/test_double_flat_field.py ___________
159 ImportError while importing test module '/root/.venv/py3/lib/python3.5/site-packages/nabu/preproc/tests/test_double_flat_field.py'.
160 Hint: make sure your test modules/packages have valid Python names.
161 Traceback:
162 /root/.venv/py3/lib/python3.5/site-packages/nabu/preproc/tests/test_double_flat_field.py:9: in <module>
163     from nabu.resources.dataset_analyzer import analyze_dataset
164 /root/.venv/py3/lib/python3.5/site-packages/nabu/resources/dataset_analyzer.py:3: in <module>
165     from tomoscan.esrf.edfscan import EDFTomoScan
166 /root/.venv/py3/lib/python3.5/site-packages/tomoscan/esrf/edfscan.py:37: in <module>
167     from lxml import etree
168 E   ImportError: No module named 'lxml'

I believe I should first do a pip install -r requirements.txt in the CI file.

However it would be good that the dependencies are automatically installed when we do a pip install tomoscan (or pip install git+https://gitlab.esrf.fr/tomotools/tomoscan for now).

To do so, the install_requires has to be filled in the setuptools.setup method. I don't know for distutils.

What do you think ?

Assignee
Assign to
Time tracking