question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`_torchtext` was not found in nightly release for windows 3.7

See original GitHub issue

🐛 Bug

Describe the bug

See the CI on TorchData https://github.com/pytorch/data/runs/6011121045?check_suite_focus=true

We installed TorchText with version torchtext-0.13.0.dev20220413 for Python 3.7 on Windows. The test failure is: ModuleNotFoundError: No module named 'torchtext._torchtext'

To Reproduce Steps to reproduce the behavior:

Add a test for nightly release?

Expected behavior

No Error as the other platforms

Environment

CI certifi-2021.10.8 charset-normalizer-2.0.12 colorama-0.4.4 idna-3.3 numpy-1.21.6 requests-2.27.1 torch-1.12.0.dev20220413+cpu torchtext-0.13.0.dev20220413 tqdm-4.64.0 typing-extensions-4.1.1 urllib3-1.26.9

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mthrokcommented, May 26, 2022

@Nayef211 I think this can be closed now.

0reactions
mthrokcommented, Apr 13, 2022

Note: I am working on the branch from @Nayef211 's cmake build. I am observing the similar phenomenon but the CI job is failing properly.

https://app.circleci.com/pipelines/github/pytorch/text/5250/workflows/b27e96e4-f791-4d84-9e37-55ec181ed2af/jobs/176668

error: can't copy 'build\lib.win-amd64-3.7\pyd': doesn't exist or not a regular file

[106/107] cmd.exe /C "cd /D C:\Users\circleci\project\build\temp.win-amd64-3.7\Release && C:\Users\circleci\project\env\Lib\site-packages\cmake\data\bin\cmake.exe -P cmake_install.cmake"
-- Install configuration: "Release"
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/re2/filtered_re2.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/re2/re2.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/re2/set.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/re2/stringpiece.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/re2.lib
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/cmake/re2/re2Config.cmake
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/cmake/re2/re2Config-release.cmake
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/double-conversion.lib
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/bignum.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/cached-powers.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/diy-fp.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/double-conversion.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/double-to-string.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/fast-dtoa.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/fixed-dtoa.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/ieee.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/string-to-double.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/strtod.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/double-conversion/utils.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/cmake/double-conversion/double-conversionConfig.cmake
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/cmake/double-conversion/double-conversionConfigVersion.cmake
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/cmake/double-conversion/double-conversionTargets.cmake
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/cmake/double-conversion/double-conversionTargets-release.cmake
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/sentencepiece.lib
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/lib/sentencepiece_train.lib
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/bin/spm_encode.exe
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/bin/spm_decode.exe
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/bin/spm_normalize.exe
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/bin/spm_train.exe
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/bin/spm_export_vocab.exe
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/sentencepiece_trainer.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/include/sentencepiece_processor.h
-- Installing: C:/Users/circleci/project/build/lib.win-amd64-3.7/torchtext/./_torchtext.pyd
C:\Users\circleci\project\env\lib\site-packages\setuptools\dist.py:534: UserWarning: The version specified ('') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  "details." % version
C:\Users\circleci\project\env\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
C:\Users\circleci\project\env\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
error: can't copy 'build\lib.win-amd64-3.7\pyd': doesn't exist or not a regular file
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Users\circleci\project\env\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
    return stream.closed
ValueError: underlying buffer has been detached
Read more comments on GitHub >

github_iconTop Results From Across the Web

torchtext - PyPI
A simple way is to build PyTorch from source and use the same environment to build torchtext. If you are using the nightly...
Read more >
Could not find a version that satisfies the requirement torch ...
I am having this issue when I did a brand new install of either python 3.8.6 or 3.9. It is an windows 10...
Read more >
Could not find a version that satisfies the requirement torch ...
Here's what I've done : Install Python 3.7.9 and not newer. BUT make sure to install 64bits python. Every other combination failed for...
Read more >
torchtext 0.13.0 field | The AI Search Engine You Control
_torchtext was not found in nightly release for windows 3.7 #1680. Github.com > pytorch > text. Bug Describe the bug See the CI...
Read more >
Data loaders and abstractions for text and NLP - Debricked
Note: The legacy code discussed in torchtext v0.7.0 release note has been retired to torchtext.legacy folder. Those legacy code will not be maintained...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found