I am pretty new to Google Cloud Pub/Sub, so I am just playing around with the code that is available on the docs in order to know the service better. In this instance I am trying to execute the simple code on the official docs to publish some data into a topic. But I am encountering an issue. There is an error which states topic_path() is not a member of PublisherClient. Has anyone else faced this issue?
Below is the snapshot.
The issue is that the PublisherClient instance has dynamic attributes, so pylint is unable to infer the members of the instance (I'm assuming you're using pylint based on the linting message).
You can ignore this for all google.cloud.* packages by setting this in your .pylintrc:
generated-members=google.cloud.*
Related
I've just switched gears to Azure esp. started working on Azure functions. It's very straightforward to do the deployment using VSCode but I've been unable to find any comprehensive working end-to-end doc/resource about how to set azure function in pycharm, publish it from PyCharm to azure cloud and debug it locally.
I've looked in Microsoft docs but couldn't find anything of value for setting up Azure Func in PyCharm. Could you please suggest if it is possible to do it in PyCharm or do I have to switch to VSCode? (Don't wanna switch just because of Azure Functions though).
PS: If it is possible to set it up in PyCharm, link or details of how-to will be helpful.
Thanks in advance for help.
Azure Function is now supported in Rider, WebStorm and IntelliJ and it supports TypeScript, Node, C#, Python and Java. But PyCharm most likely be the only JetBrains product that doesn't have a single step setup to run and debug Azure Functions.
Currently there is no Azure Function Extension with the help of which functions can be created, debugged and published from PyCharm.
If you don't want to switch to VS Code then for now you might like using IntelliJ for running, debugging and publishing Azure Functions.
Check this discussion to get more information. Also check this approach to debug it locally, it can be considered as a workaround but not solution.
At the moment Pycharm does not integrate directly Azure Functions.
I've set up a DevOps Pipeline in my function, so everytime I need to run and test it I push my code from Pycharm on a dedicated branch and the function is deployed on Azure.
I found this post about WebJobs and that fits my criteria but i dont see WebJobs option in my portal, I check web-apps section and it only display option for functions app. Azure functions does support python but required Linux box and I only have window so that’s dead-end for me.
Any suggestions will be appreciated.
Edit (3/31): Actually I found the satisfactory answer from Microsoft support. Adding it here for others. According to support team, WebJobs is currently not supported for App Service on Linux.
As I mentioned in comments, it may caused by some mistake during deployment. While deploy to azure, if deleted "App_Data" folder, it will lead to the problem of missing "Webjobs" option from the section of web app. We can refer to this document for further information.
I make this topic as we have a problem uploading a python archive in Azure. We did a modular code with python, which is a text generator. The code is working on python environment, besides we wanted to upload it to the cloud. When we tried it, we used the App service of Microsoft azure, we didn’t have any trouble while we were doing the process this way. Nevertheless, at the end, the program gave us a json, when we tried to put that URL into the navigator… There’s were the problem is, the generated Jason doesn’t connect with the navigator. We don’t have any clue of what’s happening, because the console doesn´t give any warning or error.
If any of you knows or have a tip for us to solve this problem, I would appreciate it,
Thanks for your attention and have a nice day.
Welcome to Stack Overflow! From what I understand, I suppose you should be going with Azure Automation Runbooks instead of Azure App Service, if you intend to execute or automate a task-like job. You can also test your runbook and implement error handling streams to ensure it works as expected. Please refer to this example for a detailed walkthrough.
Please elaborate your requirement if this is not what you were looking for, and we can explore other alternatives.
I am new to HBase. I want to insert some data through python into HBase. I googled and found there is HappyBase api for HBase in Python but that, as per my understanding and findings, does not work with Mapr M7.
Please guide what package has to be imported in Python.
Thanks.
I made a library called pychbase that uses the MapR C api called libhbase to connect to maprdb.
The goal is to track the HappyBase API as best as possible. Unfortunately libhbase doesn't provide all the same features that HappyBase does, so I'm raising NotImplementedError when it happens.
Check the Readme out for details on how to install it and let me know if you need any assistance.
Here is the github repo.
I'm wondering... in the "new" AWS CLI tool, which would be the equivalent to the "old" ec2-import-instance command? Can't find anything useful in the AWS Docs, help output or on the web.
Reason why I'm asking is that I'm curious to see their Python implementation of it, as I want to incorporate it into my own code. AWS CLI uses Python/boto (as opposed to the old API tools which used Java), which might be an explanation why the functionality is missing (couldn't find it in boto either).
If you happen to know how to achieve an instance import in pure Python, I'd be very curious about that too!
Any pointers are greatly appreciated. Thanks!
It will be supported in a later release. As of now, there is no support for it.
For more info