You are not logged in.

#1 2015-07-05 16:43:17

Tomi98
Member
Registered: 2015-06-30
Posts: 45

[SOLVED]Error while installing Pyinstaller

Dear All

I am trying to install pyinstaller-python3 for python3.4.3 on my arch.


1) When using

pip install pyinstaller 

This is the error:

Collecting pyinstaller
  Using cached PyInstaller-2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-tzd0n3yq/pyinstaller/setup.py", line 18, in <module>
        from PyInstaller import get_version
      File "/tmp/pip-build-tzd0n3yq/pyinstaller/PyInstaller/__init__.py", line 32, in <module>
        from PyInstaller import compat
      File "/tmp/pip-build-tzd0n3yq/pyinstaller/PyInstaller/compat.py", line 129
        if sys.maxint > 2L ** 32:
                         ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tzd0n3yq/pyinstaller

2) When I use

sudo packer pyinstaller

it says that I must to edit its PKGBUILD. But how I can do this?

Thanks.

Last edited by Tomi98 (2015-07-05 17:22:30)

Offline

#2 2015-07-05 16:52:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED]Error while installing Pyinstaller

ewaller@turing ~ 1009 %packer pyinstaller
  
0 aur/pyinstaller 2.1-1 (17)
    An application to convert python scripts into stand-alone binaries
1 aur/pyinstaller-git 20130902-1 (2)
    An application to convert python scripts into stand-alone binaries,
    git-version

Type numbers to install. Separate each number with a space.
Numbers: 0

Aur Targets    (1): pyinstaller

Proceed with installation? [Y/n] 

Edit pyinstaller PKGBUILD with $EDITOR? [Y/n] n
==> Making package: pyinstaller 2.1-1 (Sun Jul  5 09:50:57 PDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading PyInstaller-2.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4698k  100 4698k    0     0  2716k      0  0:00:01  0:00:01 --:--:-- 2717k
==> Validating source files with md5sums...
    PyInstaller-2.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting PyInstaller-2.1.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Removing unneeded stuff ...
==> Fixing python interpreter ...
==> Copying files ...
==> Creating symlinks ...
==> Tidying install...
  -> Purging unwanted files...
  -> Removing libtool files...
  -> Removing static library files...
  -> Removing empty directories...
  -> Compressing man and info pages...
==> Creating package "pyinstaller"...
  -> Generating .PKGINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: pyinstaller 2.1-1 (Sun Jul  5 09:51:01 PDT 2015)
[sudo] password for ewaller: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) pyinstaller-2.1-1

Total Installed Size:  8.91 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) installing pyinstaller                       [######################] 100%
ewaller@turing ~ 1010 %

Seems okay here.  (I needed to install it anyway smile )  What was the specific error message?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-07-05 16:57:07

scryan
Member
Registered: 2014-07-01
Posts: 50

Re: [SOLVED]Error while installing Pyinstaller

Tomi98 wrote:

it says that I must to edit its PKGBUILD. But how I can do this?

Thanks.

Errrr... its a text file. Edit it with a text editor?

Offline

#4 2015-07-05 17:07:46

Tomi98
Member
Registered: 2015-06-30
Posts: 45

Re: [SOLVED]Error while installing Pyinstaller

This is the message:

Edit pyinstaller PKGBUILD with $EDITOR? [Y/n]

If I anwer with "n", then this is its answer:

makepkg: invalid option '--asroot'
The build failed.

If I answer with "Y", its PKGBUILD file opens as follow:



 Maintainer: Pedram Navid <pedram.navid at gmail dot com>
pkgname=pyinstaller-git
pkgver=20130902
pkgrel=1
pkgdesc="An application to convert python scripts into stand-alone binaries, git-versio
n"
arch=('i686', 'x86_64')
url="https://github.com/pyinstaller/pyinstaller"
license=('GPL')
depends=('python')
makedepends=('git')
optdepends=('upx: UPX compression support')
provides=('pyinstaller')
conflicts=('pyinstaller')
md5sums=() #generate with 'makepkg -g'


_gitroot=https://github.com/pyinstaller/pyinstaller
_gitname=pyinstaller

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot" "$_gitname"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."
"PKGBUILD" 48 lines, 1095 characters 

What must be my eddition for this file?

Offline

#5 2015-07-05 17:19:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED]Error while installing Pyinstaller

I had to change:

arch=('i686', 'x86_64')

to

arch=('i686'  'x86_64')

But I did not have the same error message as to you.  I received

ewaller@turing ~/devel/build/pyinstaller-git 1039 %makepkg
==> ERROR: arch contains invalid characters: ','
ewaller@turing ~/devel/build/pyinstaller-git [1]1040 %

Your error is occurring because you are running packer as root.  Don't do that.  It will ask you for your sudo password when it needs it.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2015-07-05 17:22:04

Tomi98
Member
Registered: 2015-06-30
Posts: 45

Re: [SOLVED]Error while installing Pyinstaller

ewaller wrote:

Your error is occurring because you are running packer as root.  Don't do that.  It will ask you for your sudo password when it needs it.

It works. Great thanks. It is installed now.

Offline

#7 2015-07-05 17:23:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED]Error while installing Pyinstaller

Glad it works.  Remember to edit your first post and add [SOLVED] to the thread title.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB