-
Notifications
You must be signed in to change notification settings - Fork 56
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 with using infer_id() #10
Comments
I just tried your example and it seems the code works on my end.
Could you provide the full log and traceback? If you are using a GPU could you also try to run the code on CPU only? |
Thanks, @anudeike , for reporting this. Could you let us know what operating system and version of Python you are using? My guess @zijwang is that this may be a Windows-specific bug. The error mentions fork (linux/mac only) and freeze_support, which I believe is something specific about making multiprocess approaches work on Windows. I've just not run anything but Linux for so long that I'm unsure. |
@computermacgyver Hi and you're welcome. I am using Windows 10 and Python 3.8. |
Hi @anudeike , If you follow the instructions in the README to create a file called
What you'll see in that file is that
block
|
Hi! I'm using this code for a research project, thank you for providing it.
I am trying to make an inference based infer_id nd I just replicated the example in the FAQ. Here's what my code looks like:
from m3inference import M3Twitter
load_dotenv()
# authentication twitter_app_auth = { 'consumer_key': os.getenv('TWITTER_API_KEY'), 'consumer_secret': os.getenv('TWITTER_API_SECRET'), 'access_token': os.getenv('TWITTER_ACCESS_TOKEN'), 'access_token_secret': os.getenv('TWITTER_ACCESS_SECRET'), }
# init the api inferenceTwitter.twitter_init(api_key=twitter_app_auth['consumer_key'], api_secret=twitter_app_auth['consumer_secret'], access_token=twitter_app_auth['access_token'], access_secret=twitter_app_auth['access_token_secret'])
pprint.pprint(inferenceTwitter.infer_id("2631881902"))
The traceback that I received was pretty confusing
`RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
RuntimeError: DataLoader worker (pid(s) 57016) exited unexpectedly
I'm not sure where to find the freeze_support() function call and how to deal with using the fork() child processes.
The text was updated successfully, but these errors were encountered: