Getting weird error when running executable

21 views
Skip to first unread message

Francisco Perez

unread,
Sep 30, 2015, 11:39:56 AM9/30/15
to python-twitter
Hi. I'm getting a "file or directory" not found error when I run my executable. When running the script using the command line, it runs perfectly fine. The specific line that it's complaining about is this one: 
statuses = api.GetUserTimeline(screen_name=user)
which is a line from the Github homepage. Not exactly sure what the problem is since obviously, I'm not looking for a file or directory based on the Twitter handle. Thanks.

bear

unread,
Sep 30, 2015, 11:41:55 AM9/30/15
to python-...@googlegroups.com
I would need to see the error message to begin to help with this.

When you say "executable" does that mean you are compiling or
"freezing" a python program to run as a binary?
> --
> You received this message because you are subscribed to the Google Groups
> "python-twitter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python-twitte...@googlegroups.com.
> To post to this group, send email to python-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/python-twitter.
> For more options, visit https://groups.google.com/d/optout.



--
Bear

be...@andyet.com (email)
bea...@gmail.com (email)
be...@bear.im (xmpp, email)
http://bear.im

PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29

Francisco Perez

unread,
Sep 30, 2015, 1:26:34 PM9/30/15
to python-twitter
I'm using py2exe to build a .exe file from the script I wrote.
python-twitter-error.png

Francisco Perez

unread,
Sep 30, 2015, 1:28:48 PM9/30/15
to python-twitter
I was also told in a different forum that a possibility could be py2exe messing up the pathing when building. Haven't gotten a chance to test that tho.


On Wednesday, September 30, 2015 at 8:41:55 AM UTC-7, bear wrote:
Reply all
Reply to author
Forward
0 new messages