[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

ctypes works for python2.6 but not python2.7

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 3

File: wtf.png (25KB, 1920x1080px) Image search: [Google]
wtf.png
25KB, 1920x1080px
Does anybody have any idea why this is happening? I'm trying to get a python script working on my buddies webserver using jailshell ssh. It's CentOS (I'm not sure what version probably 7.x) so it has python 2.6 on it already but being that it's jailshell all the files in the python folder are read-only so I can't even install pip. So i installed Python 2.7 in the websites home directory but for some reason ctypes won't work for 2.7, making it impossible to use. _ctypes.o doesn't even exist but there is a ctypes directory and a shit ton of other stuffs I don't understand. I also tried to manually install ctypes but I get an error saying "error: package directory 'ctypes' does not exist".

I've googled everything I can, help me /g/ you're my only hope.

I'm probably just really retarded...
>>
File: wtf.png (17KB, 718x406px) Image search: [Google]
wtf.png
17KB, 718x406px
Fucking god dammit heres the right image
>>
works on my machine
>>
>>56042967
I know it should i just need a hypothesis on why it doesn't work on mine. I'm out of ideas.
>>
heh nice ip kid, prepare to get ddosed xD
>>
say when i'm working between 2.7 and 3.5
if i need to install library for 2.7
pip2.7 install x
if i'm using 3.5
pip3.5 install x

try that and let me know?
>>
>>56042978
lol dammit after all that red marking.

do it pussy nigga
>>
File: this.png (28KB, 882x497px) Image search: [Google]
this.png
28KB, 882x497px
>>56042998
this happens because i'm pretty sure setuptools shit needs ctypes and the newer version of pip does too i've tried updating it.
>>
Does anyone have any idea what in the fuck?
>>
>>56043137
sudo apt install python-setuptools python3-setuptools
>>
>>56043954
I can't use package managers im limited to jailshell
Thread posts: 11
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.