Giter Site home page Giter Site logo

Comments (5)

btgraham avatar btgraham commented on July 26, 2024

Sorry you are having problems.
What version of Ubuntu are you using?
One possible solution may be to install PyTorch inside a conda environment (download from https://conda.io/miniconda.html) and then run 'python setup.py develop' in the conda environment.
Ben

from sparseconvnet.

mmderakhshani avatar mmderakhshani commented on July 26, 2024

Thanks for your response Mr. @btgraham. The Ubutntu version of mine is 16.04. My installation procedure is as same as your suggestion. I have installed the Anaconda and then create a virtual environment called sparse in that and activate it using source activate sparse. Then I have run following commands

sudo apt-get install libsparsehash-dev
git clone [email protected]:facebookresearch/SparseConvNet.git
cd SparseConvNet/PyTorch/
python setup.py develop

I think the installation did not have any problems and also no warnings and errors. But when I want to import sparseconvnet for example in an ipython, it generates the aforementioned error.

Here is the stack trace:

ImportError Traceback (most recent call last)
in ()
----> 1 import sparseconvnet

/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/init.py in ()
7 forward_pass_multiplyAdd_count = 0
8 forward_pass_hidden_states = 0
----> 9 from .activations import Tanh, Sigmoid, ReLU, ELU
10 from .averagePooling import AveragePooling
11 from .batchNormalization import BatchNormalization, BatchNormReLU, BatchNormLeakyReLU

/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/activations.py in ()
9 from torch.autograd import Function, Variable
10 from torch.nn import Module, Parameter
---> 11 from .utils import *
12 from .sparseConvNetTensor import SparseConvNetTensor
13 from .batchNormalization import BatchNormalization

/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/utils.py in ()
6
7 import torch
----> 8 import sparseconvnet.SCN as scn
9 from cffi import FFI
10

/home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/SCN/init.py in ()
1
2 from torch.utils.ffi import _wrap_function
----> 3 from ._SCN import lib as _lib, ffi as _ffi
4
5 all = []

ImportError: /home/mohammad/SparseConvNet-master/PyTorch/sparseconvnet/SCN/_SCN.so: undefined symbol: _ZNSt12length_errorC1EPKc

from sparseconvnet.

btgraham avatar btgraham commented on July 26, 2024

Hmm. Can you please try taking the attached file, and moving it to PyTorch/setup.py (so remove the .txt from the filename) and rerunning 'python setup.py develop' command.

setup.py.txt

from sparseconvnet.

mmderakhshani avatar mmderakhshani commented on July 26, 2024

@btgraham, Same error as above.

from sparseconvnet.

lawrencekiba avatar lawrencekiba commented on July 26, 2024

_ZN3c105ErrorC1ENS_14SourceLocationERKSs

Resolved by reinstalling PyTorch

from sparseconvnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.