projectglow / glow

An open-source toolkit for large-scale genomic analysis
https://projectglow.io
Apache License 2.0
262 stars 106 forks source link

Cannot install+use the python glow package any more #533

Closed Hoeze closed 5 months ago

Hoeze commented 11 months ago

Just installed a fresh python 3.10 environment with glow: conda create --name glow -c conda-forge "python=3.10" "glow" Then trying to import glow:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[2], line 9
      6 import pyspark.sql.types as t
      7 import pyspark.sql.functions as f
----> 9 import glow

File /opt/anaconda/envs/glow/lib/python3.10/site-packages/glow/__init__.py:22
     18 def extend_all(module):
     19     __all__.extend(module.__all__)
---> 22 from .glow import *
     23 from . import glow
     24 extend_all(glow)

File /opt/anaconda/envs/glow/lib/python3.10/site-packages/glow/glow.py:15
      1 # Copyright 2019 The Glow Authors
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
---> 15 from glow.conversions import OneDimensionalDoubleNumpyArrayConverter, TwoDimensionalDoubleNumpyArrayConverter
     16 from py4j import protocol
     17 from py4j.protocol import register_input_converter

File /opt/anaconda/envs/glow/lib/python3.10/site-packages/glow/conversions.py:18
     16 from py4j.java_collections import JavaArray
     17 from pyspark import SparkContext
---> 18 from typeguard import check_argument_types, check_return_type
     21 def _is_numpy_double_array(object, dimensions: int) -> bool:
     22     assert check_argument_types()

ImportError: cannot import name 'check_argument_types' from 'typeguard' (/opt/anaconda/envs/glow/lib/python3.10/site-packages/typeguard/__init__.py)
Hoeze commented 11 months ago

aaah, I just saw that this is an old version on conda... Maybe you could also upload v1.2.1 to conda-forge :smile:

henrydavidge commented 5 months ago

@Hoeze I'm going to make a new release soon and will publish to conda forge as well as PyPI.