-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
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? |
Ed,
I don't recall what arguments twarc-archive.py takes, but I assume that if
I get the error "too few arguments" when attempting to execute
twarc-archive.py, that indicates that it was found but not executed.
Here is how harvest.py calls twarc-archive.py:
'''
# find twarc-archive.py on system path
for dirname in os.environ["PATH"].split(os.pathsep):
candidate = os.path.join(dirname, "twarc-archive.py")
print candidate
if os.path.isfile(candidate):
break
else:
candidate = ""
try:
execfile(candidate)
except:
sys.exit("Cannot run twarc-archive.py")
'''
…On Mon, Jul 17, 2017 at 1:44 PM, Ed Summers ***@***.***> wrote:
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
<DocNow/twarc@281888a>
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?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUAnNHvYX1H-io0rhNMypDIB0K6rKx1-ks5sO51kgaJpZM4OaNUV>
.
|
Interesting! If you are on Unix or OS X what do you see if you type |
/usr/local/bin/twarc-archive.py
…On Mon, Jul 17, 2017 at 2:12 PM, Ed Summers ***@***.***> wrote:
Interesting ok. If you are on Unix or OS X what do you see if you type which
twarc-archive.py ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUAnNPb4vmIOQ4KYvfelnYx0Z-1lEYl5ks5sO6QBgaJpZM4OaNUV>
.
|
Update: Was able to run twarc-archive.py on another Desktop. Ironically, I
created a new desktop because the old one wasn't running some of the twarc
utils, as I recall. But there's no need for you to spend additional effort
troubleshooting this unless you want to! If so, I am happy to keep working
on it.
Best,
Leslie
On Mon, Jul 17, 2017 at 3:09 PM, Leslie Jones <lesjones@sas.upenn.edu>
wrote:
… /usr/local/bin/twarc-archive.py
On Mon, Jul 17, 2017 at 2:12 PM, Ed Summers ***@***.***>
wrote:
> Interesting ok. If you are on Unix or OS X what do you see if you type which
> twarc-archive.py ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#19 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AUAnNPb4vmIOQ4KYvfelnYx0Z-1lEYl5ks5sO6QBgaJpZM4OaNUV>
> .
>
|
Yeah, it should have found it there since I can see from your copy/paste above that it is looking in |
I started refactoring twarc-report to work with modern twarc under #14 ; I'll try to finish that off this week. |
I think I have the same problem For me as well when I run twarc-archive.py, the error is "too few arguments" |
Assuming the issue isn't actually the path settings, this breaks because execfile isn't present in python3. It should be:
|
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 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. |
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.
The text was updated successfully, but these errors were encountered: