activestate

关于之前Komodo IDE、Perl Dev Kit注册问题补充

别等时光非礼了梦想. 提交于 2020-02-29 22:22:48
之前在 http://my.oschina.net/huidate/blog/36661 、http://my.oschina.net/huidate/blog/38198 中提及对Komodo IDE、Perl Dev Kit注册内容做些补充。大家有些会问 ,那些注册机都是exe程序,在windows运行获取注册文件的,而在Linux怎么办呢?如何在Linux一样可以获取注册文件?其中的解决办法是跟之前提及的没什么异样,将在Windows中注册成功的 ActiveState.lic 文件复制到Linux的 /home/username/.ActiveState下,试试运行linux下的Komodo IDE、Perl Dev Kit看看,注册成功了~~~ 来源: oschina 链接: https://my.oschina.net/u/93105/blog/39323

How to read to and write from a pipe in perl with ActiveState Perl?

别等时光非礼了梦想. 提交于 2020-02-08 03:05:18
问题 This excellent question How to read to and write from a pipe in Perl? provides an excellent answer. It doesn't work on ActiveState Perl. The BUGS section of perlfork http://docs.activestate.com/activeperl/5.14/lib/pods/perlfork.html says In certain cases, the OS-level handles created by the pipe(), socket(), and accept() operators are apparently not duplicated accurately in pseudo-processes. This only happens in some situations, but where it does happen, it may result in deadlocks between the

Running a batch file from Perl (Activestate perl in Windows)

时光总嘲笑我的痴心妄想 提交于 2019-12-12 09:55:04
问题 I have a Perl program which does something like below: #!/usr/bin/env perl use strict; use warnings; my $exe = "C:\\project\\set_env_and_run.bat"; my $arg1 = "\\\\Server\\share\\folder1"; my $arg2 = "D:\\output\\folder1"; my $cmd = "$exe \"$arg1\" \"$arg2\""; my $status = system("$cmd > c:\\tmp\\out.txt 2>&1"); print "$status\n"; I am calling this Perl code in an eval block. When invoked, i get the status printed as 0, but the batch file has not actually executed. What would be the reason for

python numpy MKL ERROR

Deadly 提交于 2019-12-12 08:33:20
问题 I am running ActiveState Python 3.2, and getting this cryptic error: D:\code>python ActivePython 3.2.1.2 (ActiveState Software Inc.) based on Python 3.2.1 (default, Jul 18 2011, 14:31:09) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> x = np.array([[1, 1], [2, 1], [3, 1]]) >>> y = np.array([3, 4, 5]) >>> be = np.linalg.lstsq(x,y) MKL ERROR: Parameter 5 was incorrect on entry to DGELSD MKL ERROR: Parameter

TCL Email Script doesn't deliver in Activestate TCL

ⅰ亾dé卋堺 提交于 2019-12-10 20:00:18
问题 I ran the following script on the MAC OSX version of TCL and it worked fine however it hangs on ActiveState TCL on a Windows 7 machine proc send_simple_message {recipient email_server subject body} { package require smtp package require mime set token [mime::initialize -canonical text/plain -string $body] mime::setheader $token Subject $subject smtp::sendmessage $token \ -ports 587 \ -debug 1\ -username myAccount@gmail.com \ -password myPassword \ -recipients $recipient -servers $email_server

pil png activestate on windows 7 ZLIB (PNG/ZIP) support not available

十年热恋 提交于 2019-12-08 00:59:21
问题 I'm trying to port a python program from OS X to Windows 7. This program processes a png with tkinter eg self.logoImg = ImageTk.PhotoImage(Image.open('GrowthPathLogo.png')) The code is failing with IOError: decoder zip not available I've tried installing pip with pypm. Then I try building it with pip. At the end of the build process it reports that there is no support for png/zlib I get the same errors with the python.org installation on Windows. I'm stuck and I'm not skilled at building C

Running a batch file from Perl (Activestate perl in Windows)

喜夏-厌秋 提交于 2019-12-05 21:16:39
I have a Perl program which does something like below: #!/usr/bin/env perl use strict; use warnings; my $exe = "C:\\project\\set_env_and_run.bat"; my $arg1 = "\\\\Server\\share\\folder1"; my $arg2 = "D:\\output\\folder1"; my $cmd = "$exe \"$arg1\" \"$arg2\""; my $status = system("$cmd > c:\\tmp\\out.txt 2>&1"); print "$status\n"; I am calling this Perl code in an eval block. When invoked, i get the status printed as 0, but the batch file has not actually executed. What would be the reason for this? Any issue with the 'system' call coded above? Thanks, Jits You need to escape your backslashes

How to use the win32gui module with Python?

吃可爱长大的小学妹 提交于 2019-11-30 08:35:37
Im my Python file, I have imported the win32gui module like this: import win32gui I have also downloaded win32gui but don't know how to make my script run. How can I run my Python script which imports win32gui ? When I run it, I get: ImportError: No module named win32gui Sorry for the newbie question but I'm trying to learn Python so don't know much about it. When on a windows platform, I usually go for the executables. They should work all the time. Try perhaps one of the files listed here: http://sourceforge.net/projects/pywin32/files/pywin32/Build216/ It's the most recent build. Choose the

Why does ActivePython exist?

元气小坏坏 提交于 2019-11-29 20:14:21
What's ActivePython actually about? From what I've read it's just standard Python with openssl and pyWin32 (on Win). No big deal I guess, I could install them in matter of minutes, and most people don't need them anyway. All other mentioned libraries (zlib, bzip2, sqlite3, Tkinter, ElementTree, ctypes, multiprocessing) are part of core Python distribution. Next up, the tag-line "ActivePython is the industry-standard Python distribution", isn't core Python distribution "industry-standard" (whatever that means?)? And the weirdest thing, is that ActiveState bundles it with crappy PythonWin, and

How to use the win32gui module with Python?

风格不统一 提交于 2019-11-29 11:56:02
问题 Im my Python file, I have imported the win32gui module like this: import win32gui I have also downloaded win32gui but don't know how to make my script run. How can I run my Python script which imports win32gui ? When I run it, I get: ImportError: No module named win32gui Sorry for the newbie question but I'm trying to learn Python so don't know much about it. 回答1: When on a windows platform, I usually go for the executables. They should work all the time. Try perhaps one of the files listed