Comments (8)
And I tried removing them and rebuilding the whl package now. It may takes a bit of time.
It works, thank you very much!
from pytorch.
Tentatively assigning to @c-p-i-o , who added the dependency in #122999
@ezyang just curios, is it used for anything yet? If not, then perhaps revert?
P.S. I wonder how it works with the nightly builds though?
from pytorch.
I found this issue when building directly whl on my ubuntu machine (without using docker), or maybe I need to use docker (follow the ci script) to build it?
And if I set "Unknown license" as return value rather than value error, it works.
if 'ApacheLicense' in txt:
# Hmm, do we need to check the text?
return 'Apache-2.0'
.
.
.
elif all([squeeze(m) in txt.lower() for m in bsd3_src_txt]):
return 'BSD-Source-Code'
elif any([squeeze(m) in txt.lower() for m in mit_txt]):
return 'MIT'
else:
# A license may not be on this list, but is still a valid license.
raise ValueError('unknown license')
from pytorch.
We did attempt to fix this in build_bundled.py
script (https://github.com/pytorch/pytorch/blob/main/third_party/build_bundled.py#L117)
Is this fix not working?
from pytorch.
Tentatively assigning to @c-p-i-o , who added the dependency in #122999
@ezyang just curios, is it used for anything yet? If not, then perhaps revert?
We are waiting for some higher level abstractions for metrics to land. Once landed, for the OSS community, we plan on implementing those higher level abstractions via OTEL.
P.S. I wonder how it works with the nightly builds though?
Works on nightly because of (https://github.com/pytorch/pytorch/blob/main/third_party/build_bundled.py#L117)
from pytorch.
@xiaoran007 FWIW, the issue didn't repro for me on main
.
python setup.py bdist_wheel
...
adding license file 'LICENSE'
adding license file 'NOTICE'
...
adding 'torch-2.4.0a0+gitc5d83bc.dist-info/LICENSE'
adding 'torch-2.4.0a0+gitc5d83bc.dist-info/METADATA'
adding 'torch-2.4.0a0+gitc5d83bc.dist-info/NOTICE'
adding 'torch-2.4.0a0+gitc5d83bc.dist-info/WHEEL'
adding 'torch-2.4.0a0+gitc5d83bc.dist-info/entry_points.txt'
I think what's happening here is that
-
you might have checked out
main
. This fetchesthird-party/opentelemetry-cpp
. -
Now, when you switch over to tag
v2.1.0
, you end up pulling an oldbuild_bundled.py
from the tag but you still havethird-party/opentelemetry-cpp
in your directory left there. -
The old
build_bundled.py
script tries to iterate over the newthird-party/opentelemetry-cpp
library looking for LICENSE files and fails as it doesn't understand the weirdsigslot
file.
To confirm this, you'd need to do git status
after you checkout v2.1.0
tag and you should see third-party/opentelemetry-cpp
as a untracked files
Can you confirm this is what might be happening?
from pytorch.
Yes, when I checkout to tag v2.1.0, the files are untracked:
HEAD detached at v2.1.0
Untracked files:
(use "git add <file>..." to include in what will be committed)
third_party/cpp-httplib/
third_party/opentelemetry-cpp/
And I tried removing them and rebuilding the whl package now. It may takes a bit of time.
from pytorch.
Thanks @xiaoran007!
I'm closing this issue for now - but re-open it if you run into any further issues.
from pytorch.
Related Issues (20)
- randn generates different output for 4x4 tensor size sliced to match shape of direct 2x4 or 4x2 and compare output HOT 1
- [feature request]: Update max onnx opset to 21 for onnxruntime==1.18 compatability HOT 3
- ROCm 6.x appears Cannot find CO in the bundle libhipblaslt.so for ISA HOT 20
- dynamo breaks when getting attributes of builtins
- [inline-inbuilt-nn-modules] tensordict functional calls with nn.Module silently gives the wrong (non-functional) result HOT 1
- dynamo doesn't support `__torch_function__` on non-tensor classes HOT 4
- RuntimeError: "_amp_foreach_non_finite_check_and_unscale_cuda" not implemented for 'BFloat16' HOT 3
- When training done, the mode output same result each tensor input. ( I tried many way to debug, but can't find any way to fix it, so i guess this is a bug ) HOT 3
- RuntimeError: MPS device does not support bmm for non-float inputs HOT 1
- [Distributed] gloo backend, barrier operation is even slower than broadcast HOT 1
- [ONNX] metadata
- ERROR: Could not find a version that satisfies the requirement torch (from versions: none) HOT 1
- fatal: not a git repository: '.git' HOT 1
- `store_param_remainders` from Apex DistributedFusedAdam
- Unify async_save and sync_save in state_dict_saver from distributed checkpointing HOT 2
- Segmentation fault when importing `sklearn.model_selection` HOT 2
- Should `torch.Size` convert np.ndarrays to lists of ints? HOT 3
- torch.topk results differ on CPU and CUDA
- Tensors of the same index must be on the same device and the same dtype except step tensors that can be CPU and float32 notwithstanding. HOT 13
- A UserWarning occurs after CBAM attention is added HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch.