Giter Club home page Giter Club logo

briefcase-linux-appimage-template's Introduction

logo

BeeWare

Python Versions PyPI Version Maturity BSD License Build Status Discord server

BeeWare is a collection of tools and libraries for building and distributing native applications in Python.

For an introduction to the full BeeWare suite, we recommend running the BeeWare Tutorial.

Community

You can talk to the BeeWare community through:

We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct.

Contributing

If you experience problems with BeeWare, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

Translations

Translation status

We manage translations using Weblate.

Translation status

If you'd like to contribute to the translation effort, join the #translations channel on Discord and introduce yourself!

briefcase-linux-appimage-template's People

Contributors

abn avatar astraluma avatar brutusthebee avatar csquaerd avatar drewbrew avatar freakboy3742 avatar glasnt avatar jhakonen avatar kevin-brown avatar mhsmith avatar nadi726 avatar rmartin16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

briefcase-linux-appimage-template's Issues

Include a PYTHONPATH extension allowing for user-space packages

What is the problem or limitation you are having?

The app script currently sets a PYTHONPATH that includes the app and app_packages paths, plus the stdlib.

These paths are all inside the application bundle, which the user does not have access to modify.

If a user wants to add additional files to the PYTHONPATH (e.g., if you were building a "Jupyter Notebook" app, and wanted the user to be able to access user-installed packages), you can't install that code into app or app_packages.

Describe the solution you'd like

The app script should include an XDG compliant user path as part of the standard app path. This is probably:

~/.local/share/<app name>/user_packages

Describe alternatives you've considered

Don't allow user-installed packages.

Additional context

See beeware/briefcase-linux-system-template#3 and beeware/briefcase-linux-flatpak-template#18 for analogous problems.

Brutus needs access permissions for this repo

Describe the bug

The pre-commit update job is failing since brutus doesn't have access to the repo.

Run peter-evans/[email protected]
Prepare git configuration
Determining the base and head repositories
Pull request branch target repository set to beeware/briefcase-linux-appimage-template
Configuring credential for HTTPS authentication
Checking the base repository state
Pull request branch to create or update set to 'autoupdates/pre-commit/pre-commit-hooks'
Configuring the committer and author
Create or update the pull request branch
Pushing pull request branch to 'origin/autoupdates/pre-commit/pre-commit-hooks'
  /usr/bin/git push --force-with-lease origin autoupdates/pre-commit/pre-commit-hooks:refs/heads/autoupdates/pre-commit/pre-commit-hooks
  remote: Permission to beeware/briefcase-linux-appimage-template.git denied to brutusthebee.
  fatal: unable to access 'https://github.com/beeware/briefcase-linux-appimage-template/': The requested URL returned error: 403
  Error: The process '/usr/bin/git' failed with exit code 128
Restore git configuration

Steps to reproduce

See CI.

Expected behavior

CI succeeds.

Screenshots

No response

Environment

  • Operating System:
  • Python version:
  • Software versions:
    • Briefcase:
    • Toga:
    • ...

Logs

No response

Additional context

No response

`briefcase create` fails to build the docker image

Describe the bug
briefcase create fails with the following error:

STEP 11/18: RUN python${PY_VERSION} -m pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (21.2.4)
Collecting pip
  Downloading pip-22.0.4-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    Uninstalling pip-21.2.4:
ERROR: Could not install packages due to an OSError: [Errno 39] Directory not empty: 'webencodings'

Error: error building at STEP "RUN python${PY_VERSION} -m pip install --upgrade pip": error while running runtime: exit status 1

Error building Docker container for helloworld.

Tested with python 3.9 and 3.10.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the tutorial to build an AppImage (https://docs.beeware.org/en/latest/tutorial/tutorial-3.html)
  2. python3.9 -m venv --system-site-packages beeware-venv
  3. source beeware-venv/bin/activate
  4. briefcase new
  5. briefcase create

Expected behavior
No error, the AppImage should be created (I assume ;))

Environment:

  • Operating System: Fedora Linux 35 (Thirty Five)
  • Python version: 3.9, also tested with 3.10
  • Software versions:
    • Briefcase: 0.3.6
    • cookiecutter: 1.7.3

Additional context
Complete log.txt

pip cache permissions warning when creating AppImage

When building a Linux AppImage, the Docker container produces the following warning:

WARNING: The directory '/home/brutus/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.

This is only a warning - it doesn't stop the build process. However, it is alarming, and printed in bright yellow, so it stands out.

To Reproduce
Steps to reproduce the behavior:

  1. Generate a helloworld app with Briefcase
  2. Run briefcase build linux
  3. See error described above4.

Expected behavior

There shouldn't be any avoidable warnings when building the AppImage.

Additional context

This is likely due to not setting the ownership flags on the brutus user home directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.