From: too many arguments

Login successful.

from datasets import load_dataset

from: too many arguments

This uses /usr/bin/from  
The other "from" installed (not an executable) is in   
/var/lib/dpkg/alternatives/  
Am I missing the package that the correct "from" is in?  

My system is:  
Ubuntu 24.04.2 LTS  
transformers-cli env  
- `transformers` version: 4.46.3  
- Platform: Linux-6.11.0-17-generic-x86_64-with-glibc2.10  
- Python version: 3.8.5  
- Huggingface_hub version: 0.29.1  
- Safetensors version: 0.5.2  
- Accelerate version: 1.0.1  
- Accelerate config: 	not found  
- PyTorch version (GPU?): 2.4.0+cu121 (True)  
- Tensorflow version (GPU?): not installed (NA)  
- Flax version (CPU?/GPU?/TPU?): not installed (NA)  
- Jax version: not installed  
- JaxLib version: not installed  
- Using distributed or parallel set-up in script?: <fill in>  
- Using GPU in script?: <fill in>  
- GPU type: NVIDIA GeForce GTX 1650
1 Like

Python can malfunction just from the folder name or file name. Is there a “from" folder or “from.py”?

They were just the two obtained using find

1 Like

I just ran find again and found another from in
/etc/alternatives/
but it also gave “too many arguments”

1 Like

Perhaps not Python, but Python notebook? (jupyter, pylint, etc.)

It’s not a notebook.
I tried putting datasets and .local/bin on the PATH but it still didn’t work.
I also tried
python3 -c from datasets import load_dataset
File “”, line 1
from
^
SyntaxError: invalid syntax

1 Like

Perhaps outside of .py file?

https://wiki.python.org/moin/Powerful%20Python%20One-Liners

I tried
python3 -c import load_dataset from datasets
with the same syntax error.

  • huggingface_hub version: 0.29.2
  • Platform: Linux-6.11.0-19-generic-x86_64-with-glibc2.10
  • Python version: 3.8.5
  • Running in iPython ?: No
  • Running in notebook ?: No
  • Running in Google Colab ?: No
  • Running in Google Colab Enterprise ?: No
  • Token path ?: /home/dbrown01/.cache/huggingface/token
  • Has saved token ?: True
  • Who am I ?: dbrown01
  • Configured git credential helpers: store
  • FastAI: N/A
  • Tensorflow: N/A
  • Torch: 2.4.0+cu121
  • Jinja2: 2.11.2
  • Graphviz: N/A
  • keras: N/A
  • Pydot: N/A
  • Pillow: 8.0.1
  • hf_transfer: N/A
  • gradio: 4.44.1
  • tensorboard: N/A
  • numpy: 1.19.2
  • pydantic: 2.10.6
  • aiohttp: 3.10.11
  • ENDPOINT: https://huggingface.co
  • HF_HUB_CACHE: /home/dbrown01/.cache/huggingface/hub
  • HF_ASSETS_CACHE: /home/dbrown01/.cache/huggingface/assets
  • HF_TOKEN_PATH: /home/dbrown01/.cache/huggingface/token
  • HF_STORED_TOKENS_PATH: /home/dbrown01/.cache/huggingface/stored_tokens
  • HF_HUB_OFFLINE: False
  • HF_HUB_DISABLE_TELEMETRY: False
  • HF_HUB_DISABLE_PROGRESS_BARS: None
  • HF_HUB_DISABLE_SYMLINKS_WARNING: False
  • HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
  • HF_HUB_DISABLE_IMPLICIT_TOKEN: False
  • HF_HUB_ENABLE_HF_TRANSFER: False
  • HF_HUB_ETAG_TIMEOUT: 10
  • HF_HUB_DOWNLOAD_TIMEOUT: 10
1 Like

I just don’t know enough about python I guess having completely failed to figure it out.

1 Like

I think you’re probably using Python incorrectly…

It would be quicker to read a tutorial or introduction first.