Skip to content

tried installing: torch.utis.ffi is depreciated #4

@gereka

Description

@gereka
$ pip install --user torchwordemb
Collecting torchwordemb
  Using cached https://files.pythonhosted.org/packages/ab/26/a811077fa6971b2d010cb7c10bbed18cb5182219706b71d7d151f9e6a838/torchwordemb-0.0.8.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-avn748hy/torchwordemb/setup.py", line 17, in <module>
        import build
      File "/tmp/pip-install-avn748hy/torchwordemb/build.py", line 2, in <module>
        from torch.utils.ffi import create_extension
      File "/opt/python/lib/python3.6/site-packages/torch/utils/ffi/__init__.py", line 1, in <module>
        raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
    ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-avn748hy/torchwordemb/

I have PyTorch 1.0. When I install PyTorch 0.4.0 on a virtual environment and then install torchwordemb on top of that, I don't get this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions