directory_picture
Hey everyone, I am a begginer programmer trying to make a web app with AWS, and I have been trying to make bs4 work, but it keeps coming up with the error:
{
"errorMessage": "Unable to import module 'lambda_function': No module named 'bs4'",
"errorType": "Runtime.ImportModuleError"
}
I have even installed the library locally in the same directory, and zipped it and uploaded it, but it still comes up this error?
Hey so I got the solution!
I basically made a virtualenv and followed some steps to enable the libraries to work. Also note, the requests library doesn't seem to work due to a certificate error.
This is the page I used to fix my issue:
https://medium.com/#manivannan_data/import-custom-python-packages-on-aws-lambda-function-5fbac36b40f8
For any begginers like me, you can do this for any version of python per requirement, as I used python 3.8. This should also work for almost all python libraries!
Related
I'll start off by saying I'm completely new to Go and having a lot of trouble figuring out its environment.
I'm attempting to make a custom terraform provider by following the instructions in this guide.
When attemping to run go mod tidy after setting up the project files, it is unable to pull in the required modules. This is the error I get:
github.com/hashicorp/terraform/terraform: module github.com/hashicorp/terraform#latest found (v.1.3.2), but does not contain package github.com/hashicorp/terraform/terraform
I get this same error for pretty much all the requirements.
Can someone ELI5 how I'm supposed to setup my Go environment so that I can write a custom tf provider? Thanks.
The guide you are following is terribly outdated (from 2014). Since it was written, they reorganized plugin SDK several times, slightly newer is I believe terraform-plugin-sdk which I don't recommend learning at all. Latest and recommended SDK is called terraform-plugin-framework.
Up to date documentation with examples is here: Implement a Provider with the Terraform Plugin Framework. It will walk you trough environment setup and bootstrapping a new custom provider.
I made an application using GTK3 on Windows (Mingw_x64 installation of GTK) and I cannot really figure out how to make a distribution out of this. According to official documentation of PyGObject, it is possible in some way.
I already tried to make a package using setuptools, but PyGObject documentation is not saying much about this process and I was not able to configure setup correctly to make it work. PyGObject has a lot of dependecies and weird imports, that I do not know how to include.
I also tried Pyinstaller, which claims it has GTK support, and it really can pack it into executable, however it is not working. I tried these two options:
make only one file (.exe), but in this situations, it throws an error, that some file is not found (libpixbufloader-ani.dll)
create a directory with all needed files (libpixbufloader-ani.dll and other libs are included this time), but when running exe, another exeption occurs, this time Struct and 2 other libraries are missing (strangely, there is a folder that contains Struct)
Becouse of the missing files, I tried adding as many paths containing needed libraries as possible to Pyinstaller, but without success.
Does anyone have any experience with packaging GTK appliciations in Python? There is definitely a way to do this, but I am not very experienced with packaging. If needed, I can provide more information.
This is an issue that has been brought up on PyInstaller's GitHub page, as others (including myself) have experienced the same issue that you've mentioned.
The last time I tried the dev version of PyInstaller, the issue still wasn't fixed, but I managed to get a working executable by using PyInstaller to find the dependencies that my Python3/GTK3 app needed, and then I used cx_Freeze to generate the final executable.
Now, i using vuejs and laravel. when i see view page source (Ctrl+U) but have not html code.I went to find in google.And found need to use Server side rendering
(I learned form https://medium.com/js-dojo/server-side-rendering-with-laravel-vue-js-2-5-6afedd64aa90) But problem is "Class 'V8Js' not found"
Someone can help ?
sorry I don't speak English that well
The problem is, that V8JS is a PHP library, that is not shipped by default and you have to compile it by yourself. You can learn more about it and how to install it on it's GitHub page. Follow the installation instructions for your local machine operating system and you should be good to go. If you would like to deploy your app to your hosting provider, first you have to make sure that your host has this PHP extension compiled and enabled. Hopefully this helps you :)
I need wxPython for a project I'm currently writing. It's a basic text editor- it'll eventually have markdown and bbcode editing supported (with error checking), but right now I want to get the program working. The guide I'm using uses wxPython, but it's official support is only up to 2.5. I'm using Python 3.3, and I grabbed one of the development builds.
I just don't know how to install it, but I found this comment, but I'm not sure what it's telling me to do. Is it telling me to create a folder in one of python's subfolders, then use the bit of code in every wx program I make? Or is it telling me something else?
Edit: I found the site-packages folder and made the folder, then pasted the appropriate folder in the folder I made, but it threw the error :
ImportError: No module named 'wxversion'
Using Ninja IDE 2.2, if it helps at all.
Edit 2: So I wx instead of wxversion, and it seemed to work, but now Ninja IDE pulls up core.py and tells me
ImportError: DLL load failed: %1 is not a valid Win32 application.
Does anyone know what this means, and how I can fix it?
If you don't have another version of wxPython installed then you don't have any need to use wxversion. Just put Phoenix's wx package folder directly in site-packages and use it normally.
Does anyone know of a guide to getting Firebird working under OSX for Delphi apps?
I am using the InterBase Express components but when I start my app I get the error saying that libgds.dylib is missing. I have renamed the libfbclient.dylib to libgds.dylib. I have even made a copy in the original path and done a symbolic link to the /usr/local/lib folder (as is the case with libfbclient.dylib).
Here is what I have tried...
I have added '/usr/local/lib' to the paths in the target profile.
I have tried copying the file into the package
I have copied the file to my windows machine and then distribute it using the project deployment options.
Nothing appears to work. I'm not trying to create a redistributable package at this point. I just want to get the app working for debug.
One further bit of information. I installed the standard Firebird package rather than the Lipo package. I confess to not really understanding the difference. I am going to try installing the Lipo package now to see if that makes a difference.
Thanks in advance,
Martin
Solution found. The problem was the package that I installed.
After installing the Lipo package it appeared to find the dylib and continue.
Im not there yet as now I am getting a Permission Denied error trying to create the database in the Documents folder. I guess I will post another question if I cant get to the bottom of this one.