EmAstro / ESOAsg

A collection of useful packages used to validate data for the ESO archive.
8 stars 2 forks source link

Issue during installation #9

Closed sakokassounian closed 2 years ago

sakokassounian commented 3 years ago

I am trying to install ESOAsg within the anaconda environment without accessing the sudo system and only within the anaconda virtual environment. After finishing the installation using the guide, and after I import the package, I get an error that the pytest version needs to be grater than 6.0 which in fact it is 6.1.1. How can I solve this issue?

EmAstro commented 3 years ago

Could you post the output of:

ipython --pylab

import pytest
pytest.__version__
sakokassounian commented 3 years ago

sarkis@capelobo:~$ ipython bash: ipython: command not found sarkis@capelobo:~$ conda activate (base) sarkis@capelobo:~$ ipython Python 3.8.5 (default, Sep 4 2020, 07:30:14) Type 'copyright', 'credits' or 'license' for more information IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import ESOAsg

ImportError Traceback (most recent call last)

in ----> 1 import ESOAsg ~/Desktop/ESOAsg/ESOAsg/__init__.py in 2 __version__ = '0.1.1dev' 3 ----> 4 from ESOAsg import check_requirements # THIS IMPORT DOES THE CHECKING. KEEP IT 5 from ESOAsg import msgs 6 from ESOAsg import default ~/Desktop/ESOAsg/ESOAsg/check_requirements.py in 16 else: 17 if pkg_resources.parse_version(pv) < pkg_resources.parse_version(version): ---> 18 raise ImportError('Your version of {0} is incompatible with ESOAsg. '.format(pkg) 19 + 'Please update to version >= {0}'.format(version)) **ImportError: Your version of pytest is incompatible with ESOAsg. Please update to version >= 6.0** [1]+ Stopped ipython (base) sarkis@capelobo:~$ ipython --pylab Python 3.8.5 (default, Sep 4 2020, 07:30:14) Type 'copyright', 'credits' or 'license' for more information IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help. Using matplotlib backend: Qt5Agg In [1]: import pytest In [2]: pytest.__version__ Out[2]: '6.1.1' In [3]:
EmAstro commented 3 years ago

updating to pytest 6.2.1 seems to solve the problem. Could you try to update pytest: conda update pytest

If this solve the problem I will update the requirements for python 3.8

EmAstro commented 3 years ago

is this working?