-
Notifications
You must be signed in to change notification settings - Fork 8
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
Buckwheat module can not be found in python3 #8
Comments
Hello! I just checked and found no such error, hmm. Are you running the command from the root folder? The command must be run from the folder with the README, license, etc. (from inside the cloned directory)
|
Thanks very much for the reply. Now my faced challenge is to tokenize such files and I have found your tools quite useful for this purpose. By the way, these files are located in my local directory ( a simple directory containing such files). May you help me with how to proceed? Thank you so much in advance. |
There might be some problem, because, see, our tool is made for extracting identifiers out of source code. What this means is that the tool builds the AST of a given file, then takes out tokens that correspond to identifiers. The problem is that if you have only changed lines of code, the AST might not be built correctly, or something. Just please note that you will have only identifiers extracted, you are welcome to give it a shot. You will need to create a text file with the full path the directory that contains all the files with the code (probably this is the directory in you screenshot). Like this: /full/path/to/directory/ Note that our tool uses a language recognizer, so make sure that the extensions of files correspond to your language (that you did not specify in your comment). So if your diffs are from Java, use .java, if from Python, use .py. Save this file as, for example,
This will treat you main directory as a project, and all you diffs as files in that project. A JSON file will be saved to the However, like I said, it might not work great, because we only tested the tool for full source files. If it does not work, you may want to try tree-sitter or pygments directly. |
Thanks again. |
Hello @sariforo! Could you please tell in which directory you run the aforementioned command? |
Hello @egor-bogomolov and thanks for the follow up! I executed the aforementioned command in my Users directory (e.g., Mac-Pro:~ sarafrt$) and I specified the path to the files folder ( such folder contains bunch of files written in various programming languages and I would get list of identifiers from those files..) in the 'input.text' . Thank you. |
Yeah, that is the problem! You need run the command from the cloned folder. So you clone this repository, navigate to it, and then run the command. From the directory with the README, the license file, etc. |
An alternative solution would be to add path to the cloned directory to your python path environment variable |
Hello,
I am trying to use Buckwheat on Mac but when executing the aforementioned command "python3 -m buckwheat. run"
I am facing the error (ImportError: No module named 'buckwheat' )
Any help will be pleasant!
The text was updated successfully, but these errors were encountered: