Apply failed: Couldn't copy file "C:\Program Files\IDA Pro 8.0\python\3\PyQt5\python_3.9\sip.pyd - reverse-engineering

When I run idapyswitch.exe, I encounter this information
Checking installs from "Python Software Foundation"
Checking "Python 3.10 (64-bit)" (3.10)
Found: "C:\Program Files\Python310\" (version: 3.10.5 ('3.10.5150.1013'))
Checking "Python 3.9 (64-bit)" (3.9)
Found: "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\" (version: 3.9.7 ('3.9.7150.1013'))
Checking "Python 3.10" (3.10)
Found: "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0" (version: 3.10.10 ('3.10.10150.1013'))
Ignoring unusable AppStore Python "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\python3.dll"
IDA previously used: "C:\Program Files\Python310\python310.dll" (guessed version: 3.10.5 ('3.10.5150.1013')). Making this the preferred version.
The following Python installations were found:
#0: 3.10.5 ('3.10.5150.1013') (C:\Program Files\Python310\python3.dll)
#1: 3.9.7 ('3.9.7150.1013') (C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\python3.dll)
Please pick a number between 0 and 1 (default: 0)
1
Applying version 3.9.7 ('3.9.7150.1013')`
and it said permission denied
Apply failed: Couldn't copy file "C:\Program Files\IDA Pro 8.0\python\3\PyQt5\python_3.9\sip.pyd" to "C:\Program Files\IDA Pro 8.0\python\3\PyQt5\sip.pyd": Permission denied
I'm using IDA 8.0 and Python 3.10.10
I have pick number 0 and it still prompt the same error. How can i fix this

Related

install mangodb in cmd while creating path its showing error

C:\Program Files\MongoDB\bin>mongod --directoryperdb --dbpath C:\Program Files\MongoDB\data\db --logpath C:\Program Files\MongoDB\log\mongod.log --logappend --rest --install
Error parsing command line: unrecognised option '--rest' try 'mongod --help' for more information
C:\Program Files\MongoDB\bin>mongod --directoryperdb --dbpath C:\Program Files\MongoDB\data\db --logpath C:\Program Files\MongoDB\log\mongod.log --logappend --rest --install
tried to install monogodb in cmd and couldnt

C Programming fatal error my sql.h no file or such directory on code blocks

I'm unable to use mysql on C when I do #include <mysql.h> or #include "mysql.h". Every time I try to run this program, I get a fatal error.
I put these as my linker settings to add the sql library :
C:\Program Files\MySQL\Connector C++ 8.0\libmysqlclient.so
C:\Program Files\MySQL\MySQL Server 8.0
also this is my search directories:
C:\Program Files\MySQL\Connector C++ 8.0
C:\Program Files\MySQL\MySQL Server 8.0
Any idea how to make codeblocks work with this?
Thanks and I'll keep searching too.
In looking for the answer, I found it. So instead of doing what I did in the link and search directories, instead do this:
Linker settings:
"C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib"
"C:\Program Files\MySQL\MySQL Server 8.0\lib\mysqlclient.lib"
Search Directores:
"C:\Program Files\MySQL\MySQL Server 8.0\lib"
"C:\Program Files\MySQL\MySQL Server 8.0\include"
This allowed me to compile the code with no errors

django AWS EB CLI Unable to deploy with mysqlclient

I have been attempting to deploy my Django project up on AWS ElasticBeanstalk via EB CLI n my local Pycharm project with the built in terminal.
Having setup IAM/group (through aws web console) I migrated and ran server locally (Pycharm terminal) and all works fine, and then created env/instance and requirements.txt and deployed using EB CLI in Pycharm and this also worked fine.
I setup a database connection on RDS (AWS web Console) then changed settings to connect to mysql, pip installed mysqlclient, migrate and ran locally (Pycharm terminal) and again all works fine.
However, when I try to deply the project again with mysqlclient installed I get errors and I just cannot figure out why.
Platform: arn:aws:elasticbeanstalk:us-west-2::platform/Python 3.7 running on 64bit Amazon Linux 2/3.3.7
Requirements.txt
asgiref==3.4.1
cement==2.8.2
certifi==2021.10.8
charset-normalizer==2.0.7
colorama==0.4.3
Django==3.2.9
django-storages==1.12.3
future==0.16.0
idna==3.3
jmespath==0.10.0
mysqlclient
pathspec==0.5.9
python-dateutil==2.8.2
pytz==2021.3
PyYAML==5.4.1
requests==2.26.0
s3transfer==0.5.0
semantic-version==2.8.5
six==1.14.0
sqlparse==0.4.2
termcolor==1.1.0
typing-extensions==3.10.0.2
urllib3==1.26.7
wcwidth==0.1.9
.ebextensions/django.config
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: awsdeploy.wsgi:application
aws:elasticbeanstalk:environment:proxy:staticfiles:
/static: static
container_commands:
01_collectstatic:
command: "source /var/app/venv/staging-LQM1lest/bin/activate && python manage.py collectstatic --noinput --clear"
02_migrate:
command: "source /var/app/venv/staging-LQM1lest/bin/activate && python manage.py migrate --noinput"
leader_only: true
.ebextensions/packages.config
packages:
yum:
python3-devel: []
mariadb-devel: []
EB Error Logs
Collecting mysqlclient==2.0.3
Using cached mysqlclient-2.0.3.tar.gz (88 kB)
2021/11/11 02:10:40.712344 [ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt failed wi
th error exit status 1. Stderr: ERROR: Command errored out with exit status 1:
command: /var/app/venv/staging-LQM1lest/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-isj_ea8s/mysqlclient_f221eb2ed3c44d6e868da4539588d2a4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-isj_ea8s/mysqlclient_f221eb2ed3c44d6e868da4539588d2a4/setup.py'"'"';f = ge
tattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-hzv5pj6h
cwd: /tmp/pip-install-isj_ea8s/mysqlclient_f221eb2ed3c44d6e868da4539588d2a4/
Complete output (15 lines):
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-isj_ea8s/mysqlclient_f221eb2ed3c44d6e868da4539588d2a4/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-isj_ea8s/mysqlclient_f221eb2ed3c44d6e868da4539588d2a4/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-isj_ea8s/mysqlclient_f221eb2ed3c44d6e868da4539588d2a4/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.tar.gz#sha256=f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out
with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement mysqlclient==2.0.3 (from versions: 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.10, 1.3.11rc1, 1.3.11, 1.3.12, 1.3.13, 1.3.14, 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0, 1.4.1, 1.4.2, 1.4.2.post1, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 2
.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc1)
ERROR: No matching distribution found for mysqlclient==2.0.3
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/var/app/venv/staging-LQM1lest/bin/python -m pip install --upgrade pip' command.
2021/11/11 02:10:40.712360 [INFO] Executing cleanup logic
2021/11/11 02:10:40.712489 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install application dependencies. The deployment failed.","timestamp
":1636596640,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1636596640,"severity":"ERROR"}]}]}
2021/11/11 02:10:40.712674 [INFO] Platform Engine finished execution on command: app-deploy
I don't understand why prior to installing mysqlclient it's managed to deploy install all my packages from requirements file successfully but fails when mysqlclient was added - what am I missing?
Help is much appreciated, happy to share any other details if needed. Thanks
Edit
I came across the answer on this link: [https://stackoverflow.com/questions/67344766/error-encountered-while-installing-dependencies-for-flask-mysql-application-usin][1]
And created the .ebextensions/packages.config as suggested and removed version from mysqlclient within my requirements.txt file - updated above code.
Now mysqlclient appears to have installed succssfully but now get the following error:
New EB Error Logs
An error occurred during execution of command [app-deploy] - [PostBuildEbExtension]. Stop running the command. Error: container commands build failed. Please refer to /var/log/cfn-init.log for more details.
I'm also not sure how to check this log /var/log/cfn-init.log, when I go to the web console I can't see any eb instances listed or any logs.

Running mysql_ssl_rsa_setup generates an error

In Windows Server 2008, I was running the program with following command:
E:\Program Files\MySQL\MySQL Server 5.7\bin>mysql_ssl_rsa_setup --datadir="E:\Program Files\MySQL\MySQL Server 5.7\SSL"
It returns this error:
Unable to load config info from "C:\Program Files (x86)\Common Files\ibm\icc\cimom\bin\openssl.cnf"
2018-01-17 10:45:51 [ERROR] Error generating ca_key.pem and ca_req.pem
The user account has full control to the path. Please help out.

Fatal Error while installing mysql-advanced 5.7.19 - Solaris 11 Sparc 64 bit

I tried to install mysql advanced 5.7.19 to non-default location onto Solaris SPARC 64bit
Non-default location: /opt/app/mysql
But face the following error:
During pkgadd: ld.so.1: mysqld: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file bin/mysqld)
During mysql_install_db: ld.so.1: mysql_install_db: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file mysql_install_db)
Below are my steps:
# working directory: /export/home/admin
root#host:/export/home/admin# cat /var/sadm/install/admin/custom
basedir=/opt/app/$PKGINST
root#host:/export/home/admin# pkgadd -a custom -d mysql-advanced-5.7.19-solaris11-sparc-64bit.pkg
...
Executing postinstall script.
ld.so.1: mysqld: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file bin/mysqld)
ld.so.1: mysqld: fatal: libstdc++.so.6: open failed: No such file or directory
/var/sadm/pkg/mysql/install/postinstall: line 89: 7487: Killed
...
Installation of <mysql> was successful.
You have mail in /var/mail/root
# Change permission on /opt/app/mysql
root#host:/opt/app# chown -R mysql:mysql /opt/app/mysql
# Change to user: mysql
root#host:/opt/app# su - mysql
mysql#host:~$ cd /opt/app/mysql/mysql/bin
mysql#host:/opt/app/mysql/mysql/bin$ ./mysql_install_db --user=mysql --ldata=/opt/app/mysql/mysql/data
ld.so.1: mysql_install_db: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file mysql_install_db)
ld.so.1: mysql_install_db: fatal: libstdc++.so.6: open failed: No such file or directory
Killed
Questions:
What did I missed?
Did my step were correct?
Please advise how to correctly install mysql-advanced 5.7.19 to non default location (using tar preferably).