How to install LuaSocket version 3.0rc1-2 through luarocks? - web

I am attempting to create a website through Lua.
In the process of installing the Orbit module, I installed the Luasocket module.
It says that the 3.0rc12 module is not installed even though the lua socket module is already installed.
How to solve this?
Installing by entering the luarocks luarocks install luasocket in causes an error in the process of installing other modules.
Is there any way I can install the desired version via luarocks to solve this?
Installing by entering the luarocks install luasocket command in causes an error in the process of installing other modules.
When installing through luarocks install luasocket, it is displayed in the list displayed when executing luarocks list command.
But when I try to install other modules it says version 3.0rc12 is not installed
Is there any way I can install the desired version via luarocks to solve this?

Related

flatpak add additional dependencies after install (QGIS)

I'm encountering a problem with the org.qgis.qgis package. It has a self-contained python install which it uses to run its plugins and console.
This page tells me to install python modules using the following command:
flatpak run --command=pip3 org.qgis.qgis install pycurl --user
But pip install pycurl fails due to missing dependencies (I recognized the error from when I'd installed the module onto the native python install of my machine).
I can (and already have) installed the dependencies natively so i am able to run the pycurl module from the natively installed python on my machine
From Flatpak's docs, I can see how a developer could add the build dependencies for the module to the flatpak dependencies.
But what If I am a user and I need to install additional dependencies not anticipated by the package maintainer?

How to fix EnvironmentError when installing modules using pip?

When trying to install requests or literally anything using pip it'll collect the option and then give me this ERROR every time. I can't use pip to install anything.
C:\Users\evand>pip3 install requests
Collecting requests
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt
Version of pip:
C:\Users\evand>pip --version
pip 19.2.3 from c:\users\evand\appdata\local\programs\python\python38-32\lib\site-packages\pip (python 3.8)
Version of Python:
C:\Users\evand>py --version
Python 3.8.3
Current Environment Variables (If this is related at all)
I have also tried the 'Repair' option using the Python Installer as well as uninstalling then reinstalling as a custom installation with 'Add to PATH' and the other options. That didn't fix the issue, so I deleted pip along with every module installed on my computer then reinstalled pip. Nada. At this point, I can no longer program with this computer because I cannot import any module in any of my scripts. I am not sure why this issue suddenly arose. Help would be very much appreciated.
This worked for me:
Uninstalling the pip configuration file in %appdata%/pip/ then 'modifying' python using the python launcher.

can't install pip module smtpd-tls

I am trying to set up a debugging server for testing email logging and I encountered an issue with smtpd module. It was not installed and I can not pip install with with cli or add the package in Pycharm ui. From my understanding of the error it thinks my python version is less than 2.7 but I have confirmed that for this venv I am in 3.7.0. I cannot view the install log because it is a temp file and whe I go to that directory there is no such file.
Any ideas?
This is a known bug in smtpd-tls. Unless you can get the author to update the package, you cannot install smtpd-tls in Python 3.

spacy installation deletes conda.exe - 'conda' is not recognized or corrupted

I am getting the following error:
C:\Program Files\Anaconda3\Scripts>conda list
'conda' is not recognized as an internal or external command, operable program or batch file.
I was installing a package using conda when it errored out. I think that the install application was trying to upgrade conda but could not. And so has deleted the conda.exe in the process. I do not see conda.exe anymore in my Anaconda3 folder. How do I get conda.exe. Do I need to reinstall Anaconda?
#cricket_007 thank you for the pointers
In the first try, was trying to install the package spacy on a base installation of Anaconda with Python 3.6. using the conda command with admin privileges and that is when conda.exe got deleted.
This time as reinstalled spacy without admin privileges and the same error came when it tried to install the dependency tdqm package but conda.exe did not get deleted. So I understood that there was an issue with the tdqm package which is one of the dependencies for spacy.
Then I installed tdqm separately from another source and it installed without any problems.
And then I installed spacy again then spacy and all the dependency packages got installed properly.
Everything installed successfully.
Learnings:
Anaconda should not be installed in the Program files directory as
then you would need admin privileges to install any package.
Always install packages without admin privileges
Keep a check on the dependencies

Pip Uninstall and Install same package gives 'AssertionError: Multiple .dist-info directories'

I am having trouble installing and installing again the same package. I get an 'AssertionError: Multiple .dist-info directories' error. I think that it has something to do with the pip uninstall not completely getting rid of all the files of a package, but am not sure how to remedy the situation. I don't know what information would be helpful here, except maybe that this is a Django project, running on virtualenv on IIS.
EDIT: I just re-installed python and with it, a new version of pip.
Remove the related pip build directory for that particular package and try installing it again. That'd work.
If you're working in a virtual environment say venv, pip build directory will be <path-to-venv>/venv/build/<package-name>.

Resources