Closed Julianbaozi closed 4 years ago
In fact I can run 'debug' but not 'run'
Can you give more details about this? Thanks!
elasticsearch==6.3.1 elasticsearch-dsl==6.3.1 requests==2.21.0 urllib3==1.24.3 PyMySQL==0.7.0 geopy>=1.21.0 pandas==0.25.3 statsmodels >= 0.11.1
This is the packages I'm using from the setting: Python Interpreter There is always an alert that says package requirement 'grimoirelab-elk' is not satisfied. Yet I click install requirement nothing happens.
This time when I debug, message:
/usr/bin/python3.6 /snap/pycharm-community/192/plugins/python-ce/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 41665 --file micro.py -raw --enrich --cfg ./setup.cfg --backends git
pydev debugger: process 14184 is connecting
Connected to pydev debugger (build 201.6668.115)
Traceback (most recent call last):
File "
Thank you!
I changed pandas to 0.24.2. It can debug now but when I run it's the same problem.
After fetching many repos, how to set the micro only for enrichment? can you give me an example of both parameters passed in micro.py and the setup.py?
https://github.com/chaoss/grimoirelab-sirmordred/issues/462#issuecomment-623501039
Hi @yjl96, did you try to follow this getting started: https://github.com/chaoss/grimoirelab-sirmordred/blob/master/Getting-Started.md#setting-up-pycharm- ?
https://github.com/chaoss/grimoirelab-sirmordred/issues/462#issuecomment-623509303
That's a bit weird. I guess it's a configuration problem with your pycharm. Please follow the getting started at https://github.com/chaoss/grimoirelab-sirmordred/blob/master/Getting-Started.md#setting-up-pycharm- and see if the error is gone. Several users followed it, and nobody reported a problem similar to yours.
After fetching many repos, how to set the micro only for enrichment? can you give me an example of both parameters passed in micro.py and the setup.py?
Examples of micro-mordred are available at:
The setup.cfg is the same of mordred, an example of setup.cfg and projects.json is at:
Hi. I reinstalled the environment and it's working now. Thank you!
What is the order of computation if I pass more than one projects with git and github? Is it project1-git, project1-gituhb, project1-git_enrich, project1-github_enrich, project2?
If I use tokens from different account, I'm still using the same IP. Will I be banned because of this?
Hi @Julianbaozi !
Hi. I reinstalled the environment and it's working now. Thank you!
Great news! You're welcome
What is the order of computation if I pass more than one projects with git and github? Is it project1-git, project1-gituhb, project1-git_enrich, project1-github_enrich, project2?
The data sources' executions are independent, so there is no precise order. Each data source executes different steps (collection, enrichment, etc.)
If I use tokens from different account, I'm still using the same IP. Will I be banned because of this?
It depends on the number of tokens used, however in general it shouldn't be a problem. Are you using the tokens at the same time or sequentially?
At the same time. Distributed on one machine
On Fri, May 8, 2020 at 9:33 AM valerio notifications@github.com wrote:
Hi @Julianbaozi https://github.com/Julianbaozi !
Hi. I reinstalled the environment and it's working now. Thank you!
Great news! You're welcome
What is the order of computation if I pass more than one projects with git and github? Is it project1-git, project1-gituhb, project1-git_enrich, project1-github_enrich, project2?
The data sources' executions are independent, so there is no precise order. Each data source executes different steps (collection, enrichment, etc.)
If I use tokens from different account, I'm still using the same IP. Will I be banned because of this?
It depends on the number of tokens used, however in general it shouldn't be a problem. Are you using the tokens at the same time or sequentially?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chaoss/grimoirelab-sirmordred/issues/462#issuecomment-625900222, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNVJ7SLCMMIWLU42ECJAY3RQQX4DANCNFSM4MQUC5SQ .
I used 4 tokens. The projects are paralleled, sharing the 4 tokens
On Fri, May 8, 2020 at 9:33 AM valerio notifications@github.com wrote:
Hi @Julianbaozi https://github.com/Julianbaozi !
Hi. I reinstalled the environment and it's working now. Thank you!
Great news! You're welcome
What is the order of computation if I pass more than one projects with git and github? Is it project1-git, project1-gituhb, project1-git_enrich, project1-github_enrich, project2?
The data sources' executions are independent, so there is no precise order. Each data source executes different steps (collection, enrichment, etc.)
If I use tokens from different account, I'm still using the same IP. Will I be banned because of this?
It depends on the number of tokens used, however in general it shouldn't be a problem. Are you using the tokens at the same time or sequentially?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chaoss/grimoirelab-sirmordred/issues/462#issuecomment-625900222, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNVJ7SLCMMIWLU42ECJAY3RQQX4DANCNFSM4MQUC5SQ .
thank you for the details @Julianbaozi ! You shouldn't have any problem. Keep an eye on 429 http errors, these ones are generated when performing too many requests. After several warnings of this type, you might be banned.
@Julianbaozi can we close this issue?
Yes. Thank you for your help!
On Mon, May 11, 2020 at 4:53 AM valerio notifications@github.com wrote:
@Julianbaozi https://github.com/Julianbaozi can we close this issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chaoss/grimoirelab-sirmordred/issues/462#issuecomment-626655461, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNVJ7TV6PEODZPWBWT7BF3RQ7RK7ANCNFSM4MQUC5SQ .
Great, you're welcome!
Hi I ran into some new problems.
I want to run this on linux without UI, can I still use pycharm? Right now I'm trying just to download sources and built a virtual environment outside the folder sources (not in sirmordred). And an error occur:
Traceback (most recent call last):
(pid=29063) File "/home/junliang/sources/grimoirelab-sirmordred/utils/micro.py", line 30, in
I added those sources to sys.path. The new sys.path is
['/home/junliang/venvs/gl/lib/python3.6/site-packages/ray/thirdparty_files', '/home/junliang/venvs/gl/lib/python3.6/site-packages/ray/pickle5_files', '/home/junliang/gl', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/junliang/venvs/gl/lib/python3.6/site-packages', '/home/junliang/venvs/gl/src/grimoirelab-elk', '/home/junliang/venvs/gl/src/grimoirelab-cereslib', '/home/junliang/sources/grimoirelab-manuscripts', '/home/junliang/venvs/gl/src/grimoirelab-toolkit', '/home/junliang/venvs/gl/src/grimoirelab-sortinghat', '/home/junliang/venvs/gl/src/grimoirelab-kidash', '/home/junliang/venvs/gl/src/grimoirelab-graal', '/home/junliang/venvs/gl/src/grimoirelab-perceval', '/home/junliang/venvs/gl/src/grimoirelab-perceval-puppet', '/home/junliang/venvs/gl/src/grimoirelab-perceval-opnfv', '/home/junliang/venvs/gl/src/grimoirelab-perceval-mozilla', '/home/junliang/venvs/gl/src/grimoirelab-perceval-finos', '/home/junliang/venvs/gl/src/grimoirelab-sigils', '/home/junliang/sources/grimoirelab-cereslib', '/home/junliang/sources/grimoirelab-elk', '/home/junliang/sources/grimoirelab-graal', '/home/junliang/sources/grimoirelab-kidash', '/home/junliang/sources/grimoirelab-kingarthur', '/home/junliang/sources/grimoirelab-manuscripts', '/home/junliang/sources/grimoirelab-perceval', '/home/junliang/sources/grimoirelab-perceval-finos', '/home/junliang/sources/grimoirelab-perceval-mozilla', '/home/junliang/sources/grimoirelab-perceval-opnfv', '/home/junliang/sources/grimoirelab-perceval-puppet', '/home/junliang/sources/grimoirelab-sigils', '/home/junliang/sources/grimoirelab-sirmordred', '/home/junliang/sources/grimoirelab-sortinghat', '/home/junliang/sources/grimoirelab-toolkit']
sirmordred is in the path
So I don't know what to do to import those packages.
Thank you!
Hi @Julianbaozi , please consider to open a new issue.
The idea to create a virtual environment is a good way to go, however instead of adding the sources to sys.path, you should install Mordred with pip (using the code in your local copy). For instance:
1. $ python3 -m venv /tmp/test <-- create virtual env
2. $ source /tmp/test/bin/activate <-- activate it
3. $ cd .../mordred <- go to the local repo of Mordred
4. ../mordred$ pip install -r requirements.txt
5. ../mordred$ pip install .
6. $ sirmodred --help <- check that mordred has been installed
That worked thank you!
It can never be finished. the log: all.log