Comments (12)
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
.
from briefcase.
Great...that was the problem! Everything works fine now :)
Thank you very much for your help!
from briefcase.
Update
I can see it's failing because the cookiecutter does not yet have a python 3.6 branch, so perhaps that should fail more gracefully, or provide options of which branch to checkout?
from briefcase.
Yeah, I agree, I was thinking maybe we could fallback to previous versions of the support package, and show a warning a message saying that "You're using Python 3.6, which isn't fully supported -- using Python 3.5 support package for now".
from briefcase.
I love the idea of warning the user that 3.6 isn't supported! How could we do that? In setup.py
? Or do we need some kind of install or import hook?
from briefcase.
For just showing the message, one idea would be to list the branches of the remote template repo (using git ls-remote --heads GIT_REPO_URL
) here, check if the user's Python major / minor version is in the list and show an error if not.
from briefcase.
Hi, I had the same issue and so I deleted the virtual environment, installed Python 3.5 and repeated the procedure to install briefcase with python 3.5.
However, I still get the same error...any ideas?
from briefcase.
@capitanjacksparrow hm, I'd expect everything to work with Python 3.5. Can you try again, taking note of every step (from creating a virtualenv) and then post here these steps that reproduce the error? Thanks!
from briefcase.
@eliasdorneles thank you very much for you response. I've tried again and in the following I explain to you the detailed steps (sorry for the long message :) ).
I’m working on a iMac, which has jet installed Python2.7, so I’ve installed Python 3.5 and the terminal command to use it is "python3.5" since "python" is already taken by Python2.7.
For the same reason I used "pip3" in all the instructions of the tutorial.
These are the commands list I executed to set up the environment, as indicated in
https://briefcase.readthedocs.io/en/latest/intro/getting-started.html
I created a directory called BeeWareProjects at a path /myuser_path/ and inside it I executed:
$ mkdir tutorial
$ cd tutorial
$ python3.5 -m venv venv
$ . venv/bin/activate
$ pip3 install briefcase
All these commands ended without any error.
Then I followed the instructions found here (I’m still in the tutorial directory, with the venv activated):
https://briefcase.readthedocs.io/en/latest/tutorials/tutorial-0.html
$ pip install cookiecutter briefcase
$ cookiecutter https://github.com/pybee/briefcase-template
$ cd helloworld
…update the file helloworld/app.py to return Hello World
$ python setup.py ios -s
[Note: inside the venv I used “pip” and “python” because I checked they are actually Python3.5.
However, I also tried using my pip3 and pyhton3.5 shortcut, but nothing changed]
Here I got the error:
...
cookiecutter.exceptions.RepositoryNotFound: A valid repository for “/myuser_path/.cookiecutters/Python-iOS-template" could not be found in the following locations:
/myuser_path/.cookiecutters/Python-iOS-template
/myuser_path/.cookiecutters/Python-iOS-template
Any help is really appreciated
from briefcase.
Hi @capitanjacksparrow thanks for the detailed steps!
Indeed inside the virtualenv it's best to use just python
and pip
! 👍
So, I believe you've got a case of a corrupted Git repository under directory /myuser_path/.cookiecutters/Python-iOS-template
.
Can you try deleting that directory and then try again the same steps?
from briefcase.
I have a better understanding of this problem now, this is related to #76 which partially fixed the problem by doing a git checkout
for the correct branch when we reuse the cookiecutter template that was already downloaded.
I propose one additional fix checking for the cases of the branch not existing (in the case someone is using Python 3.6 and there is no branch 3.6
yet) or for the branch to be an invalid cookiecutter template (for example, someone creates a version branch from the wrong tree, say, from master), that will do the following:
- run
git fetch
first (to fetch any new branches) - if the
git checkout
fails, we warn the user about the failure, tell which branch we attempted to checkout and which branches exist, if any - after doing
git checkout
, we look for acookiecutter.json
file in the template directory. If it doesn't exist, we abort execution, telling the user that the repository isn't a valid template, and suggest deleting it
from briefcase.
I'm working on it.
from briefcase.
Related Issues (20)
- Test suite doesn't run on Windows 11 HOT 1
- Dragging app window from Stage Manager to Desktop in Dev Mode prompts warning in Terminal HOT 1
- Code signing fails when running on an iCloud mounted drive HOT 4
- Giving a formal name with a character such as ', /, \, causes briefcase new to crash HOT 2
- Cannot code sign on Big Sur MacOS HOT 7
- RPM and PKG packages need license information HOT 1
- briefcase build not working even after checking XCode and iCloud Drive HOT 2
- Android application floating windows and barrier-free controls
- Icon path specified in pyproject.toml is not recognized when building Xcode format HOT 2
- Add a --skip-signing option when building macos / ios apps HOT 4
- Local package dependency HOT 7
- Prevent cookiecutter from using `~/.cookiecutter_replay` HOT 1
- Add a progress bar for Git actions
- "briefcase clean" command to delete all build artifacts HOT 7
- cleanup_paths doesn't behave the same way when building 'macos Xcode' and 'macos app' (and maybe doesn't behave like the documentation implies) HOT 9
- Allow configuration of custom build params for macos Xcode builds in pyproject.toml HOT 17
- Add a packaging option to minify or otherwise obfuscate the python code in the distribution package HOT 1
- Add console app builds/testing to CI HOT 1
- Add ability to override resources in application HOT 1
- Minor syntax bug when using quotes in the app's name HOT 1
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 briefcase.