Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to run harvest.py #19

Open
lkjonessoc opened this issue Jul 17, 2017 · 10 comments
Open

Error when trying to run harvest.py #19

lkjonessoc opened this issue Jul 17, 2017 · 10 comments

Comments

@lkjonessoc
Copy link

I receive the following error message on my fierst attempt to run harvest.py. I have tried several different solutions to ensure that twarc-archive.py is in my PATH, but continue to receive this error message.

vagelos-ve536-0866:twarc-report-master Research$ ./harvest.py projects/projectA
/Users/Research/anaconda/bin/twarc-archive.py
/Library/Frameworks/Python.framework/Versions/2.7/bin/twarc-archive.py
/Library/Frameworks/Python.framework/Versions/3.4/bin/twarc-archive.py
/opt/local/bin/twarc-archive.py
/opt/local/sbin/twarc-archive.py
/usr/local/bin/twarc-archive.py
Cannot run twarc-archive.py

@edsu
Copy link

edsu commented Jul 17, 2017

I haven't looked to see how harvest.py figures out how to run twarc-archive.py, but I wonder if this is due to a change in the twarc installer that no longer installs twarc-archive.py? Can you try to run twarc-archive.py on the command line and confirm that it's not found?

@lkjonessoc
Copy link
Author

lkjonessoc commented Jul 17, 2017 via email

@edsu
Copy link

edsu commented Jul 17, 2017

Interesting! If you are on Unix or OS X what do you see if you type which twarc-archive.py ?

@lkjonessoc
Copy link
Author

lkjonessoc commented Jul 17, 2017 via email

@lkjonessoc
Copy link
Author

lkjonessoc commented Jul 17, 2017 via email

@edsu
Copy link

edsu commented Jul 17, 2017

Yeah, it should have found it there since I can see from your copy/paste above that it is looking in /usr/local/bin/. So I guess there's a problem with the way it is being run.

@pbinkley
Copy link
Owner

I started refactoring twarc-report to work with modern twarc under #14 ; I'll try to finish that off this week.

@antongiac
Copy link

I think I have the same problem
C:\Program Files\WIDCOMM\Bluetooth Software\syswow64\twarc-archive.py
C:\Program Files (x86)\Skype\Phone\twarc-archive.py
C:\Program Files (x86)\QuickTime\QTSystem\twarc-archive.py
C:\Users\Giacomo\AppData\Local\Microsoft\WindowsApps\twarc-archive.py
C:\adb\twarc-archive.py
C:\WINDOWS\system32\twarc-archive.py
C:\WINDOWS\twarc-archive.py
C:\WINDOWS\System32\Wbem\twarc-archive.py
C:\WINDOWS\System32\WindowsPowerShell\v1.0\twarc-archive.py
C:\Social Data Mining\bin\twarc-archive.py
C:\Program Files\Git\cmd\twarc-archive.py
C:\Users\Giacomo\AppData\Local\Microsoft\WindowsApps\C:\Python27\twarc-archive.py
twarc-archive.py
C:\Python27\twarc-archive.py
Cannot run twarc-archive.py

For me as well when I run twarc-archive.py, the error is "too few arguments"

@lxcode
Copy link

lxcode commented May 26, 2020

Assuming the issue isn't actually the path settings, this breaks because execfile isn't present in python3. It should be:

exec(open(candidate).read())

@cxyccc
Copy link

cxyccc commented Nov 2, 2020

I have the same problem when I try to run harvest.py: Cannot run twarc-archive.py

F:\twarc\twarc-report-master>python ./harvest.py projects/test
C:\Program Files\MySQL\MySQL Server 8.0\bin\twarc-archive.py
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\twarc-archive.py
C:\Program Files (x86)\Intel\iCLS Client\twarc-archive.py
C:\Program Files\Intel\iCLS Client\twarc-archive.py
C:\windows\system32\twarc-archive.py
C:\windows\twarc-archive.py
Cannot run twarc-archive.py

I also try to run twarc-archive.py using 'python twarc-archive.py ferguson f:\twarc\result', but it returns 'no such profile main in C:\Users\hp.twarc'. Please help. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants