GithubHelp home page GithubHelp logo

It can't make it work about gitlabber HOT 10 CLOSED

ezbz avatar ezbz commented on May 18, 2024
It can't make it work

from gitlabber.

Comments (10)

Jabberwocked avatar Jabberwocked commented on May 18, 2024

same issue here

from gitlabber.

ezbz avatar ezbz commented on May 18, 2024

I think the issue is with the glob pattern

can you try the same with two ** symbols:

 gitlabber  -u https://gitlab.com/ -i /csns_accelerator** .

See https://pypi.org/project/globre/ for more about glob patterns I know they're not always the most intuitive (albeit very useful for path selection) you can always resort to regex if you prefer

from gitlabber.

fabianoriccardi avatar fabianoriccardi commented on May 18, 2024

Ok thanks, I didn't know of glob patters. However I just copied and pasted your command and it doesn't work: I waited more that 5 minutes and the command is still pending. From taskmanager it continues to consume constantly 0.1Mbps (my Internet connection is surely faster), but the destination folder remains empty. I'm using python 3.8 in Powershell. Finally, when I press CRTL+C, I get the following traceback:

Traceback (most recent call last):
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\fabi r\AppData\Local\Programs\Python\Python38-32\Scripts\gitlabber.exe_main
.py", line 7, in
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\cli.py", line 27, in main
tree.load_tree()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\gitlab_tree.py", line 95, in load_tree
self.load_gitlab_tree()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\gitlab_tree.py", line 81, in load_gitlab_tree
self.get_subgroups(group, node)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\gitlab_tree.py", line 70, in get_subgroups
subgroups= group.subgroups.list(as_list=False)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab\exceptions.py", line 275, in wrapped_f
return f(*args, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab\mixins.py", line 141, in list
obj = self.gitlab.http_list(path, **data)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", line 653, in http_list
return GitlabList(self, url, query_data, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", line 777, in init
self.query(url, query_data, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", line 782, in _query
result = self.gl.http_request("get", url, query_data=query_data, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", line 537, in http_request
result = self.session.send(prepped, timeout=timeout, **settings)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\urllib3\connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\http\client.py", line 1322, in getresponse
response.begin()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\http\client.py", line 303, in begin
version, status, reason = self._read_status()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\http\client.py", line 264, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
KeyboardInterrupt

from gitlabber.

ezbz avatar ezbz commented on May 18, 2024

please run

export GIT_PYTHON_TRACE='full'

the run your command again with the --verbose flag and post the output here

from gitlabber.

fabianoriccardi avatar fabianoriccardi commented on May 18, 2024

Run the command

gitlabber  -u https://gitlab.com/ --debug -i /csns_accelerator** .

after the export GIT_PYTHON_TRACE='full'. The result is:

Traceback (most recent call last):
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in run_module
as_main
return _run_code(code, main_globals, None,
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\fabi r\AppData\Local\Programs\Python\Python38-32\Scripts\gitlabber.exe_main
.py", line
7, in
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\cli.py", lin
e 27, in main
tree.load_tree()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\gitlab_tree.
py", line 95, in load_tree
self.load_gitlab_tree()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlabber\gitlab_tree.
py", line 79, in load_gitlab_tree
for group in groups:
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab\base.py", line
184, in next
return self.next()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab\base.py", line
187, in next
data = self.list.next()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", l
ine 857, in next
self._query(self.next_url)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", l
ine 782, in _query
result = self.gl.http_request("get", url, query_data=query_data, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\gitlab_init
.py", l
ine 537, in http_request
result = self.session.send(prepped, timeout=timeout, **settings)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\requests\sessions.py",
line 643, in send
r = adapter.send(request, **kwargs)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\requests\adapters.py",
line 439, in send
resp = conn.urlopen(
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\urllib3\connectionpool
.py", line 670, in urlopen
httplib_response = self._make_request(
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\urllib3\connectionpool
.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\site-packages\urllib3\connectionpool
.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\http\client.py", line 1322, in getre
sponse
response.begin()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\http\client.py", line 303, in begin
version, status, reason = self._read_status()
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\http\client.py", line 264, in read
status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "c:\users\fabi r\appdata\local\programs\python\python38-32\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
KeyboardInterrupt

from gitlabber.

ezbz avatar ezbz commented on May 18, 2024

you're posting the exception without the output all this tells me is that you hit ctrl+c to interrupt the operation while the gitlab API is being queried,

Does curling gitlab work for you?

curl -s -H 'PRIVATE-TOKEN: <your_token>' https://<your_gitlab>.com/api/v4/groups/csns_accelerator/projects

from gitlabber.

projasmine avatar projasmine commented on May 18, 2024

Hi @ezbz I am having this issue and the curl works for me....any ideas?

from gitlabber.

ezbz avatar ezbz commented on May 18, 2024

@projasmine can you post the command you're running (and add the --verbose flag) and the full output

from gitlabber.

jasondamour avatar jasondamour commented on May 18, 2024

I'm guessing most people cancel after several minutes, assuming failure. For me, the command command works after nearly 12 minutes. I assume due to https://Gitlab.com ratelimiting

from gitlabber.

ezbz avatar ezbz commented on May 18, 2024

Observe gitlab.com rate limits, closing due to inactivity

from gitlabber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.