John Torakis

Results 36 comments of John Torakis

> I have added the following to my profile headers: > ` User-Agent: Mozilla/5.0 (X11; Linux i686; rv:124.0) Gecko/20100101 Firefox/124.0` > > The import then picks up the changes within...

Hello @priamai ! SSH authentication for Git will not be implemented as this project is only using HTTP/S. There is an example very close to your use-case in the README.md:...

> ``` > > profile = """ > [gitlab] > headers: > PRIVATE-TOKEN:glpat-xxxxxxxxxxxxxxxxxxxxx > """ > httpimport.set_profile(profile) > > with httpimport.gitlab_repo("ava-clustering","ava-modules",profile= 'gitlab'): > import avapi > print(avapi.__dict__) > > ```...

I see. The code uses this template for the URL: https://github.com/operatorequals/httpimport/blob/master/httpimport.py#L34 It does not use the API so, the `PRIVATE-TOKEN` header doesn't work. I haven't tried authenticated GitLab yet. Let's...

Thanks a lot @hermandr 🙃 There are instructions specifically on that in the Readme: https://github.com/operatorequals/httpimport#named-profiles

Hello @dvmorris Can you please respond with what you've tried so far?

I believe that removing the filename from the url of the non-working example will fix it as well. The `import` statement looks for the file itself.

In this case you are doing nothing wrong! Just importing specific objects from a module is not supported. Try using them with full names: ```python with httpimport.github_repo('priamai','stixorm',ref='master'): # import the...

I see. Give me some time and I'll return to that issue. Until then you can try importing every submodule one by one.

Hey, can you check if the problem is solved in `v1.3.1`? Looks like it could be related to https://github.com/operatorequals/httpimport/issues/53