Skip to content

TypeError: startswith first arg must be a str or tuple of str, not PurePosixPath #6018

Description

@sha-trix

Description of the issue

Context information (for bug reports)

  • Output of pyinstaller --version: 4.4

  • Version of Python: 3.6.7

  • Platform: Ubuntu

  • How you installed Python: container

  • Did you also try this on another platform? Does it work there?
    No

  • try the latest development version, using the following command:

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

Make sure everything is packaged correctly

  • start with clean installation
  • use the latest development version
  • Run your frozen program from a command window (shell) — instead of double-clicking on it
  • Package your program in --onedir mode
  • Package without UPX, say: use the option --noupx or set upx=False in your .spec-file
  • Repackage you application in verbose/debug mode. For this, pass the option --debug to pyi-makespec or pyinstaller or use EXE(..., debug=1, ...) in your .spec file.

A minimal example program which shows the error

```docker
pyinstaller  --hidden-import saml2.attributemaps.adfs_v1x --hidden-import saml2.attributemaps.adfs_v20 --hidden-import saml2.attributemaps.basic --hidden-import saml2.attributemaps.saml_uri --hidden-import saml2.attributemaps.shibboleth_uri -y -D  Test.py

Stacktrace / full error message

image

(paste text here)

Please also see https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs
for more about what would use to solve the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions