Error when running setup.py for various platforms
See original GitHub issueThanks so much to the developers of this project, I am absolutely loving working with this, just had a little hiccup. 😳
Using macOS Sierra, when I run python3 setup.py ios -s
, or a setup for any other platform, I get the error as follows:
(venv) MacBookPro:beeccc liam$ python3 setup.py ios -s
running ios
* Writing application template...
Project template: https://github.com/pybee/Python-iOS-template.git
Traceback (most recent call last):
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/cookiecutter/vcs.py", line 129, in clone
stderr=subprocess.STDOUT,
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'checkout', '3.6']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 79, in <module>
'toga-django',
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/briefcase/app.py", line 336, in run
self.generate_app_template()
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/briefcase/app.py", line 195, in generate_app_template
'secret_key': self.secret_key,
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/cookiecutter/main.py", line 63, in cookiecutter
no_input=no_input,
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/cookiecutter/repository.py", line 84, in determine_repo_dir
no_input=no_input,
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/cookiecutter/vcs.py", line 132, in clone
if 'not found' in clone_error.output.lower():
TypeError: a bytes-like object is required, not 'str'
I suspect this is because git is failing to clone the cookiecutter for the selected platform. If this is the case, should it perhaps fail more gracefully?
When I try again running the setup.py for ios again I get this:
(venv) MacBookPro:beeccc liam$ python3 setup.py ios -s
running ios
* Writing application template...
Template Python-iOS-template succesfully updated.
Project template: /Users/liam/.cookiecutters/Python-iOS-template
Traceback (most recent call last):
File "setup.py", line 79, in <module>
'toga-django',
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/briefcase/app.py", line 336, in run
self.generate_app_template()
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/briefcase/app.py", line 195, in generate_app_template
'secret_key': self.secret_key,
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/cookiecutter/main.py", line 63, in cookiecutter
no_input=no_input,
File "/Users/liam/apps/beeccc/venv/lib/python3.6/site-packages/cookiecutter/repository.py", line 101, in determine_repo_dir
'\n'.join(repository_candidates)
cookiecutter.exceptions.RepositoryNotFound: A valid repository for "/Users/liam/.cookiecutters/Python-iOS-template" could not be found in the following locations:
Should a check be conducted to ensure the cookiecutter template for the selected platform is correct and/or up to date?
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
ERROR: Can not execute `setup.py` since setuptools is not ...
I am new to python and I am trying to install the email package, but it says "setuptools is not available in the...
Read more >Python's setup.py: how to install different files ... - Stack Overflow
I need my package's setup.py to install different binary data files based on the platform. The problem is that I need the data...
Read more >A Practical Guide to Using Setup.py - GoDataDriven
The case for a setup.py platforms, and the path you need to set depends on the location of your code. it work the...
Read more >ERROR: Failed building wheel for PureCloudPlatformClientV2 ...
We tried installing PureCloudPlatformClientV2 using python version 3.10.0 as well as some other 3.10 version and they were all successfully.
Read more >How to Fix Python `No such file or directory` Compiler Errors ...
This tutorial will provide an example of this error, and the steps to fix it on multiple platforms. Missing Compiler Errors. Python packages...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I experienced this same issue. Creating a
python3.5
virtual environment fixed the issue.It would be wonderful to be able to use this on
python3.6
.Great…that was the problem! Everything works fine now 😃
Thank you very much for your help!