JackMcKew / pyinstaller-action-windows

Github Action for building executables with Pyinstaller
MIT License
173 stars 71 forks source link

OSError: [WinError 123] Invalid name: '/tmp\\*' #28

Closed kleag closed 2 years ago

kleag commented 2 years ago

Hi,

As in #3 , I get the error from the title. The proposed solution does not work: I have a spec file.

Here is the repo: https://github.com/kleag/annotate_translation The failed action: https://github.com/kleag/annotate_translation/actions/runs/3195325548/jobs/5215851413

And my action file: https://github.com/kleag/annotate_translation/blob/main/.github/workflows/pyinstaller-windows.yml

name: Package Application with Pyinstaller

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Package Application
      uses: JackMcKew/pyinstaller-action-windows@main
      with:
        path: src

    - uses: actions/upload-artifact@v2
      with:
        name: annotation-exe
        path: src/dist/windows
JackMcKew commented 2 years ago

G'day mate 👋

Can you try putting your spec file inside your src directory, it's potentially looking inside there :)

kleag commented 2 years ago

Hi. Thanks a lot. It worked. I then encountered the problem of issue #18 and solved it by removing the "hooksconfig={}," line from the .spec file. After changing also the path to the python file in the spec file (specifying src/ is no more necessary as the spec file is in the same dir), the action successfully produced the correct artifact. Thanks again.