nagyistoce / phoshare

Automatically exported from code.google.com/p/phoshare
Other
0 stars 0 forks source link

Error: 'NoneType' object has no attribute 'rfind' #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

When I try run this phoshare I am getting this error.

Any ideas?

Thanks
Conor

Original issue reported on code.google.com by cono...@gmail.com on 30 Jul 2010 at 8:18

GoogleCodeExporter commented 9 years ago
I've come across this once before, and if my memory is correct, this happens 
with non-Apple supplied Python packages (they are missing some modules). You 
mentioned you tried with Python 2.7 and Python 3.1. Try using the Python 
interpreter that comes pre-installed with Mac OS X (most likely that will be 
Python 2.5).

Original comment by tsporkert on 1 Aug 2010 at 7:46

GoogleCodeExporter commented 9 years ago
Could you run this from a Terminal window? Navigate to the folder where 
Phoshare.app is installed, then:
    $ cd Phoshare.app/Contents/Resources
    $ ./phoshare.py
This should print out a stack trace of the error.

Original comment by tilma...@google.com on 2 Aug 2010 at 3:25

GoogleCodeExporter commented 9 years ago
Phoshare 1.0.6 adds a new error reporting screen. If you still get this error, 
please post the error report output here.

Original comment by tsporkert on 31 Aug 2010 at 7:11

GoogleCodeExporter commented 9 years ago
Phoshare 1.2 and newer now bundles the full Python runtime in the package, and 
no longer depends on the version already installed on your system. That should 
fix this.

Original comment by tsporkert on 14 Oct 2010 at 5:00

GoogleCodeExporter commented 9 years ago
I still get this errors with the versions 1.1 - 1.3. On OS X 10.6.4 "Version 
8.1.2 library with 11819 images"

When I run it in the terminal I get this:

Traceback (most recent call last):
  File "Phoshare.py", line 30, in <module>
    from Carbon.File import ResolveAliasFile
ImportError: cannot import name ResolveAliasFile

Original comment by ragnar.e...@gmail.com on 10 Nov 2010 at 9:50

GoogleCodeExporter commented 9 years ago
It turned out to be the library itself that caused the error message. I got 
another library on the same computer that works like a charm. Strange though..

Original comment by ragnar.e...@gmail.com on 14 Nov 2010 at 11:13

GoogleCodeExporter commented 9 years ago
Regarding the "NoneType" error. If you upgrade to Phoshare 1.3.2 (at 
http://code.google.com/p/phoshare/downloads/detail?name=Phoshare-1.3.2.zip ), 
it will now print a strack trace in such situations. That will be very helpful 
in debugging this problem.

Regarding running from Terminal: I only suggested that to get a stack trace. 
Phoshare 1.3.2 now prints a stack trace in the app itself, so you shouldn't 
have to worry about running it from Terminal. If you do want to run it that 
way: I have recently updated the documentation at 
https://sites.google.com/site/phosharedoc/Home/scripting-phoshare to show how 
to run Phoshare from the command line so that it uses the Python interpreter 
that comes bundled with Phoshare. That should avoid the problem with the 
missing ResolveAliasFile code.

Original comment by tsporkert on 14 Nov 2010 at 5:46