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

Unable to install dynet version 1.1 #10

Open
vishaldotkhanna opened this issue Mar 15, 2021 · 0 comments
Open

Unable to install dynet version 1.1 #10

vishaldotkhanna opened this issue Mar 15, 2021 · 0 comments

Comments

@vishaldotkhanna
Copy link

vishaldotkhanna commented Mar 15, 2021

The code for this repository uses an older version of dynet(1.1) and gives error on running with the latest version.

However, installing the older version of dynet seems tricky because:

  1. The installer tries to clone the repository for the library 'Eigen' but gets a 404 not found error.
  2. I tried to manually update the command to the current URL for Eigen but it further gives the following error:
Running setup.py clean for dyNET
Failed to build dyNET
Installing collected packages: dyNET
    Running setup.py install for dyNET ... error
    ERROR: Command errored out with exit status 1:
     command: /home/webis/anaconda3/envs/vishal_arg_3_6/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-yupx_wwp/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-yupx_wwp/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mt6j83jp/install-record.txt --single-version-externally-managed --compile --install-headers /home/webis/anaconda3/envs/vishal_arg_3_6/include/python3.6m/dyNET
         cwd: /tmp/pip-req-build-yupx_wwp/
    Complete output (93 lines):
    running install
    running build
    INFO:root:==============================
    INFO:root:CMake path: /usr/bin/cmake
    INFO:root:Make path: /usr/bin/make
    INFO:root:Make flags: -j 16
    INFO:root:Mercurial path: /home/webis/anaconda3/envs/vishal_arg_3_6/bin/hg
    INFO:root:C compiler path: /usr/bin/gcc
    INFO:root:CXX compiler path: /usr/bin/g++
    INFO:root:---
    INFO:root:Script directory: /tmp/pip-req-build-yupx_wwp
    INFO:root:Build directory: /tmp/pip-req-build-yupx_wwp/build/py3.6-64bit
    INFO:root:Library installation directory: /home/webis/anaconda3/envs/vishal_arg_3_6/lib/python3.6/site-packages/../../..
    INFO:root:Python executable: /home/webis/anaconda3/envs/vishal_arg_3_6/bin/python
    INFO:root:==============================
    cmake version 2.8.12.2
    g++ (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
    Copyright (C) 2013 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    INFO:root:Creating build directory /tmp/pip-req-build-yupx_wwp/build/py3.6-64bit
    INFO:root:Cloning Eigen (gitlab)...
    Cloning into 'eigen'...
    INFO:root:Configuring...
    -- The C compiler identification is GNU 4.8.4
    -- The CXX compiler identification is GNU 4.8.4
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/g++
    -- Check for working CXX compiler: /usr/bin/g++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
      Unable to find the requested Boost libraries.
    
      Boost version: 1.54.0
    
      Boost include path: /usr/include
    
      Could not find the following Boost libraries:
    
              boost_regex
              boost_serialization
    
      Some (but not all) of the required Boost libraries were found.  You may
      need to install these additional Boost libraries.  Alternatively, set
      BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
      to the location of Boost.
    Call Stack (most recent call first):
      CMakeLists.txt:111 (find_package)
    
    
    -- Boost dir is /usr/include
    -- BACKEND not specified, defaulting to eigen.
    -- Eigen dir is /tmp/pip-req-build-yupx_wwp/build/py3.6-64bit/eigen
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message):
      Unable to find the requested Boost libraries.
    
      Boost version: 1.54.0
    
      Boost include path: /usr/include
    
      Could not find the following Boost libraries:
    
              boost_unit_test_framework
              boost_serialization
    
      Some (but not all) of the required Boost libraries were found.  You may
      need to install these additional Boost libraries.  Alternatively, set
      BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
      to the location of Boost.
    Call Stack (most recent call first):
      tests/CMakeLists.txt:4 (find_package)
    
    
    -- Found Cython version 0.29.22
    
    -- Configuring incomplete, errors occurred!
    See also "/tmp/pip-req-build-yupx_wwp/build/py3.6-64bit/CMakeFiles/CMakeOutput.log".
    See also "/tmp/pip-req-build-yupx_wwp/build/py3.6-64bit/CMakeFiles/CMakeError.log".
    error: /usr/bin/cmake /tmp/pip-req-build-yupx_wwp -DCMAKE_INSTALL_PREFIX=/home/webis/anaconda3/envs/vishal_arg_3_6/lib/python3.6/site-packages/../../.. -DEIGEN3_INCLUDE_DIR=/tmp/pip-req-build-yupx_wwp/build/py3.6-64bit/eigen -DPYTHON=/home/webis/anaconda3/envs/vishal_arg_3_6/bin/python
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/webis/anaconda3/envs/vishal_arg_3_6/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-yupx_wwp/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-yupx_wwp/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mt6j83jp/install-record.txt --single-version-externally-managed --compile --install-headers /home/webis/anaconda3/envs/vishal_arg_3_6/include/python3.6m/dyNET Check the logs for full command output.

Is there a way to work around this issue? If you could share the zip file containing the Eigen repository(for the revision required by dynet 1.1), that would be really helpful.

Thanks in advance.

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

1 participant