Skip to content

Problem with python3.11 package for faststructure: TypeError: Cannot convert allelefreq.AlleleFreq to allelefreq.AlleleFreq #58111

@amizeranschi

Description

@amizeranschi

Hi @StuntsPT

Thank you very much for your work on updating the faststructure recipe to work with python3!

Unfortunately, I tried testing a recent package (py311h2758d52_6) and I'm running into some errors. This is the command that I'm running:

structure.py -K 2 --input=genotypes_imputed --output=genotypes_imputed_faststructure

And this is the error message:

Traceback (most recent call last):
  File "/home/ubuntu/anaconda/envs/faststructenv/bin/structure.py", line 177, in <module>
    Q, P, other = fastStructure.infer_variational_parameters(G, params['K'], \
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "fastStructure.pyx", line 54, in fastStructure.infer_variational_parameters
TypeError: Cannot convert allelefreq.AlleleFreq to allelefreq.AlleleFreq

Any idea on what could be the issue here? The same command works fine for me with an older bioconda package for python2.7 (py27h6b1b274_5).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions