Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError when running tests (trying to build 3.6 manually) #18

Closed
gwerbin opened this issue Oct 18, 2018 · 1 comment
Closed

Comments

@gwerbin
Copy link

gwerbin commented Oct 18, 2018

Here's my attempt at building Gensim 3.6.0 for Python 3.6. I just bumped the version number and got the updated SHA256 from PyPI.

Does something need to be updated elsewhere in the recipe?

git clone https://github.com/conda-forge/gensim-feedstock
cd gensim-feedstock

git apply <<'EOF'
diff --git a/feedstocks/gensim-feedstock/recipe/meta.yaml b/feedstocks/gensim-feedstock/recipe/meta.yaml
index 134fd61..7c1c694 100644
--- a/feedstocks/gensim-feedstock/recipe/meta.yaml
+++ b/feedstocks/gensim-feedstock/recipe/meta.yaml
@@ -1,6 +1,6 @@
 {% set name = "gensim" %}
-{% set version = "3.5.0" %}
-{% set sha256 = "78ed9b6ac35f104542f3bee0386d71ddf9432d74c153065d2ea9f6baf10e5b49" %}
+{% set version = "3.6.0" %}
+{% set sha256 = "24adaca52e8d821a2f5d5e6fe2e37cf321b1fafb505926ea79a7c2f019ce5b07" %}

 package:
   name: {{ name|lower }}
EOF

conda build --python=3.6 ./recipe

This gives the error:

ModuleNotFoundError: No module named 'gensim.models.word2vec_corpusfile'

Output from conda info:

     active environment : None
            shell level : 0
       user config file : /<redacted>/.condarc
 populated config files : /<redacted>/.condarc
          conda version : 4.5.0
    conda-build version : 3.0.31
         python version : 3.6.1.final.0
       base environment : /<redacted>/anaconda3  (read only)
           channel URLs : https://conda.anaconda.org/<redacted>/linux-64
                          https://conda.anaconda.org/<redacted>/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /opt/app/anaconda3/pkgs
                          /<redacted>/.conda/pkgs
       envs directories : /<redacted>/.conda/envs
                          /<redacted>/anaconda3/envs
               platform : linux-64
             user-agent : conda/4.5.0 requests/2.18.4 CPython/3.6.1 Linux/3.10.0-514.26.2.el7.x86_64 rhel/7.3 glibc/2.17
                UID:GID : 51757:51714
             netrc file : None
           offline mode : False
@menshikh-iv
Copy link
Member

Hello @gwerbin, current issue related with missing file in tarball on PyPI, this already fixed in piskvorky/gensim#2194, but not released yet.

As workaround, you can use gensim==3.5.0 OR build tarball from current gensim develop branch & use it, instead of PyPI version (https://github.com/conda-forge/gensim-feedstock/files/2449277/gensim-3.6.0.tar.gz)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants