-
Notifications
You must be signed in to change notification settings - Fork 1.2k
error: Invalid distribution name or version syntax: #966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@NDHUNG |
@icywang86rui here is my code
./process/train.py
|
There is an issue that prevents You can work around this a few ways:
|
closing due to inactivity |
Hello, I am facing the exact same issue here: My source_dir is a folder that contains all my dependencies: BertSum |--src |--train.py |--stanford_tokenizer |--requirements.txt | etc... source_dir = 'BertSum' I get the final error: UnexpectedStatusException: Error for Training job sagemaker-pytorch-2020-02-04-10-39-39-174: Failed. Reason: AlgorithmError: ExecuteUserScriptError: Command "/usr/bin/python -m src/train" /usr/bin/python: No module named src/train And a few lines above as warning: Running setup.py bdist_wheel for src-train: finished with status 'error' Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-bcuvdt78/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-t9sjhhrx --python-tag cp36: WARNING: '' not a valid package name; please use only .-separated package names in setup.py running bdist_wheel Yet a few lines under I have this: Failed to build src-train Installing collected packages: regex, pytorch-pretrained-bert, protobuf, tensorboardX, dill, multiprocess, pyrouge, src-train Running setup.py install for src-train: started Running setup.py install for src-train: finished with status 'done' Successfully installed dill-0.3.1.1 multiprocess-0.70.9 protobuf-3.11.3 pyrouge-0.1.3 pytorch-pretrained-bert-0.6.2 regex-2020.1.8 src-train-1.0.0 tensorboardX-2.0 |
@ViktorMalesevic, unfortunately, right now, there is not support for an entrypoint that isn't in the top-level directory of the source. Please refer to the workarounds that @jesterhazy posted above. There is ongoing work to enable paths in the entrypoint: #941 |
Please fill out the form below.
System Information
Describe the problem
I use Pytorch to train model, after Traning image download complated. The error happend
Minimal repro / logs
2019-08-05 07:38:31 Starting - Starting the training job...
2019-08-05 07:38:32 Starting - Launching requested ML instances.........
2019-08-05 07:40:05 Starting - Preparing the instances for training...
2019-08-05 07:41:01 Downloading - Downloading input data......
2019-08-05 07:41:59 Training - Training image download completed. Training in progress..
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2019-08-05 07:42:00,068 sagemaker-containers INFO Imported framework sagemaker_pytorch_container.training
2019-08-05 07:42:00,093 sagemaker_pytorch_container.training INFO Block until all host DNS lookups succeed.
2019-08-05 07:42:00,094 sagemaker_pytorch_container.training INFO Invoking user training script.
2019-08-05 07:42:02,809 sagemaker-containers INFO Module ./process/train does not provide a setup.py.
Generating setup.py
2019-08-05 07:42:02,809 sagemaker-containers INFO Generating setup.cfg
2019-08-05 07:42:02,809 sagemaker-containers INFO Generating MANIFEST.in
2019-08-05 07:42:02,809 sagemaker-containers INFO Installing module with the following command:
/usr/bin/python -m pip install -U .
Processing /opt/ml/code
Complete output from command python setup.py egg_info:
WARNING: '' not a valid package name; please use only .-separated package names in setup.py
running egg_info
error: Invalid distribution name or version syntax: .-process-train-1.0.0
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-cdtylol6/
You are using pip version 18.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
2019-08-05 07:42:04,058 sagemaker-containers ERROR InstallModuleError:
Command "/usr/bin/python -m pip install -U ."
The text was updated successfully, but these errors were encountered: