Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With windows many problem... #58

Open
Repepioras opened this issue Oct 1, 2013 · 4 comments
Open

With windows many problem... #58

Repepioras opened this issue Oct 1, 2013 · 4 comments

Comments

@Repepioras
Copy link

always get same errors in all commands
maybe can some help me:

Exception in thread Thread-5545:
Traceback (most recent call last):
File "C:\Python\Lib\threading.py", line 808, in bootstrap_inner
self.run()
File "c:\sevabot\sevabot\bot\modules.py", line 246, in run
self.result = self.func()
File "c:\sevabot\sevabot\bot\modules.py", line 64, in threaded_run
process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False, env=env)
File "C:\Python\Lib\subprocess.py", line 711, in __init

errread, errwrite)
File "C:\Python\Lib\subprocess.py", line 948, in _execute_child
startupinfo)
TypeError: environment can only contain strings

@mkfsn
Copy link

mkfsn commented Dec 13, 2013

I had the same problem in my Win7 64bit but now works fine, maybe you can try this:

in sevabot\sevabot\bot\modules.py

        env["SKYPE_USERNAME"] = username.encode("utf-8")
        env["SKYPE_FULLNAME"] = full_name.encode("utf-8")

to

        env["SKYPE_USERNAME".encode("utf-8")] = username.encode("utf-8")
        env["SKYPE_FULLNAME".encode("utf-8")] = full_name.encode("utf-8")

and then

        process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False, env=env)

to

        process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, env=env)

Maybe this is not a good solution, but makes it works fine in my win7. :)

@miohtama
Copy link
Member

Dare to submit a pull request? :)

@alejocamaleon
Copy link

This change seemed to work for me in win7 with Skype 6.22.0.107

@Lolmewn
Copy link

Lolmewn commented Mar 27, 2015

Attempted the fix above - error appears to remain present.

Exception in thread Skype4Py MessageStatus event scheduler:
Traceback (most recent call last):
  File "C:\Python27\Lib\threading.py", line 530, in __bootstrap_inner
    self.run()
  File "build\bdist.win32\egg\Skype4Py\utils.py", line 225, in run
    handler(*self.args, **self.kwargs)
  File "c:\users\administrator\documents\skypebot\sevabot\sevabot\bot\bot.py", line 95, in handleMessages
    logger.debug("Incoming %s - %s - %s: %s" % (status, msg.Chat.FriendlyName,
  File "build\bdist.win32\egg\Skype4Py\chat.py", line 245, in _GetFriendlyName
    return self._Property('FRIENDLYNAME')
  File "build\bdist.win32\egg\Skype4Py\chat.py", line 33, in _Property
    return self._Owner._Property('CHAT', self.Name, PropName, Value, Cache)
  File "build\bdist.win32\egg\Skype4Py\skype.py", line 296, in _Property
    value = self._DoCommand('GET %s' % jarg, jarg)
  File "build\bdist.win32\egg\Skype4Py\skype.py", line 281, in _DoCommand
    raise SkypeError(int(errnum), errstr)
SkypeError: [Errno 105] Invalid chat name

Pastebin of my new modules.py file: http://pastebin.com/qTj4BJHU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants